fatburger92
New Member
Hey I have a quick question regarding ADC output (newbie). After doing my AD conversion, I have my value stored in ADCH and ADCL. I have defined h as a unsigned char of 16 bits (uint_16t h), but how do I get the value stored in h (as shown below) to convert from 10bits to 16bits?
h= (ADCH << 2) | (ADCL >> 6);
printf("03X", h);
h= (ADCH << 2) | (ADCL >> 6);
printf("03X", h);