Stopwatch

stopwatch

Description:

The objective of this project is to create a stopwatch based on the previous project (Wall Clock). The assembly and seg7 files were provided. Therefore, the programming was done primarily in C where running system states were implemented (Reset, Run, Pause).

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 is implemented as a Reset button that resets the time to 00:00. This can only work if the state of the system is paused.
  • Push Button SW2 is implemented as a Start/Pause/Resume button.
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