15.9k views
2 votes
Nexys 4 board please. Detailed.

This common project is to make an Alarm Clock. The clock will have Hours, Minutes and Seconds displayed in the 7 segment indicators. Need to use 6 indicators for the digits and then the 2 left over indicators should display 3 horizontal segments (a, d and g ) to be the space between the Hours and Minutes and Minutes and Seconds. Use the 100MhZ clock divided down to one second to drive the display. Set up the push buttons to be able to set the clock and to set an alarm time. Use the up and down buttons to set time and alarm and use the slide switch, SW0 to select between time and alarm settings. When alarm is diaplayed the up/down button change the alarm. When the time is displayed, the up/down buttons change the time setting. Use SW15 to turn on and off the alarm setting. When it is on, and the actual time matches the alarm setting, then the alarm will be activated until the SW15 is turned off. SW15 can then be turned back on so the next time match will trigger the alarm. The center button can be pushed to give 10 minutes of Snooze time.

The alarm will consist of all the 16 LEDs flashing at about 1 second pulse.

User Gintas K
by
8.0k points

1 Answer

6 votes

Final answer:

To create an Alarm Clock using a Nexys 4 board, use 6 7-segment indicators for displaying the time components, with 2 extra indicators for the spaces. The clock is driven by a 100MHz clock divided down to one second. The push buttons, slide switch, and LEDs are used to set and control the time and alarm settings.

Step-by-step explanation:

To create an Alarm Clock using a Nexys 4 board, you will need to use the 7 segment indicators to display the Hours, Minutes, and Seconds. The digits will be displayed using 6 indicators and the remaining 2 indicators will display the spaces between the time components. The clock will be driven by a 100MHz clock divided down to one second.

The push buttons can be used to set the clock and the alarm time. The up and down buttons will be used to adjust the time and alarm settings, and the slide switch (SW0) will be used to select between time and alarm settings. When the alarm is displayed and turned on (using SW15), the up/down buttons will change the alarm time. When the time is displayed, the up/down buttons will change the current time.

The center button can be pressed to activate the Snooze function, providing 10 minutes of additional time before the alarm goes off. The alarm itself will consist of all 16 LEDs flashing at a 1-second pulse. When the actual time matches the alarm time and the alarm setting (SW15) is turned on, the alarm will be activated. The alarm can be turned off by turning off SW15, and it can be turned on again for the next scheduled match.

User Hyra
by
8.7k points

No related questions found