i am writing a c program using mplab and pic16f887, with the pickit2. I have a tc77, which outputs a temperature in 16 bits. I have it outputing two sets of 8 bits each, and each set will go to char a or char b. I need to take char a and char b and combine them, but not add them.
Char a: 0000 0101
Char b: 1011 0111
I need to take both char's, and put them to an int so that int c looks like this:
Int c: 0000 0101 1011 0111
I cant figure out exactly how to do this.