Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
8 years ago

Digital Alarm Clock

I have attached my code, clock counts up from zero and the switch starts the counter. I can't figure out how to set the KEY[3:0] to set the hours, and minutes. Also can't figure out how to display a separate alarm with the flip of a switch. Can someone help me?

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hey.

    You need to make a time setup menu, in which you can use the buttons to adjust the time. In this case, the time counter must be stopped.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I also do the clock until I realize the second count. Later I will add buttons. I can share the source, as I will finish.