Re: switch debouncing
- From: Jim Thompson <thegreatone@xxxxxxxxxxx>
- Date: Tue, 18 Oct 2005 18:09:30 -0700
On Wed, 19 Oct 2005 00:46:14 GMT, Rich Grise <rich@xxxxxxxxxxx> wrote:
>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
Thumbing thru my old notes: If you tie Threshold and TriggerBar on a
555 and drive from a switch thru an RC you get tremendous bounce
rejection.
...Jim Thompson
--
| James E.Thompson, P.E. | mens |
| Analog Innovations, Inc. | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| Phoenix, Arizona Voice:(480)460-2350 | |
| E-mail Address at Website Fax:(480)460-2142 | Brass Rat |
| http://www.analog-innovations.com | 1962 |
I love to cook with wine. Sometimes I even put it in the food.
.
- References:
- switch debouncing
- From: Mac
- Re: switch debouncing
- From: Rich Grise
- switch debouncing
- Prev by Date: Re: political post: the USA is *not* number one!
- Next by Date: Re: switch debouncing
- Previous by thread: Re: switch debouncing
- Next by thread: Re: switch debouncing
- Index(es):
Relevant Pages
|
Loading