Forum Discussion
Altera_Forum
Honored Contributor
19 years agoDE2 Quartus debounced circuit
Hello, I am working on a senior design project and have a DE2 board connected to external circuitry. There are pushbuttons on the external circuit which control leds also on that circuit board. M...
Altera_Forum
Honored Contributor
14 years agoyou shouldn't use the push button as clock input, it isvery unreliable and sensitive to bounces, as you discovered.
Instead, use a regular clock (I'm sure the board has an oscillator you can use) and monitor the pb signal on each clock cycle. You can detect a change on the button status by comparing the current value of pb with the previous one. You will also probably need to implement a delay for proper debouncing.