© Hubert Henry Ward 2020
H. H. WardIntermediate C Programming for the PIC Microcontrollerhttps://doi.org/10.1007/978-1-4842-6068-5_3

3. The 24-Hour Clock

Hubert Henry Ward1 
(1)
Leigh, UK
 

In this chapter, you will create a project that runs a 24-hour clock. Initially the clock will be displayed on an arrangement of seven-segment displays. Then the clock will be displayed on a liquid crystal display (LCD).

The seven-segment display will show minutes and hours but the LCD will show seconds, minutes, hours, and days of the week.

To begin, you will look at how to solve the logistics of incrementing the displays at different instances. This is because there are 60 second in one minute and 60 minutes in one hour but 24 hours in one day.

To solve this problem, ...

Get Intermediate C Programming for the PIC Microcontroller: Simplifying Embedded Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.