Question: 1 . [ 1 5 points. ] Make a millisecond - accurate timer that starts at 0 . 0 0 0 , counts up to

1.[15 points.] Make a millisecond-accurate timer that starts at 0.000, counts up to 9.999 seconds, and then resets back to 0.000.
To do this, you should divide the 100 MHz clock signal to provide a 1 KHz clock (a clock with a period of 1 ms ). This clock should be used to increment a 4-digit decimal counter. For instance, you can have each digit be represented as a 4-bit binary number, that resets to 0 when it gets to 10, and increments the next digit.
You should display the count on the right-most four hex displays, as a decimal number. You may modify your solution from Lab 10 to control the hex displays.
Name code as q1.txt.
2.[10 points.] Using your timer from Part 1, add functionality to your timer to let you reset and start/stop it:
(a) When you press the BTNO button, your timer should reset back to 0.000.
(b) When you press the BTN1 button, your timer should start or stop. If the timer is currently stopped, pressing this button should start it. If it is currently running, pressing this button should stop it.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!