12f675

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

Moderators: Benj, Mods

Post Reply
martynwalden1
Posts: 2
Joined: Fri Jun 10, 2011 3:43 pm
Contact:

12f675

Post by martynwalden1 »

Can any one help with this one? The chip will not accept inputs from GP0 and GP1. Iam using the internal clock and internal MCLR.
The program works perfectly on the simulator but wont work in circuit, the outputs work has they should. I have tried different ways
of input configarations but to no avail.

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: 12f675

Post by Benj »

Hello,

Are you leaving the input pins floating at any point? If you are then you will get unpredictable results at best. Look at the schematic in the datasheet for our EB007 board and ensure you are using similar circuitry. This basically pulls the pin to ground when the switch is not pressed and pulls the pin to +V when the switch is pressed.

martynwalden1
Posts: 2
Joined: Fri Jun 10, 2011 3:43 pm
Contact:

Re: 12f675

Post by martynwalden1 »

Hi Ben, the inputs are tied to VSS by 100K pull down resistors.

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: 12f675

Post by Benj »

Do you have a multimeter or similar you can use to confirm the input voltages are present on the pins?

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: 12f675

Post by medelec35 »

Also it may be a good idea to check chip is configured correctly to run by toggling an output every 500ms to produce a 1Hz flasher.
This may help you:
http://www.matrixmultimedia.com/mmforum ... =26&t=6936
If you are still stuck and would like to post your flowchart, I can take a look at it for you.

Martin
Martin

Post Reply