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?
16F88 AD PROBS
- 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
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?
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?
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Re: 16F88 AD PROBS
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
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
- 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
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
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
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel