"Warning: Some configuration words not in hex file".
Is just a warning, not an error. This is telling you that there are more things that can be configured. Not a problem to get this warning.
You have things set for 10 bit
ADCON2 = 111110 'right justified
but you are also calling for 8 bit
DEFINE ADC_BITS 8
Decide on one.
To read Channel 0, "PORTA.0", 8 bit, all you need is
Code:
DEFINE ADC_BITS 8
DEFINE ADC_CLOCK 3
DEFINE ADC_SAMPLEUS 50
ADCON1 = %00001110 'Sets PORTA.0 to analog
Then when you want to read the pin
Bookmarks