Skip to main content

Section 2.5 Contact Bounce

When a mechanical switch closes, the metal contacts physically collide and spring apart several times before settling into steady contact. This produces a burst of rapid HIGH/LOW transitions that can last anywhere from a few microseconds to 20 ms, depending on the switch. To the STM32C031C6 running at 12 MHz, each bounce looks like a separate button press.