Keong, I know you asked about Software debouncing... It sounds like you are only working with 1 button. Is there any reason you can not put an RC on RB0 or the Switch? Using a T of about 10ms could provide an equivalent 'Hardware debounce' Guys, tell me if I am crazy in trying to slow the signal change? I can not find any minimum or maximum rate of change in the spec sheet. I know this delay would not want to be used coming from another chip, but in human terms what is 50ms? I have used this trick on a worn out mouse button that used to double click every time. Jeff Berosik Keong wrote: > Hi > > I am trying to use a push button to trigger the > external interrupt of RB0. However I need to implement > a s/w deboucing in my code to prevent multiple > triggering of the interrupt. > How do I go about writing the code for the s/w > deboucing? (using delays?) -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu