Introduction - If you have any usage issues, please Google them yourself
This module mainly contains two parts, that is, the operation of DS1302 and soft clock. DS1302 operation include internal data read and write data to the DS1302, and read the data correctness judgments, also due to the use of the operation of the module of DS1302 simulation SPI way, so in the operation part of the DS1302 joined the if reading DS1302 data error is linking multiple (currently 3 times to change the mechanism, in order to avoid misunderstanding caused by communication simulation. The soft clock part includes the MCU self set clock update and the calculation of the value of the week.