Re: switch debouncing
- From: Fred Bloggs <nospam@xxxxxxxxxx>
- Date: Mon, 17 Oct 2005 14:26:30 GMT
Spehro Pefhany wrote:
On Mon, 17 Oct 2005 06:12:58 GMT, the renowned Mac <foo@xxxxxxx> wrote:
Is there a standard or best way to de-bounce a switch?
After googling for a bit, this seems to be a good candidate:
VCC | \ R1 / \ / | Schmitt | trig inverter | |\ +---/\/\/--+-----| >-- out | R2 | |/ S1 \ = C | | --- --- GND GND
R2 might be 18 k, and R1 82 k, with a 1uF cap as per this article:
http://www.embedded.com/showArticle.jhtml?articleID=18902552
Seems like it should work. Any comments?
--Mac
If it's going into a microcontroller, firmware is almost always the
best way.
Best regards, Spehro Pefhany
Well, if you can arrange things with external hardware so that the switch input is always valid, that is just that much less the firmware has to do- especially if the switch input is a very infrequent occurrence.
.
- Follow-Ups:
- Re: switch debouncing
- From: Spehro Pefhany
- Re: switch debouncing
- From: John Larkin
- Re: switch debouncing
- References:
- switch debouncing
- From: Mac
- Re: switch debouncing
- From: Spehro Pefhany
- switch debouncing
- Prev by Date: Re: Which pin is pin 1, followup
- Next by Date: Re: High Side Pulse Transmitter
- Previous by thread: Re: switch debouncing
- Next by thread: Re: switch debouncing
- Index(es):
Relevant Pages
|