© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2023
H. WardIntroductory Programs with the 32-bit PIC Microcontrollerhttps://doi.org/10.1007/978-1-4842-9051-4_9

9. The Real-Time Clock

Hubert Ward1  
(1)
Leigh, UK
 

In this chapter, we will look at programming the RTC, Real-Time Clock. There are three approaches to programming the Real-Time Clock that we will look at. The first will be when we simply use an external crystal to create a signal that we can count to synchronize the operation of a clock. The second will use the DS3231 RTC module, which is a separate device we can connect to the PIC. This uses the I2C protocol we have looked at in Chapter 7 to communicate with the PIC.

The third approach will use the ...

Get Introductory Programs with the 32-bit PIC Microcontroller: A Line-by-Line Code Analysis and 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.