ADC support for 16F627A

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 2 and 3.

Moderators: Benj, Mods

Post Reply
ChrisMG
Posts: 1
Joined: Sun May 27, 2007 8:50 am

ADC support for 16F627A

Post 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

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Post 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.

Post Reply