© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
H. H. WardProgramming Arduino Projects with the PIC Microcontrollerhttps://doi.org/10.1007/978-1-4842-7230-5_12

12. Real-Time Clock and Interrupts

Hubert Henry Ward1  
(1)
Leigh, UK
 

In this chapter, we will look at two programs that create a real-time clock (RTC). The first uses an external crystal to provide the synchronization for the clock and the LCD to display the information. It also uses an interrupt to tell the PIC to increment the time. The second will use the DS1307 RTC module.

Finally, we will use the RTC from the first program to run a module with four seven-segment displays to display a digital clock. The display uses the TM1637 driver IC from Titan ...

Get Programming Arduino Projects with the PIC Microcontroller: A Line-by-Line Code Analysis and Complete Reference Guide for Embedded Programming in C 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.