PDA

View Full Version : ADC on 16f876a



Travin77
- 29th March 2006, 03:08
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.

Darrel Taylor
- 29th March 2006, 04:39
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>