https://embetronicx.com/tutorials/microcontrollers/pic16f877a/rtc-interfacing-with-pic16f877a-tutorial/
PIC16F877A - RTC (DS1307) Interfacing