Don't make the cap too big and/or put a small resistor (~ 100 ohm) in series with the cap. Otherwise, closing the switch discharges the cap with high current - can eventually burt out the switch. It depends on switch resistance though - if the switch "on" resistance is 1000 ohms or so (e.g conductive rubber) then it shouldn't be required. It generally pays to put a simple debounce routine in software as well! Richard P Pull-up Resistance at PIC pin. Pushbutton to Gnd. Capacitor across Pushbutton will give effective debounce ? If anybody has used this method please confirm. Is there any pitfall ? Thanks -- Biswanath Dutta -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads