-
ADC on 16f876a
Hello all.
I have just a simple question whose answer alludes me. I need to set porta.1 and porta.3 to analog inputs and the rest to digital. How would I do this. I have tried playing around with adcon1 but I can't seem to get the right combo. Thanks for any help.
-
Sorry Travan,
You can't do that with an 876a.
The options are limited to the configurations listed under the ADCON1 register in the datasheet.
The closest you can get is A0, A1 and A3 as analog, and the rest digital. With ADCON1 = 4
<br>