Spark Logic

DS1307 real-time clock connection guide

DS1307 real-time clock (SO-8 · 150 mil) connection guide. Connect an I²C host. Run without a battery and monitor SQW/OUT.

PackageContacts
PDIP-8 · 300 mil 8
SO-8 · 150 mil 8

Analog Devices / Maxim Integrated

Device variants · SO-8 · 150 mil

DeviceDetails
DS1307Z+ 0 to +70 °C.
DS1307Z+T&R 0 to +70 °C, tape and reel.
DS1307ZN+ −40 to +85 °C.
DS1307ZN+T&R −40 to +85 °C, tape and reel.

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
R1 4.7 kΩ between +5 V and I²C data+5 VR1 4.7 kΩI²C data
R2 4.7 kΩ between +5 V and I²C clock+5 VR2 4.7 kΩI²C clock
C1 100 nF between +5 V and Ground+5 VC1 100 nFGround
Y1 32.768 kHz · 12.5 pF load between Crystal terminal 1 and Crystal terminal 2Crystal terminal 1Y1 32.768 kHz · 12.5 pF loadCrystal terminal 2
R3 4.7 kΩ between +5 V and Square-wave output+5 VR3 4.7 kΩSquare-wave output

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.

SO-8 · 150 mil wiring map

External wiring example · Run without a battery and monitor SQW/OUT

Highlighted contacts are used in this circuit. Select a contact to highlight its wiring nets.

SO-8 · 150 mil · Face the package marking. Start at the pin-1 index and follow the numbered leads.
Selected pin details

1 · X1

Oscillator input · Clock inputs / oscillator

32.768 kHz reference input for the RTC.

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.

Analog Devices / Maxim DS1307 Rev. 5, pp. 1–8.

Electrical limits · Pin in the reference

Manufacturer documents

This reference covers the 8-lead PDIP and narrow 8-lead SO versions. Both use the same lead numbering.