Coming with a BS-1220 battery sloth and a CR-1220 battery, and adopting DS1302 clock chip, Keyestudio DS1302 clock sensor is chiefly used for power-off timing.
DS1302, a trickle charge clock chip rolled out by DALLAS, is inclusive of a real-time clock/calendar and 31 bytes of static RAM. It communicates with the microcontroller through the serial interface. ]
The real-time clock/calendar circuit provides information about seconds, minutes, hours, days, weeks, months, and years. In addition, the number of days in a month and ones pf a leap year can be adjusted automatically. ]
The clock operation can adopted 24 or 12 hour format through AM/PM indication.]
The DS1302 can communicate with the single-chip microcomputer through the synchronous serial way and only three ports needed which are RST reset , I/O data line and SCLK serial clock. ]
The read and write data of the clock/RAM is communicated in a byte or burst of up to 31 bytes. The power consumption of DS1302 is very low when working, thereby, the power of data and clock information are less than 1mW. Meanwhile, a positioning hole of the module contributes to fix it on the other devices.