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.
12f675
- 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
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.
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.
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
-
- Posts: 2
- Joined: Fri Jun 10, 2011 3:43 pm
- 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
Do you have a multimeter or similar you can use to confirm the input voltages are present on the pins?
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
-
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
Re: 12f675
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
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