Push button

Push buttons are an essential way to interact with the user. They are relatively simple to use provided they don’t bounce to much. However, debouncing can be made in both S/W or H/W. Below are two examples of how do debounce in S/W and how to detect a push button being pushed using an interrupt or scanning solution.

Interrupt

Scanning