Re: vhdl code for debouncing push button
- From: Jim Granville <no.spam@xxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 29 Jul 2008 21:09:58 +1200
glen herrmannsfeldt wrote:
Peter Alfke wrote:
If you have a single-pole double-throw switch with break before make
(or a three-position switch) just connect the center to a pin,and the
two terminals to Vcc and ground. Then, inside the chip make the input
drive the active, non-inverted output on the same pin. That creates a
latch, that you can force either way, and it will respond within about
a nanosecond, and will ignore all bounce. Use the lowest drive
strength setting.
I was about to comment on the current surge before it switches,
but I suppose at low drive setting it should be fine. I might
wonder, though, on outputs with only high drive current.
That's not a bug, it's a feature!: It does Contact cleaning!! ;)
-jg
.
- References:
- vhdl code for debouncing push button
- From: Zhane
- Re: vhdl code for debouncing push button
- From: rickman
- Re: vhdl code for debouncing push button
- From: Jim Granville
- Re: vhdl code for debouncing push button
- From: rickman
- Re: vhdl code for debouncing push button
- From: Peter Alfke
- Re: vhdl code for debouncing push button
- From: glen herrmannsfeldt
- vhdl code for debouncing push button
- Prev by Date: Re: HWICAP initialization
- Next by Date: Re: vhdl code for debouncing push button
- Previous by thread: Re: vhdl code for debouncing push button
- Next by thread: Re: vhdl code for debouncing push button
- Index(es):