PDA

View Full Version : A/D on 16f876a



Travin77
- 11th March 2006, 00:39
This is a newbie question since that is what I am. I am trying to make RA0 - RA5 digital inputs, meaning I don't want them in analog mode. I have tried all sorts of adjustments with adcon1. I just don't understand how to do this. Please help. Thanks

Bruce
- 11th March 2006, 01:25
Have you tried ADCON1 = 7? That should make them all digital.

Don't forget CMCON. The default power on value for CMCON is 7, which means
the comparator module should be disabled, but it's something to remember
just in case.

picster
- 11th March 2006, 01:30
Try ADCON1=6

------------------Picster----------------

Travin77
- 11th March 2006, 05:51
It worked as you expected. I thought I had tried that but apparently not. Thanks.