09-07-2016  (1110 ) Categoria: Articles

Debouncing - antirebot - AIM65

Keyboard contact debounce

http://www.classiccmp.org/cini/systems.htm#RWS

 

AIM-65 User's Guide:

AIM-65 Monitor Program Listing:

 

Snapshot of switch bounce on an oscilloscope. The switch bounces between on and off several times before settling.

Contact bounce (also called chatter) is a common problem with mechanical switches and relays. Switch and relay contacts are usually made of springy metals. When the contacts strike together, their momentum and elasticity act together to cause them to bounce apart one or more times before making steady contact. The result is a rapidly pulsed electric current instead of a clean transition from zero to full current. The effect is usually unimportant in power circuits, but causes problems in some analogue and logic circuits that respond fast enough to misinterpret the on‑off pulses as a data stream.[6]

The effects of contact bounce can be eliminated by use of mercury-wetted contacts, but these are now infrequently used because of the hazard of mercury release. Alternatively, contact circuits can be low-pass filtered to reduce or eliminate multiple pulses. In digital systems, multiple samples of the contact state can be taken or a time delay can be implemented in order for the contact bounce to settle before the contact input is used to control anything. Bounce in an SPDT switch can be eliminated by an SR flip-flop (latch)[7] or Schmitt trigger. All of these methods are referred to as "debouncing" circuits.

By analogy, the term "debounce" has arisen in the software development industry to describe rate-limiting or throttling the frequency of a method's execution.[8]




versió per imprimir