Hi, I was wondering if it might be possible to set all ANx inputs for analog but still use some for digital input only ?
I have a circuit here that uses AN0,1 for analog input and then RA3,4,5 for digital input. I'm not clear about which constant to use for SETUP_ADC_PORTS().
Joined: 08 Sep 2003 Posts: 92 Location: Glasgow, UK
Posted: Thu Apr 05, 2007 5:36 am
One way around this type of problem is to read the analogue voltage of the digital input, then compare the analogue reading with the expected equivalent logic high/low digital value.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum