Hi ,

I am trying to use A/D conversion, but my code compiles but does not even get to main loop when I add ADCON1 AND ADCON2 registers, these are valid registers in this pic, anybody knows why?

ADCON0 = %11000001 ' AN0, Configure and turn on A/D Module
'ADCON1 = %10001001 ' Analog input
'ADCON2 = %10000001 ' Right justified results for 10 bits,Fosc/8

K