Re: switch debouncing
- From: Spehro Pefhany <speffSNIP@xxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 17 Oct 2005 11:54:08 -0400
On Mon, 17 Oct 2005 14:26:30 GMT, the renowned Fred Bloggs
<nospam@xxxxxxxxxx> wrote:
>>
>>
>> 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.
Timer-interrupt driven periodic (in the 100-500Hz range) polling uses
negligible bandwidth of a modern processor for any reasonable number
of keys. Even if its a frequent occurence. And it can filter out
electrical noise and momentary contact breaks due to shock or
vibaration as well, if you choose to write it to do so.
There is reason to add some external hardware (especially to deal with
ESD issues and possibly with the miserably small and variable current
that on-board pullups typically deliver) but not for the deboucing.
Even a crummy on-board RC clock will yield debouncing times accurate
within a few percent at zero additional cost, and les need to test the
board for missing parts.
Best regards,
Spehro Pefhany
--
"it's the network..." "The Journey is the reward"
speff@xxxxxxxxxxxx Info for manufacturers: http://www.trexon.com
Embedded software/hardware/analog Info for designers: http://www.speff.com
.
- References:
- switch debouncing
- From: Mac
- Re: switch debouncing
- From: Spehro Pefhany
- Re: switch debouncing
- From: Fred Bloggs
- switch debouncing
- Prev by Date: Re: Watch Crystal dissipation
- Next by Date: Re: PLL Lock to an Offset Frequency
- Previous by thread: Re: switch debouncing
- Next by thread: Re: switch debouncing
- Index(es):
Relevant Pages
|