Re: switch debouncing
- From: Rich Grise <rich@xxxxxxxxxxx>
- Date: Wed, 19 Oct 2005 00:46:14 GMT
On Mon, 17 Oct 2005 06:12:58 +0000, Mac 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 | |/
| |
+----|<|---+
| D1 |
| |
> | |
> S1 \ = C = .1 uF
> | |
> --- ---
> 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?
I'd add D1 to discharge the cap when you hit S1, so you don't
get a leisurely response. :-) Also, I don't think you need a whole
1 uF there - ISTR seeing these down to .001, but maybe that was
with CMOS, and bigger resistors.
Cheers!
Rich
.
- Follow-Ups:
- Re: switch debouncing
- From: Jim Thompson
- Re: switch debouncing
- References:
- switch debouncing
- From: Mac
- switch debouncing
- Prev by Date: Re: O.T removing unwanted registry entries
- Next by Date: Re: political post: the USA is *not* number one!
- Previous by thread: Re: switch debouncing
- Next by thread: Re: switch debouncing
- Index(es):
Relevant Pages
|
Loading