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 ...