but as the PIC code sends state changes, we should always get a button up however much bounce there is.

Yeah, but what if, as he suggested, you're getting a string of ups and downs really fast and continuous? Or perhaps the debounce routine in the PIC can't handle that much noise and it's really never getting around to sending the up code?

Of course, you're in a better position to know what's happening. We're just trying to help- you know, throwing out ideas. Maybe it's got nothing to do with the switches...

Tony Fabris
Empeg #144
_________________________
Tony Fabris