3.3 Common Input Techniques

This section discusses some common techniques to ``filter'' raw input from the pins of an MCU. Both techniques can use push buttons as examples. In this context, we assume a push button is ``normally open''. This means when the push button is not being pushed, the two electrical contacts are not connected. When the push button is pushed, the two electrical contacts are connected.

A typical use of such NO (normally-open) push buttons is to connect one end to ground, and another end to a binary input pin that has a pull-up. This way, there are two states:

The bottom line is: 0 means pressed, 1 means released.



Subsections
Copyright © 2006-02-15 by Tak Auyeung