Page 1 of 1

16F88 AD PROBS

Posted: Mon Feb 23, 2009 12:02 pm
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?

Re: 16F88 AD PROBS

Posted: Mon Feb 23, 2009 1:29 pm
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?

Re: 16F88 AD PROBS

Posted: Tue Feb 24, 2009 2:41 pm
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

Re: 16F88 AD PROBS

Posted: Tue Feb 24, 2009 3:50 pm
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