Page 1 of 1

ADC support for 16F627A

Posted: Sun May 27, 2007 9:18 am
by ChrisMG
I get the message "Unable to add component" when I try to use the ADC component with a 16f627A
However the 16f627A has four analogue inputs on pins 1,2,17,18

Most of the ADC references seem to be missing in the FCD file, I do not know enough to modify this file, especially the ADCCapture line.

I understand the analogue inputs are low resolution on this chip. Four bits is enough for my application.

Please help

Posted: Tue May 29, 2007 10:00 am
by Benj
The 16F627A does not have analogue inputs as such according to its datasheet. What it does have is a two pin analogue comparitor module. This means that you cannot use the pins as stand alone analogue inputs as the registers to hold the analogue reading do not exist on the chip. To obtain analogue readings you may wish to choose another PICmicro device. The 16F88 is an 18 pin device with an analogue input module.