OK
I've been at this a while now and I don't seem to be getting anywhere...
Time to ask the gurus
I'm trying to set up a 16F877A to read AN0...
This is what I have so far:
DEFINE ADC_BITS 8 'Set # of bits
DEFINE ADC_CLOCK 3 'Set clock source (rc=3)
DEFINE ADC_SAMPLEUS 50 'Set sampling time in usec
I want to use an external +VREF, so i set ADCON1 like this (per the pic manual)
ADCON1 %00000001 'sets ADC to use AN3 as +VREF & GND as -VREF
The problem I am running into is there is a voltage approx 3V coming out of the pin that I want to input my +VREF on! This is not good.
Anyone have any ideas?
Robert
Bookmarks