The PIC can now read and change the clock’s time and alarm. By pressing all three buttons together, it can reset to a known state of Midnight. The only thing missing was a real time data source.