K. Whittingham’s cunning push button circuit
After I proposed: PIC reset and I/O on the same push-button?
K. Wittingham responded:
“Why not use a D-Flip Flop with the switch connected to clock, and via an RC to the Data input.
Release switch quickly data is still low so output low. release after RC charged data is high so output goes high.”
Which I don’t remember hearing of before, and looks inherently bounce-proof too – if the circuit I have come up with joes the job properly.
And it would have made a rather nice alternative interface for my earlier lighting LED switch.
Unfortunately, I am trying to implement something with switching that is slightly more complex – which is largely why I was thinking of using a PIC – I think it works out as a four state state-machine, rather than a the two states offered by my earlier circuit or the neat one above.
So I am having a think: would one more flip-flop make a suitable four state machine possible without loads of extra logic.
I feel the need for a J-K flip-flop data sheet….
If you respond below, our spam-blocking system may throw away your comment.
Better to email firstname.lastname@example.org with ‘LongShort’ in the title.
No email addresses are collected for marketing (or any other) purposes from responses to this blog. I will keep it that way for as long as possible.