DEFINE ADC_BTTS 10 should be DEFINE ADC_BITS 10 (the typo is there in the 8-bit version of the code as well.
If that alone doesn't do it then try changing left/right justification (ADCON1.7). I can never remember when to use what....
/Henrik.
DEFINE ADC_BTTS 10 should be DEFINE ADC_BITS 10 (the typo is there in the 8-bit version of the code as well.
If that alone doesn't do it then try changing left/right justification (ADCON1.7). I can never remember when to use what....
/Henrik.
Bookmarks