Spark Logic

DS1307 real-time clock pinout

The DS1307 is a 5 V I²C real-time clock with an external 32.768 kHz crystal and 56 bytes of battery-backed SRAM.

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

Analog Devices / Maxim Integrated

Device variants · PDIP-8 · 300 mil

DeviceDetails
DS1307+ 0 to +70 °C.
DS1307N+ −40 to +85 °C.

PDIP-8 · 300 mil pinout

PDIP-8 · 300 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.

    With an external oscillator. Drive X1 at 32.768 kHz and leave X2 open.

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

Electrical limits · Link to this pin

Connect an I²C host

  • +5 V
    • Host 5 V
    • C1.1
    • R1.1
    • R2.1
  • Ground
    • Host ground
    • C1.2
    • BT1−
  • I²C data
    • ↔
    • Host SDA
    • R1.2
  • I²C clock
    • →
    • Host SCL
    • R2.2
  • Backup supply
    • BT1+
  • Crystal terminal 1
    • →
    • Y1.1
  • Crystal terminal 2
    • →
    • Y1.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

Connection guide

All 8 pins

PinSignalDirectionFunction
1X1 Oscillator inputOscillator input 32.768 kHz reference input for the RTC.
2X2 Oscillator outputOscillator output Output of the on-chip crystal oscillator.
3VBAT Supply inputSupply input Backup supply input for timekeeping when VCC falls.
4GND Supply returnSupply return Connect to the common ground plane or bench return.
5SDA BidirectionalBidirectional Open-drain I²C data.
6SCL InputInput I²C clock input.
7SQW/OUT Open drainOpen drain Optional square wave or static logic output. Pull up when used.
8VCC Supply inputSupply input Primary device supply. Place the bypass capacitor close to this pin.

Signal assignments

I²C

Fixed 7-bit address 0x68. Calendar fields are binary-coded decimal. I²C access is disabled below the main-supply power-fail threshold.

Electrical limits

ParameterLimitConditions and source
Main supply4.5–5.5 V4.5–5.5 V Recommended operating range. Analog Devices / Maxim DS1307 Rev. 5, pp. 1–8.
Backup supply2.0–3.5 V2.0–3.5 V Separate from the 5 V main supply. Analog Devices / Maxim DS1307 Rev. 5, pp. 1–8.
I²C clock100 kHz maximum100 kHz maximum Standard mode. The 2.2 V minimum input high permits a compatible lower-voltage pull-up rail. Analog Devices / Maxim DS1307 Rev. 5, pp. 1–8.
Crystal load12.5 pF12.5 pF 32.768 kHz nominal. The DS1307 includes the oscillator load capacitance. Analog Devices / Maxim DS1307 Rev. 5, pp. 1–8.

Manufacturer documents

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