Wall Clock

Wall Clock

Description:

The objective of this project was to create a wall clock on a 4-digit 7-segment display that accounts for time rollover. For example, if the time shown of the 4 digit display shows 59:59, then the time would reset to 00:00. Note that this program only contains code written in C and not ARM assembly. The wall clock conditions are seen below.

Conditions:
  • In the second slots (2,1), the max amount of seconds is 00:59 before a rollover occurs
  • In the minute slots (4,3), the max amount of seconds is 59:00 before a rollover occurs
  • At 59:59, the clock resets to 00:00
  • Push button SW1 (located on micro-controller) speeds up minutes by 1 minute
  • Push button SW2 (located on micro-controller) speeds up minutes by 10 seconds
Materials Used:
  • Tiva C TM4C123G Micro-controller
  • Grove Base BoosterPack (BOOSTXL-GROVEBP)
  • Grove 4-Digit 7-Segment Display [Connected to Port J10]
  • Git (Partner Collaboration)
  • Code Composer Studio 10.0 (IDE)

Download Code Here