Hi first of all, move all DEFINE's to the TOP. Then you may to configure de ADCON1 Register for ADC.
ADCON1 = configuration for example:
for 10bits adc, RA0 analog and VREF's you need to put:
ADCON1= %10001111.
For more configurations view the datasheet
Bookmarks