Forum Discussion
Altera_Forum
Honored Contributor
14 years agopush button
Hello I make a program in VHDL and i need a push button. I don't kwon how i must do the follow thing. When i push de button and let go then must count my counter en when i push de but...
Altera_Forum
Honored Contributor
14 years agoSearch for "debounce" to see what Dave is talking about. The glitching he is referring to sometimes looks like this: http://en.wikipedia.org/wiki/file:switch_bounce.jpg
So from the picture you can see a single button push may be detected multiple times. So that counter logic Dave is talking about makes sure the button is pushed long enough to filter out all the bounce (glitches).