Comment #3 on issue 139 by Abaldus: problem with adc on 16F1827
http://code.google.com/p/jallib/issues/detail?id=139

Please do not read this as "rude" comment, but it looks like whole ADC code infrastructure is broken. Please see simplest example here:

include 16f877
pragma target   clock 4_000_000    -- oscillator frequency

-- ADC setup
--const ADC_NCHANNEL = 4
const byte ADC_NVREF = 0 -- no external Vref
const ADC_RSOURCE = 10_000 -- Input resistance: 10K potmeter
const ADC_HIGH_RESOLUTION = FALSE -- Low res ADC is good enough!
const byte ADC_CHANNEL = 7 -- potmeter connected to pin_AN7

include adc_channels

Error generated is "ADC_NCHANNEL unknown". If define ADC_NCHANNEL and include full adc:


--
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jallib?hl=en.

Reply via email to