I dont think there is a problem with the ADCON1 PCFG value, as the PORTB LEDs light properly when I insert them at points to check that the program has reached that point. For instance, to check that the interrupt ISR was reached, i inserted a command to PORTB = 0x03, and the LEDs light up correctly.
My main problem seems to be that the ADRESH and ADRESL registers dont seem to be getting the values.
About the acquisition values, I initially had it at 20Tad, and reduced it to 0. will try it though.
I have setup the timer, and start it..the timer is jus to give the AD converter time to start up. I dont think you have to do that each time the AD converter performs a conversion. I dont have an ISR for the timer, as all that it does is stay in the loop until the interrupt flag is set...
will try setting the AD interrupt to high prioriy, but since the LEDs light up, I know that it goes into the ISR, so i'm not doing anything wrong there...its just that the values arent getting written to the ADRESH and ADRESL registers..