Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

how to code a button to turn on/of the 7-segment displays?

Status
Not open for further replies.

SaadGhamdi

Newbie level 3
Joined
Dec 23, 2016
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
39
I have this project of multiple and I guess I almost finished it :)

but I have a small problem, one of the modules is about controlling the displays (turning them on or off) using a button and that module is synchronized with a clock as the project's instruction shows, I thouth I should use a t flip flop, am I right or do you have any suggestions?
 

A TFF can do it.
Just make sure that the output of the Push Button is debouched.
 

A TFF can do it.
Just make sure that the output of the Push Button is debouched.

what do you mean by debounced? sorry I'm a newbie when it comes to Verilog
 

When closing/breaking an electrical circuit via mechanical means - I.E: a push button, a switch, etc...
The operation will usually multiple toggles. This is because of the "imperfect nature" of the contacts.

https://www.youtube.com/watch?v=hAVQpKVck9s
 

what do you mean by debounced? sorry I'm a newbie when it comes to Verilog

Switch debouncing concept has nothing to do with RTL coding. It is a concept taught in most universities across the world in the digital systems design course.

For a basic overview look here:


but I have a small problem, one of the modules is about controlling the displays (turning them on or off) using a button and that module is synchronized with a clock as the project's instruction shows, I thouth I should use a t flip flop, am I right or do you have any suggestions?
Are you using an FPGA/ In that case, just register your input from the mechanical switch to your design. In most cases it will solve the problem.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top