what about if you insert these lines
DEFINE ADC_BITS 10 ; Set number of bits in result
DEFINE ADC_CLOCK 3 ; Set clock source 3=rc
DEFINE ADC_SAMPLEUS 50 ; Set sampling time in uS
and add PAUSE 50 after each ADCIN ???
is by any chance voltage at channel 1 can exceed 5 volts?
Bookmarks