This module is built around the highly capable DS1307 RTC chip and the AT24C32 EEPROM,
At the heart of the module is a low-cost, extremely accurate RTC chip from Maxim — the DS1307. It handles all timekeeping functions and communicates with the microcontroller over I2C.
The DS1307 can keep track of seconds, minutes, hours, days, dates, months, and years. It can work in either a 12-hour or 24-hour format and has an AM/PM indicator. For months with fewer than 31 days, it automatically adjusts the date at the end of the month, including leap year corrections (valid up to 2100).
Another interesting feature of the DS1307 is the SQW pin, which can be programmed to output one of four square-wave frequencies: 1Hz, 4kHz, 8kHz, or 32kHz.
The DS1307 IC incorporates a battery input for maintaining accurate timekeeping even when the device’s main power is interrupted.
The built-in power-sense circuit continuously monitors the status of VCC to detect power failures and automatically switches to the backup supply. This means that even in the event of a power outage, the IC can still keep time.
For backup power, the bottom of the board houses a battery holder for a 20mm 3V lithium coin cell. Any CR2032 battery will fit nicely here.
Assuming you use a fully charged 47mAh coin cell battery and keep the chip current draw to a minimum of 300nA, the battery should be able to power the RTC for at least 17 years without the need for an external power supply.
47mAh/300nA = 156666.67 hours = 6527.78 days = 17.87 years
datasheet link
The DS1307 RTC module has 7 pins in total. The pinout is as follows:
Comments
Post a Comment