Loading…
Loading…
DIP-8 / SOP-8 · DS1307
Maxim Integrated · DIP-8 / SOP-8 · I2C Real-Time Clock (RTC)
Price on Request
Get a competitive quote within 24 hours. Volume discounts available. Shenzhen stock ships in 1-2 business days.
The DS1307 is a low-power serial real-time clock and calendar from Maxim Integrated (now part of Analog Devices) that combines a BCD clock, a crystal oscillator circuit and 56 bytes of battery-backed nonvolatile SRAM in an 8-pin DIP or 150-mil SOIC. It counts seconds, minutes, hours, day of week, date, month and year, automatically corrects months with fewer than 31 days, and applies leap-year compensation valid through 2100. The 12-hour mode carries an AM/PM flag; the 24-hour mode is the norm in industrial designs. Address and data move over a two-wire I2C bus from the fixed address 0x68, and time is captured into a second register set on START so a read never straddles a seconds rollover.
The device needs an external 32.768 kHz watch crystal whose specified load capacitance matches the internal oscillator's 12.5 pF. This is the single most important sourcing and design decision around the DS1307: there is no temperature-compensated oscillator inside, so accuracy is set by the crystal's initial tolerance and by its parabolic drift with temperature — a typical ±20 ppm crystal produces roughly ±1 minute per week at room temperature and noticeably more across an industrial temperature range. If your product must hold ±2 ppm, use a DS3231 or DS3232 with an integrated TCXO instead. Power-fail detection switches the clock and RAM to VBAT when VCC drops below about 1.25 × VBAT, and battery-backup current is 300 nA typical and 500 nA maximum with the oscillator running, which gives more than ten years on a 48 mAh lithium cell at 25 °C.
Other details that catch integrators out: the interface is standard-mode I2C only, so SCL must stay at or below 100 kHz even though most MCUs happily run 400 kHz; SDA and SQW/OUT are open-drain and need pull-ups; VCC is 4.5 V to 5.5 V while VBAT accepts 2.0 V to 3.5 V; the clock-halt bit in the seconds register must be cleared after first programming because power-on register states are undefined; and the SQW/OUT pin provides a programmable 1 Hz, 4.096 kHz, 8.192 kHz or 32.768 kHz square wave that can wake an MCU. There is no internal trickle charger, so a supercapacitor must be charged through an external diode and resistor.
The DS1307 is available in commercial (0 °C to +70 °C) and industrial (−40 °C to +85 °C) grades and is UL recognized for use with lithium backup cells. It is heavily cloned on module boards; the failure mode is almost always crystal load-capacitance mismatch or a marginal cell holder rather than the die. Verify marking, measure backup current, and audit the module's crystal specification. MOQ is 1 reel or 100 pcs loose, with 1-2 day dispatch from Shenzhen stock and 4-8 weeks through the ADI authorized channel.
For any product with a service-life or warranty requirement longer than two years, budget the extra cost of a DS3231 with TCXO accuracy rather than tuning DS1307 crystals in production; if you stay with the DS1307, specify a ±20 ppm crystal trimmed for 12.5 pF on the BOM.
Both are 5 V-class I2C real-time clocks with battery backup, but the DS3231 integrates a temperature-compensated crystal oscillator accurate to about ±2 ppm, while the DS1307 depends on an external 32.768 kHz crystal and typically drifts a minute or two per month across temperature. The DS3231 also runs from 2.3 V to 5.5 V and adds a temperature-compensated square wave; the DS1307 keeps the advantage of 56 bytes of general-purpose battery-backed RAM.
Accuracy is entirely a function of the crystal and the oscillator's capacitive load. Confirm the crystal is specified for CL = 12.5 pF, keep the two load capacitors close to X1/X2 with a ground plane under them, avoid running traces near the crystal, and check that the module's series resistance and ESR match the datasheet recommendations. Temperature swings add parabolic error that no external capacitor can fix.
The clock itself requires 4.5 V to 5.5 V on VCC to keep time and communicate. On a 3.3 V system you either run the DS1307 at 5 V and level-shift SDA/SCL, or choose the DS1307Z with careful bus design where the MCU pins tolerate 5 V. For a native 3.3 V design, use a DS3231 or PCF8523 instead.
No. The datasheet specifies standard mode only, with a maximum SCL frequency of 100 kHz. Running the bus at 400 kHz often appears to work at room temperature but produces occasional read errors and register corruption in the field, which is one of the most common support tickets on this part.
With a 220 mAh to 240 mAh CR2032 at 3.0 V and battery current under 500 nA, calendar life is far longer than ten years, so the practical limit is the cell's self-discharge and shelf life — plan on 8 to 10 years in a sealed product, less if the SQW output is enabled (up to 800 nA) or if the holder has high leakage.
The bare IC is less counterfeited than modules are mis-manufactured. Inspect Maxim/ADI laser marking and date codes, measure VBAT current with VCC removed (should be under 500 nA), verify the oscillator starts with a 12.5 pF crystal, and read the RAM region for retention after a 24-hour power-off test. Cheap modules frequently ship with the wrong load capacitors or a dry cell holder.
MOQ 1 reel (SOIC-8) or 100 pcs loose for prototyping, and we also supply pre-tested RTC modules. Shenzhen stock ships in 1-2 days; ADI/Maxim authorized channel replenishment is 4-8 weeks.
Submit an RFQ — we reply within 24 hours with stock, pricing, lead time and packaging options.
Request a Quote →