Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Valued Contributor III
964 Views

avoir bounce with button

Hey, 

how can i write my vhdl code to avoid bounce?
0 Kudos
2 Replies
Highlighted
Valued Contributor III
3 Views

Re: avoir bounce with button

 

--- Quote Start ---  

how can i write my vhdl code to avoid bounce? 

--- Quote End ---  

 

 

Draw a flowchart of the basic functionality, and then write a behavioural implementation of that.
0 Kudos
Highlighted
Valued Contributor III
3 Views

Re: avoir bounce with button

Use a counter to generate a suitable interval at which to test the button's input signal. Test it a number of times to see if it persists. Once the signal has passed that test you can declare the button pressed (or released). 

 

I hope that's something you can attempt to code yourself... 

 

Cheers, 

Alex
0 Kudos