DS1307 real-time clock
Keep calendar time through a main power interruption with the DS1307, and check its crystal, battery and I²C supply requirements.

Timekeeping
The clock stores calendar and time fields in binary-coded decimal. It continues counting on battery backup when main power is unavailable, while ordinary bus access needs sufficient main supply voltage.
Hardware
A bare IC needs a suitable 32.768 kHz crystal, a backup source within limits and I²C pull-ups. For a module, inspect the backup battery holder and charging circuit before choosing a battery.
When the time is wrong
Confirm that the oscillator is enabled and set a known time. Read several consecutive values to check that time advances. Crystal and circuit tolerances can cause drift compared with a temperature-compensated RTC.
Specifications
| Parameter | Value or condition | Source |
|---|---|---|
| Main supply | 4.5–5.5 V recommended | Analog Devices |
| User memory | 56 bytes of battery-backed SRAM | Analog Devices |
Compatibility and practice
Use the recommended main supply and backup circuit. Confirm I²C levels at the MCU.
Related components
Sources and datasheets
- DS1307 Real-Time Clock Data Sheet · Analog Devices