Spark Logic

DS3231 real-time clock connection guide

DS3231 real-time clock (SO-16 · 300 mil) connection guide. Read the clock with battery backup. Use INT/SQW without battery backup.

SO-16 · 300 mil

16 contacts Current package

Analog Devices / Maxim Integrated·

Device variants · SO-16 · 300 mil

DeviceDetails
DS3231S# 0 to +70 °C.
DS3231SN# −40 to +85 °C.

Connection scenarios

Read the clock with battery backup

Remove any VBAT ground jumper, then connect a 3 V primary cell to VBAT. Connect every NC lead to ground. Leave 32kHz, INT/SQW and RST open for basic clock access. Connect SDA and SCL to separate host lines. Give each line its own pull-up to a host-compatible rail (5.5 V max). Choose resistance for bus capacitance, rise time and sink current.

  • +3.3 V
    • Host 3.3 V
    • C1.1
    • R1.1
    • R2.1
  • Ground
    • Host ground
    • BT1−
    • C1.2
  • I²C data
    • ↔
    • Host SDA
    • R1.2
  • I²C clock
    • →
    • Host SCL
    • R2.2
  • Backup supply
    • BT1+
R1 4.7 kΩ between +3.3 V and I²C data+3.3 VR1 4.7 kΩI²C data
R2 4.7 kΩ between +3.3 V and I²C clock+3.3 VR2 4.7 kΩI²C clock
C1 100 nF between +3.3 V and Ground+3.3 VC1 100 nFGround

Bench checks

  • Apply main power above VPF to start the oscillator on first use. Find 0x68 and read registers 0x00–0x06.
  • Set a known time and clear the oscillator-stop flag in status register 0x0F after confirming that the oscillator is running.
  • Remove main power briefly, then restore it and confirm that the clock advanced.

Analog Devices / Maxim DS3231 Rev. 10, pp. 1–4, 9–11 and 13–14.

SO-16 · 300 mil wiring map

External wiring example · Read the clock with battery backup

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

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

1 · 32kHz

Open-drain output · Clock outputs

Optional 32.768 kHz clock output.

Wiring requirements

  • Add an external pull-up when using this open-drain output. Set EN32kHz = 1 to enable the clock on either supply. The pin is high impedance when disabled.

Analog Devices / Maxim DS3231 Rev. 10, pp. 1–4, 9–11 and 13–14.

Electrical limits · Pin in the reference

Manufacturer documents

This map covers the quartz-based DS3231 in a 16-lead wide SO package. Verify the separate DS3231M MEMS datasheet for an M suffix.