Best article I've ever read about Debouncing, and it has the best algorithm I've ever seen as well. http://ganssle.com/debouncing.pdf On 12/31/05, Wouter van Ooijen wrote: > > > > There's no need to debounce switches unless you poll them faster > > > than the bounce time. And the only reason you'd need to poll them > > > that fast is if you need low latency, like with a trigger. I > > > generally poll 20 times per second and that works just fine. > > > > This is fine if you're only worried about bouncing on > > transitions. If you > > are doing filtering or the switch could bounce in one of the > > states (like a > > momentary pushbutton), then you need to sample faster and > > apply debouncing > > or filtering logic. > > This is new to me. You say a pushbutton (lika an ordinary keyboard key) > could bounce *while being pressed down*? And if so, how would you > recognise such a bounce? > > Wouter van Ooijen > > -- ------------------------------------------- > Van Ooijen Technische Informatica: www.voti.nl > consultancy, development, PICmicro products > docent Hogeschool van Utrecht: www.voti.nl/hvu > > > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > -- Shawn Wilton (b9 Systems) http://black9.com -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist