Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Post History

71%
+3 −0
Q&A De-bouncing input signals?

Another hardware solution There is another hardware debouncing technique widely used in the past. It is implemented by an SPDT push button driving (buffered by) an RS latch. (ganssle.com) This con...

posted 4y ago by Circuit fantasist‭  ·  edited 4y ago by Circuit fantasist‭

Answer
#6: Post edited by user avatar Circuit fantasist‭ · 2020-10-30T09:15:02Z (about 4 years ago)
More about the mechanical hysteresis
  • Another hardware solution
  • -----------------------------------
  • There is another hardware debouncing technique widely used in the past. It is implemented by an SPDT push button driving (buffered by) an RS latch.
  • ![SR debouncer](https://electrical.codidact.com/uploads/zfyGkKQakopghN7V1JwuymfH)
  • ([ganssle.com](http://www.ganssle.com/debouncing-pt2.htm))
  • This configuration can be thought of as an "electromechanical timer 555" since it is based on the same idea - "artificially created hysteresis". Here the hysteresis is mechanical (the distance between the end contact surfaces) while in 555 it is electrical (the difference between ⅓ and ⅔ voltage levels). The same idea is implemented by the so-called "limit switches".
  • In my opinion, it is the most reliable debouncing technique but it needs a more complicated switch, two pull-up resistors and an RS latch.
  • Mixed solution
  • -------------------
  • But in these "micro times", we can implement the RS latch by the micro software so only the SPDT button will be needed… and, of course, two port inputs. The one of them will serve as an S input and the other - as an R input. Simply speaking, we remove the latch and connect the two output button terminals directly to the port. The software will write "1" in a memory cell (flag) when the S input is affected and "0" when the R input is affected.
  • Useful debouncing
  • -------------------------
  • There is such an inventive principle - *use something harmful for some useful purpose*. Let's try to apply it here.
  • The bouncing push button produces a random number of pulses; it acts as a "fading away pulse oscillator". So, if we drive a counter by a push button, it will counter a random number of pulses when pushing the button… and this arrangement will act as a *random number generator*.
  • Another hardware solution
  • -----------------------------------
  • There is another hardware debouncing technique widely used in the past. It is implemented by an SPDT push button driving (buffered by) an RS latch.
  • ![SR debouncer](https://electrical.codidact.com/uploads/zfyGkKQakopghN7V1JwuymfH)
  • ([ganssle.com](http://www.ganssle.com/debouncing-pt2.htm))
  • This configuration can be thought of as an "electromechanical timer 555" since it is based on the same idea - "artificially created hysteresis". Here the hysteresis is mechanical (the distance between the end contact surfaces) while in 555 it is electrical (the difference between ⅓ and ⅔ voltage levels). The same idea is implemented by the so-called "limit switches" where the hysteresis is determined by the distance between them.
  • In my opinion, it is the most reliable debouncing technique but it needs a more complicated switch, two pull-up resistors and an RS latch.
  • Mixed solution
  • -------------------
  • But in these "micro times", we can implement the RS latch by the micro software so only the SPDT button will be needed… and, of course, two port inputs. The one of them will serve as an S input and the other - as an R input. Simply speaking, we remove the latch and connect the two output button terminals directly to the port. The software will write "1" in a memory cell (flag) when the S input is affected and "0" when the R input is affected.
  • Useful debouncing
  • -------------------------
  • There is such an inventive principle - *use something harmful for some useful purpose*. Let's try to apply it here.
  • The bouncing push button produces a random number of pulses; it acts as a "fading away pulse oscillator". So, if we drive a counter by a push button, it will counter a random number of pulses when pushing the button… and this arrangement will act as a *random number generator*.
#5: Post edited by user avatar Circuit fantasist‭ · 2020-10-30T09:11:09Z (about 4 years ago)
Describing more clearly the arrangement
  • Another hardware solution
  • -----------------------------------
  • There is another hardware debouncing technique widely used in the past. It is implemented by an SPDT push button driving (buffered by) an RS latch.
  • ![SR debouncer](https://electrical.codidact.com/uploads/zfyGkKQakopghN7V1JwuymfH)
  • ([ganssle.com](http://www.ganssle.com/debouncing-pt2.htm))
  • This configuration can be thought of as an "electromechanical timer 555" since it is based on the same idea - "artificially created hysteresis". Here the hysteresis is mechanical (the distance between the end contact surfaces) while in 555 it is electrical (the difference between ⅓ and ⅔ voltage levels). The same idea is implemented by the so-called "limit switches".
  • In my opinion, it is the most reliable debouncing technique but it needs a more complicated switch, two pull-up resistors and an RS latch.
  • Mixed solution
  • -------------------
  • But in these "micro times", we can implement the RS latch by the micro software so only the SPDT button will be needed… and, of course, two port inputs. The one of them will serve as an S input and the other - as an R input. The software will write "1" in a memory cell (flag) when the S input is affected and "0" when the R input is affected.
  • Useful debouncing
  • -------------------------
  • There is such an inventive principle - *use something harmful for some useful purpose*. Let's try to apply it here.
  • The bouncing push button produces a random number of pulses; it acts as a "fading away pulse oscillator". So, if we drive a counter by a push button, it will counter a random number of pulses when pushing the button… and this arrangement will act as a *random number generator*.
  • Another hardware solution
  • -----------------------------------
  • There is another hardware debouncing technique widely used in the past. It is implemented by an SPDT push button driving (buffered by) an RS latch.
  • ![SR debouncer](https://electrical.codidact.com/uploads/zfyGkKQakopghN7V1JwuymfH)
  • ([ganssle.com](http://www.ganssle.com/debouncing-pt2.htm))
  • This configuration can be thought of as an "electromechanical timer 555" since it is based on the same idea - "artificially created hysteresis". Here the hysteresis is mechanical (the distance between the end contact surfaces) while in 555 it is electrical (the difference between ⅓ and ⅔ voltage levels). The same idea is implemented by the so-called "limit switches".
  • In my opinion, it is the most reliable debouncing technique but it needs a more complicated switch, two pull-up resistors and an RS latch.
  • Mixed solution
  • -------------------
  • But in these "micro times", we can implement the RS latch by the micro software so only the SPDT button will be needed… and, of course, two port inputs. The one of them will serve as an S input and the other - as an R input. Simply speaking, we remove the latch and connect the two output button terminals directly to the port. The software will write "1" in a memory cell (flag) when the S input is affected and "0" when the R input is affected.
  • Useful debouncing
  • -------------------------
  • There is such an inventive principle - *use something harmful for some useful purpose*. Let's try to apply it here.
  • The bouncing push button produces a random number of pulses; it acts as a "fading away pulse oscillator". So, if we drive a counter by a push button, it will counter a random number of pulses when pushing the button… and this arrangement will act as a *random number generator*.
#4: Post edited by user avatar Circuit fantasist‭ · 2020-10-29T20:57:17Z (about 4 years ago)
Added picture
  • Another hardware solution
  • -----------------------------------
  • There is another hardware debouncing technique widely used in the past. It is implemented by an SPDT push button driving (buffered by) an RS latch. This configuration can be thought of as an "electromechanical timer 555" since it is based on the same idea - "artificially created hysteresis". Here the hysteresis is mechanical (the distance between the end contact surfaces) while in 555 it is electrical (the difference between ⅓ and ⅔ voltage levels). The same idea is implemented by the so-called "limit switches".
  • In my opinion, it is the most reliable debouncing technique but it needs a more complicated switch, two pull-up resistors and an RS latch.
  • Mixed solution
  • -------------------
  • But in these "micro times", we can implement the RS latch by the micro software so only the SPDT button will be needed… and, of course, two port inputs. The one of them will serve as an S input and the other - as an R input. The software will write "1" in a memory cell (flag) when the S input is affected and "0" when the R input is affected.
  • Useful debouncing
  • -------------------------
  • There is such an inventive principle - *use something harmful for some useful purpose*. Let's try to apply it here.
  • The bouncing push button produces a random number of pulses; it acts as a "fading away pulse oscillator". So, if we drive a counter by a push button, it will counter a random number of pulses when pushing the button… and this arrangement will act as a *random number generator*.
  • Another hardware solution
  • -----------------------------------
  • There is another hardware debouncing technique widely used in the past. It is implemented by an SPDT push button driving (buffered by) an RS latch.
  • ![SR debouncer](https://electrical.codidact.com/uploads/zfyGkKQakopghN7V1JwuymfH)
  • ([ganssle.com](http://www.ganssle.com/debouncing-pt2.htm))
  • This configuration can be thought of as an "electromechanical timer 555" since it is based on the same idea - "artificially created hysteresis". Here the hysteresis is mechanical (the distance between the end contact surfaces) while in 555 it is electrical (the difference between ⅓ and ⅔ voltage levels). The same idea is implemented by the so-called "limit switches".
  • In my opinion, it is the most reliable debouncing technique but it needs a more complicated switch, two pull-up resistors and an RS latch.
  • Mixed solution
  • -------------------
  • But in these "micro times", we can implement the RS latch by the micro software so only the SPDT button will be needed… and, of course, two port inputs. The one of them will serve as an S input and the other - as an R input. The software will write "1" in a memory cell (flag) when the S input is affected and "0" when the R input is affected.
  • Useful debouncing
  • -------------------------
  • There is such an inventive principle - *use something harmful for some useful purpose*. Let's try to apply it here.
  • The bouncing push button produces a random number of pulses; it acts as a "fading away pulse oscillator". So, if we drive a counter by a push button, it will counter a random number of pulses when pushing the button… and this arrangement will act as a *random number generator*.
#3: Post edited by user avatar Circuit fantasist‭ · 2020-10-29T20:51:23Z (about 4 years ago)
Minor edit
  • Another hardware solution
  • -----------------------------------
  • There is another hardware debouncing technique widely used in the past. It is implemented by an SPDT push button driving (buffered by) an RS latch. This configuration can be thought of as an "electromechanical timer 555" since it is based on the same idea - "artificially created hysteresis". Here the hysteresis is mechanical (the distance between the end contact surfaces) while in 555 it is electrical (the difference between ⅓ and ⅔ voltage levels). The same idea is implemented by the so-called "limit switches".
  • In my opinion, it is the most reliable debouncing technique but it needs a more complicated switch, two pull-up resistors and an RS latch.
  • Mixed solution
  • -------------------
  • But in these "micro times", we can implement the RS latch by the micro software so only the SPDT button will be needed… and, of course, two port inputs. The one of them will serve as an S input and the other - as an R input. The software will write "1" in a memory cell (flag) when the S input is affected and "0" when the R input is affected.
  • Useful debouncing
  • -------------------------
  • There is such an inventive principle - *use something harmful for some useful purpose*. Let's try to apply it here.
  • The bouncing push button produces a random number of pulses; it acts as a "fading away pulse oscillator". So, if we drive a counter by a push button, it will counter a random number of pulses… and this arrangement will act as a *random number generator*.
  • Another hardware solution
  • -----------------------------------
  • There is another hardware debouncing technique widely used in the past. It is implemented by an SPDT push button driving (buffered by) an RS latch. This configuration can be thought of as an "electromechanical timer 555" since it is based on the same idea - "artificially created hysteresis". Here the hysteresis is mechanical (the distance between the end contact surfaces) while in 555 it is electrical (the difference between ⅓ and ⅔ voltage levels). The same idea is implemented by the so-called "limit switches".
  • In my opinion, it is the most reliable debouncing technique but it needs a more complicated switch, two pull-up resistors and an RS latch.
  • Mixed solution
  • -------------------
  • But in these "micro times", we can implement the RS latch by the micro software so only the SPDT button will be needed… and, of course, two port inputs. The one of them will serve as an S input and the other - as an R input. The software will write "1" in a memory cell (flag) when the S input is affected and "0" when the R input is affected.
  • Useful debouncing
  • -------------------------
  • There is such an inventive principle - *use something harmful for some useful purpose*. Let's try to apply it here.
  • The bouncing push button produces a random number of pulses; it acts as a "fading away pulse oscillator". So, if we drive a counter by a push button, it will counter a random number of pulses when pushing the button… and this arrangement will act as a *random number generator*.
#2: Post edited by user avatar Circuit fantasist‭ · 2020-10-29T18:32:51Z (about 4 years ago)
Minor edit
  • Another hardware solution
  • -----------------------------------
  • There is another hardware debouncing technique widely used in the past. It is implemented by an SPDT push button driving (buffered by) an RS latch. This configuration can be thought of as an "electromechanical timer 555" since it is based on the same idea - "artificially created hysteresis". Here the hysteresis is mechanical (the distance between the end contact surfaces) while in 555 it is electrical (the difference between ⅓ and ⅔ voltage levels). The same idea is implemented by the so-called "limit switches".
  • In my opinion, it is the most reliable debouncing technique but it needs a more complicated switch, two pull-up resistors and an RS latch.
  • Mixed solution
  • -------------------
  • But in these "micro times", we can implement the RS latch by the micro software so only the SPDT button will be needed… and, of course, two port inputs. The one of them will serve as an S input and the other - as an R input. The software will write "1" in a memory cell (flag) when the S input is asserted and "0" when the R input is asserted.
  • Useful debouncing
  • -------------------------
  • There is such an inventive principle - *use something harmful for some useful purpose*. Let's try to apply it here.
  • The bouncing push button produces a random number of pulses; it acts as a "fading away pulse oscillator". So, if we drive a counter by a push button, it will counter a random number of pulses… and this arrangement will act as a *random number generator*.
  • Another hardware solution
  • -----------------------------------
  • There is another hardware debouncing technique widely used in the past. It is implemented by an SPDT push button driving (buffered by) an RS latch. This configuration can be thought of as an "electromechanical timer 555" since it is based on the same idea - "artificially created hysteresis". Here the hysteresis is mechanical (the distance between the end contact surfaces) while in 555 it is electrical (the difference between ⅓ and ⅔ voltage levels). The same idea is implemented by the so-called "limit switches".
  • In my opinion, it is the most reliable debouncing technique but it needs a more complicated switch, two pull-up resistors and an RS latch.
  • Mixed solution
  • -------------------
  • But in these "micro times", we can implement the RS latch by the micro software so only the SPDT button will be needed… and, of course, two port inputs. The one of them will serve as an S input and the other - as an R input. The software will write "1" in a memory cell (flag) when the S input is affected and "0" when the R input is affected.
  • Useful debouncing
  • -------------------------
  • There is such an inventive principle - *use something harmful for some useful purpose*. Let's try to apply it here.
  • The bouncing push button produces a random number of pulses; it acts as a "fading away pulse oscillator". So, if we drive a counter by a push button, it will counter a random number of pulses… and this arrangement will act as a *random number generator*.
#1: Initial revision by user avatar Circuit fantasist‭ · 2020-10-29T18:30:07Z (about 4 years ago)
Another hardware solution
-----------------------------------

There is another hardware debouncing technique widely used in the past. It is implemented by an SPDT push button driving (buffered by) an RS latch. This configuration can be thought of as an "electromechanical timer 555" since it is based on the same idea - "artificially created hysteresis". Here the hysteresis is mechanical (the distance between the end contact surfaces) while in 555 it is electrical (the difference between ⅓ and ⅔ voltage levels). The same idea is implemented by the so-called "limit switches".

In my opinion, it is the most reliable debouncing technique but it needs a more complicated switch, two pull-up resistors and an RS latch.

Mixed solution
-------------------

But in these "micro times", we can implement the RS latch by the micro software so only the SPDT button will be needed… and, of course, two port inputs. The one of them will serve as an S input and the other - as an R input. The software will write "1" in a memory cell (flag) when the S input is asserted and "0" when the R input is asserted.

Useful debouncing
-------------------------

There is such an inventive principle - *use something harmful for some useful purpose*. Let's try to apply it here.

The bouncing push button produces a random number of pulses; it acts as a "fading away pulse oscillator". So, if we drive a counter by a push button, it will counter a random number of pulses… and this arrangement will act as a *random number generator*.