You are on page 1of 3

Key press and detection

mechanism
Debouncing is any kind of hardware device or
software that ensures that only a single signal
will be acted upon for a single opening or
closing of a contact.
HARDWARE KEY DEBOUNCING
• IMPLEMENTED BY USING FLIP FLOP OR LATCH
• IT MAKES DEBOUNCING METHOD MEANINGFUL
• When the switch is connected to A, the output of the latch goes high.
• When it makes contact with B, output changes from 1 to 0.
• If the wiper is connected to the circuit, it bounces many times to make contact with B.
• But the output never fluctuates btw 1 & 0.
• If the wiper is not connected either to A or B then the output remains constant.

Software key debouncing


Another way to debounce a switch is to do it in software. If you’re connecting the switch to
an intelligent device such as a micro-controller or single board computer then you have the
option to debounce in software and save the cost of the extra capacitor.
The simplest way to debounce a switch in software is to simply tell the micro-controller to
wait 20ms after it detects the first pulse before checking again

You might also like