Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
07/19/04 13:26
Read: times


 
Msg Score: -3
 -3 Didn't Search First
#74455 - Push Button Bouncing Time Method
Hi, I have an application where the micro controller LPC932 is waiting for a momentary push button to be pressed. I know there should be some time (msec.) to avoid false readings caused by bouncing. I am not using an interrupt in this procedure and I have no timers available. What will be a good approach to avoid this bouncing after pushing the button?
I am thinking something like this could work, but I would like to hear any other suggestions.

Thanks

// do other tasks.

while (pushb != 0); // wait until button is
// pressed

// wait for about 40 msec. to avoid any double
// counting due to contact bouncing

// continue with other tasks


List of 20 messages in thread
TopicAuthorDate
Push Button Bouncing Time Method            01/01/70 00:00      
   RE: Push Button Bouncing Time Method            01/01/70 00:00      
      RE: Push Button Bouncing Time Method            01/01/70 00:00      
      RE: Push Button Bouncing Time Method            01/01/70 00:00      
   RE: Push Button Bouncing Time Method            01/01/70 00:00      
      RE: Push Button Bouncing Time Method            01/01/70 00:00      
   RE: Push Button Bouncing Time Method            01/01/70 00:00      
   RE: Push Button Bouncing Time Method            01/01/70 00:00      
      RE: Push Button Bouncing Time Method            01/01/70 00:00      
         RE: Push Button Bouncing Time Method            01/01/70 00:00      
            RE: Push Button Bouncing Time Method            01/01/70 00:00      
   Hardware debouncing is also possible            01/01/70 00:00      
      RE: Hardware debouncing is also possible            01/01/70 00:00      
         RE: Hardware debouncing is also possible            01/01/70 00:00      
   RE: 4 points            01/01/70 00:00      
      Maddening Release - not always!            01/01/70 00:00      
         RE: Maddening Release - not always!            01/01/70 00:00      
            RE: Maddening Release - not always!            01/01/70 00:00      
            Release issue - Erik & Bartosz            01/01/70 00:00      
               As clear as a bell            01/01/70 00:00      

Back to Subject List