Stopwatch timer 7SEG LED (CY8CKIT-044)

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
taas_3144281
Level 5
Level 5
Distributor - Marubun (Japan)
25 sign-ins 50 replies posted 25 replies posted

Hi.

This sample uses CY8CKIT-044.

I created a stopwatch timer using segmented LEDs.

The LED display is based on the sample in "TSoC CY8C4146LQI-S433 基板 7SEG LED サンプル ".

Start and stop of the stopwatch timer are judged by interrupt from SW2 of CY8CKIT-044.

The LED time is updated every 100 msec.

State Machine of the stopwatch timer is as shown in the figure.

pastedImage_0.png

pastedImage_1.png

#define STANBY_MODE     0   /* initial state 7SEG LED "0000" */

#define COUNT_STOP_MODE 1   /* Count stop */

#define COUNT_UP_MODE   2   /* Count up */

Thanks,

Asanuma

1 Reply
Praveen
Community Manager
Community Manager
Community Manager
25 solutions authored 10 likes given 5 likes given

Thanks for sharing the code example Asanuma san.

Appreciate the efforts and looks interesting.

Cheers

Praveen

Cheers
Praveen