I snipped a couple of different debouncing techniques... My question is the switch noisy? If not then the simplest debouncing technique is to activate the function on the initial edge of the switch then use a counter to ignore the switch for the debounce period. I like this method because I get a more responsive feel to the switch. It doesn't work in noisy environments because you can get phantom switch activations. But for normal debounce it works well. BAJ -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist