Talk:MSP430 LaunchPad PushButton

Comments on MSP430 LaunchPad PushButton -

Pjkim said ...
It seems that a problem with the debounce circuit on this page is that they debounce only in one direction. In the circuit in figure 3, when the pin is pulled low, there is no debouncing because the cap is being shorted to ground.

Once the switch is open, the pin is debounced going from low to high which is what is being shown in figures 1 and 2.

I imagine that debouncing both directions is important for most applications. Perhaps a software solution might work for most applications. A recent "contest" was held on hackaday:

http://hackaday.com/2010/11/09/debounce-code-one-post-to-rule-them-all/

See Kenneth Kuhn’s Debounce Code about half way down-- fairly short and easy to understand with fairly good performance.

--Pjkim 16:26, 1 February 2011 (CST)