The objective of my flowchart is to send out a single pulse when the momentry switch is pressed. The pulse duty is adjustable using the potentiometer connected to pin 5 of the 12F683 chip.
The simulation works great and the burning to chip is all fine as far as I can make out. However, when I build the circuit on my prototype board, the led keeps triggering and I cannot figure out why. I did measure on pin 6 (trigger pin) that there is a voltage of about 200 to 250mV regardless what state the switch is in.
I'm sure somebody can spot what I have done wrong and point it out. I have attached my flow chart and schematic.
Once again, many thanks guys.........John
Why Looping Continiousely? 12F683
Moderator: Benj
-
- Posts: 271
- Joined: Tue Mar 05, 2013 10:49 pm
- Has thanked: 111 times
- Been thanked: 13 times
- Contact:
Why Looping Continiousely? 12F683
- Attachments
-
- Adj.Single Pulse Width Gen.jpg (10.34 KiB) Viewed 3162 times
-
- Single Pulse Generator.fcf
- (8.5 KiB) Downloaded 242 times
-
- Valued Contributor
- Posts: 2045
- Joined: Wed Aug 27, 2008 10:31 pm
- Location: Netherlands
- Has thanked: 553 times
- Been thanked: 1081 times
- Contact:
Re: Why Looping Continiousely? 12F683
Pin 6 is floating when the switch is not pressed, it is probably best to connect it to 0V with a 10K resistor. That makes sure the signal is well defined and less susceptible to electronic noise.
“Integrity is doing the right thing, even when no one is watching.”
― C.S. Lewis
― C.S. Lewis
-
- Posts: 271
- Joined: Tue Mar 05, 2013 10:49 pm
- Has thanked: 111 times
- Been thanked: 13 times
- Contact:
Re: Why Looping Continiousely? 12F683
Thanks kersing, seems to have done the trick.
Appreciate your help a lot
Thanks..............John
Appreciate your help a lot
Thanks..............John