Search the web
Sign In
New User? Sign Up
laser_design · Laser Tag/Electronic Game Design Forum
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Software debouncing switches   Message List  
Reply | Forward Message #332 of 358 |
Re: [laser_design] Re: Software debouncing switches


A cleaner posting at my website:

<http://dx9s.ath.cx/node/83>

--Doug



----- Original Message ----
From: Douglas Marsh <dx9s@...>
To: laser_design@yahoogroups.com
Sent: Sunday, March 1, 2009 10:02:32 PM
Subject: Re: [laser_design] Re: Software debouncing switches


(PREAMBLE: sorry if I keep on seeming like I am re-hasing an old topic .. but
just want to share what information and work I've come up with.)

Okay... I've come to the conclusion that the simulating of an RC filter requires
a bunch of samples and the interval between samples needs to be considered.

[...]







Mon Mar 2, 2009 3:05 pm

dx9s
Offline Offline
Send Email Send Email

Forward
Message #332 of 358 |
Expand Messages Author Sort by Date

I've done software de-bouncing before -- the question isn't what it is NOR is the question how to do it... Curious as to what is an accepted "de-bounce" period...
Doug
dx9s
Offline Send Email
Feb 17, 2009
5:17 pm

... I believe I do 100ms(0.1s). I don't have my code handy right now, but it's either 100ms or 100us......
izzy99337
Offline Send Email
Feb 17, 2009
5:24 pm

Really as high as 100ms ... if you've are doing 100us (0.1ms) -- then that matches with what I've done that seems to work. Adding button debouncing to the ISR...
Douglas Marsh
dx9s
Offline Send Email
Feb 17, 2009
6:22 pm

I almost always use 8, 16, or 32 msec as they are easy multiples of my 8KHz interrupt. 16 is my most common, and I use one byte to hold both a "reported to...
Brian Farley
ferret1963
Offline Send Email
Feb 18, 2009
10:48 pm

yeah single bit at time is pretty easy.. if previous and current (over a time period) are high, set the "shadowed" bit value as high... duplicate for low (if...
Douglas Marsh
dx9s
Offline Send Email
Feb 20, 2009
2:28 am

For what it's worth.. I've boiled down the software debouncing of 8-bits into a few basic steps that can be implemented in 'C' (and converted into assembler...
Doug
dx9s
Offline Send Email
Feb 20, 2009
7:59 pm

I was a little off (and because C18 is a little different that midline assembler, the 'C' compiler spit out a little bit more code): (copy/paste from...
Douglas Marsh
dx9s
Offline Send Email
Feb 20, 2009
9:26 pm

I found this article on software debouncing and there seems to be a wide range of techniques and thought put into the article: ...
Doug
dx9s
Offline Send Email
Mar 2, 2009
2:45 am

(PREAMBLE: sorry if I keep on seeming like I am re-hasing an old topic .. but just want to share what information and work I've come up with.) Okay... I've...
Douglas Marsh
dx9s
Offline Send Email
Mar 2, 2009
6:02 am

A cleaner posting at my website: <http://dx9s.ath.cx/node/83> --Doug ... From: Douglas Marsh <dx9s@...> To: laser_design@yahoogroups.com Sent: Sunday,...
Douglas Marsh
dx9s
Offline Send Email
Mar 2, 2009
3:05 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help