source= http://www.piclist.com/piclist/2003/12/22/041536a.txt? The approach I used in the two projects at http://www.geocities.com/raichea (and which has given me consistenly good results) was to detect a change in switch state and then sample the switch state frequently, waiting until there has been no change in state for 10ms. Steve. --- http://www.piclist.com/member/steve_russell-ntlworld- PIC/PICList FAQ: http://www.piclist.com -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu