Embedded Systems & Firmware
What is the phenomenon called in which a mechanical switch's contacts bounce, turning on and off many times in a short period when pressed?
- ALatch-up
- BCrosstalk
- CContact bounce (chattering)
Show answer and explanation
Answer: C. Contact bounce (chattering)
When a mechanical switch closes, the metal contacts bounce and turn on and off for a few milliseconds. A microcontroller reads its pins very fast, so counting naively would register one press as several. The bounce is removed in software by waiting and rereading, or in hardware by smoothing the waveform with a resistor and capacitor and feeding it to a Schmitt trigger to get a clean 0 or 1. This processing is called debouncing.
- A. Latch-up is a CMOS fault where large current keeps flowing.
- B. Crosstalk is signal leaking from an adjacent wire.
- C. Correct. A single press may read as several.