Quote Originally Posted by Armadus View Post
Using ADCON1 = %01001110 corrects my digital input problem, but now PortA.0 does not work as an analog input for ADC. Where can I find some more information on how ADCON1 works?
Ok, I see ...

You can try to open the 18F242 datasheet, ADC section ( $ 17 , I think )

you also could post the code you've written here, I'm sure it will save lots of time to you ...

Alain