Debouncing

When a switch opens or closes the metal contact point in the switch can produce a few oscillations between the on and off signal before settling in the on position. A debouncing circuit prevents this by ensuring that switch will switch directly from on to off or off to on, without oscillations or glitches.

Debounce
Debounce