The DS1307Z+T&R from Analog Devices (formerly Maxim Integrated/Dallas Semiconductor) is one of the most widely used real-time clock ICs in the electronics industry. It provides a complete BCD-coded clock/calendar with automatic leap-year compensation, plus 56 bytes of battery-backed non-volatile SRAM, all accessible through a simple I2C serial interface.
The DS1307 is the classic Arduino RTC chip, popularized by the widely-used DS1307 breakout board modules that combine the DS1307 with a 32.768 kHz crystal and a CR2032 coin cell battery. These modules are among the most common and affordable RTC solutions for hobbyist and maker projects.
The clock/calendar function provides seconds, minutes, hours (12-hour with AM/PM or 24-hour format), day of the week, date, month, and year. The year field is two digits (00-99) with automatic leap-year compensation, valid up to year 2100. The time and date registers are located at addresses 00h-06h in the register map.
The 56 bytes of NV SRAM (addresses 08h-3Fh) are battery-backed and provide unlimited read/write cycles, unlike EEPROM which has limited write endurance. This makes the SRAM suitable for storing configuration data, calibration values, or logging data that changes frequently.
The I2C interface operates in standard mode (100 kHz maximum). The DS1307 always operates as a slave device with a fixed 7-bit address of 0x68 (binary 1101000). The interface supports both byte-write and burst-read operations, allowing the entire time/date to be read in a single I2C transaction.
The automatic power-fail detect and switch circuitry monitors the VCC supply. When VCC drops below the battery voltage (VBAT), the device automatically switches to battery power, maintaining timekeeping and SRAM data. The battery backup current is typically less than 500 nA with the oscillator running, which allows a CR2032 coin cell (220 mAh) to maintain timekeeping for over 50 years in theory (though battery self-discharge typically limits practical life to 5-10 years).
The programmable square-wave output (SQW/OUT pin) can generate four frequencies: 1 Hz, 4.096 kHz, 8.192 kHz, and 32.768 kHz, controlled by the RS0 and RS1 bits in the control register (address 07h). The output can also be used as a simple logic output controlled by the OUT bit when the square-wave is disabled. The 1 Hz output is particularly useful for generating a 1-second interrupt for MCU timekeeping synchronization.
The DS1307 requires an external 32.768 kHz crystal connected between the X1 and X2 pins. The crystal and associated load capacitors must be placed as close to the IC as possible to minimize parasitic capacitance and ensure reliable oscillation. The typical load capacitance for the DS1307 is 12.5 pF.
The Z suffix indicates the SOIC-8 (150 mil) surface-mount package. The plus suffix indicates lead-free/RoHS compliance. The T&R suffix indicates tape and reel packaging for automated SMT assembly. The commercial temperature range version (0 to 70 degrees C) is designated by the Z suffix without an N; the industrial temperature range version (-40 to 85 degrees C) is designated by ZN.