Bob Blick 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. ****************************************************************** Embed Inc, Littleton Massachusetts, (978) 742-9014. #1 PIC consultant in 2004 program year. http://www.embedinc.com/products -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist