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

Drive X1 from an external oscillator

Use a suitable 32.768 kHz oscillator referenced to host ground. Drive X1 and leave X2 open. Remove the backup cell before tying VBAT to ground.

  • +5 V
    • Host 5 V
    • C1.1
    • R1.1
    • R2.1
  • I²C data
    • ↔
    • Host SDA
    • R1.2
  • I²C clock
    • →
    • Host SCL
    • R2.2
  • Ground
    • Host ground
    • C1.2
    • Oscillator return
  • External clock
    • →
    • 32.768 kHz oscillator output
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

Bench checks

  • Clear CH in bit 7 of register 0x00, then verify the seconds advance while the external oscillator runs.

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

SO-8 · 150 mil wiring map

External wiring example · Drive X1 from an external oscillator

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

2 · X2

Oscillator output · Clock outputs

Output of the on-chip crystal oscillator.

Wiring requirements

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.