DS1307 real-time clock connection guide
DS1307 real-time clock (PDIP-8 · 300 mil) connection guide. Connect an I²C host. Run without a battery and monitor SQW/OUT.
| Package | Contacts |
|---|---|
| PDIP-8 · 300 mil | 8 |
| SO-8 · 150 mil | 8 |
Device variants · PDIP-8 · 300 mil
| Device | Details |
|---|---|
| DS1307+ | 0 to +70 °C. |
| DS1307N+ | −40 to +85 °C. |
Connection scenarios
Run without a battery and monitor SQW/OUT
Switch off main power and remove the backup cell before tying VBAT to ground. Use a 5 V I²C host and a 32.768 kHz crystal specified for a 12.5 pF load. Keep X1 and X2 short. Pull SQW/OUT up to the host logic rail when using this output.
- I²C data
- ↔
- Host SDA
- R1.2
- I²C clock
- →
- Host SCL
- R2.2
- Crystal terminal 1
- →
- Y1.1
- Crystal terminal 2
- →
- Y1.2
- +5 V
- Host 5 V
- C1.1
- R1.1
- R2.1
- R3.1
- Ground
- Host ground
- C1.2
- Square-wave output
- →
- Host input
- R3.2
Bench checks
- With SQWE set and RS1:RS0 cleared in register 0x07, look for a 1 Hz signal. The time is lost when main power is removed.
Analog Devices / Maxim DS1307 Rev. 5, pin description p. 6 and control register p. 9.
PDIP-8 · 300 mil wiring map
2 · X2
Output of the on-chip crystal oscillator.
Wiring requirements
With a crystal. Fit one 32.768 kHz crystal rated for a 12.5 pF load between X1 and X2. The on-chip oscillator provides the load capacitance.
- Crystal terminal 2
- →
- Y1.2
- Via Y1 32.768 kHz · 12.5 pF load to Crystal terminal 1 · X1 (1), Y1.1
Manufacturer documents
This reference covers the 8-lead PDIP and narrow 8-lead SO versions. Both use the same lead numbering.
- DS1307 manufacturer documentation· Analog Devices / Maxim DS1307 Rev. 5, pp. 1–8.
