Hi,

I am struggling to use the 18F1220 A/D converter. I know the answer is RTFDS, but I have, & I cant figure out why it's not working. I have managed to use the A/D on other chips with no problems. Here is how I have set it up:-

'channel 0 analog all others digital
ADCON0 = %00000001
ADCON1 = %11111110
ADCON2 = %10000111
define adc_bits 10
define adc_sampleus 50

Anyone know what I'm doing wrong?

Regards
Bob...