>Anybody have a favorite debouncing scheme? I use TMR0 to debounce. I only test the switch after "n" TMR0 overflows, and only count the state as changed after it has been consistently in that state for "y" times. You want to set it up so you get at least 3 samples over a 10-30mS period. Andy