16F88 AD PROBS

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

Moderators: Benj, Mods

Post Reply
Mike Mair
Posts: 2
Joined: Fri Feb 20, 2009 11:08 am

16F88 AD PROBS

Post by Mike Mair »

I am new to flow code. I have set up a simple flow chart to test an input voltage on ad0 on a 16f88 pic. and switch on an LED when a preset value is reached. I am using an ICD2 from Microchip to program the chip by importing the hex code into the ICD2 programmer and then programming the 16f88. The prob that I am having is the AD is not registering any voltage change. On the Flowcode simulator all is well. If I use the same programming method to do other basic functions, all is well.
Can you 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:

Re: 16F88 AD PROBS

Post by Benj »

Hello

How is your analogue hardware configured. Are you feeding the analogue signal by using a potential divider circuit between 5V and Ground? Also in the analogue component in Flowcode have you configured the component connections to use the correct ADC channel?

Mike Mair
Posts: 2
Joined: Fri Feb 20, 2009 11:08 am

Re: 16F88 AD PROBS

Post by Mike Mair »

Hi,
I have setup my A/D as port 0. I am using a pot - center pin to port A0 with 5v and gnd on the sides. I can see a voltage swing from 0v to +5v on my AD port0 pin on the pic. In Flowcode I have set up my a/d on the correct port. The simulator works fine.
I am still not sure if I am loosing something by compiling the Flowcode to hex and then importing the hex code into MPLABS to use the ICD2 to program the chip.?
Mike

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:

Re: 16F88 AD PROBS

Post by Benj »

Hello Mike

You can use the ICD2 to program directly with Flowcode if you wish. This will take the MPLAB steps out of the equasion for you. No ICD functionality though.

This topic has links to a few topics that should help you get up and running.
http://www.matrixmultimedia.com/mmforum ... lab#p12590

Post Reply