Spark Logic

DS3232 real-time clock connection guide

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

SO-20 · 300 mil

20 contacts Current package

Analog Devices / Maxim Integrated·

Device variants · SO-20 · 300 mil

DeviceDetails
DS3232S# 0 to +70 °C.
DS3232SN# −40 to +85 °C.

Connection scenarios

Use INT/SQW without battery backup

Remove the backup cell before grounding VBAT. Ground all NC leads and leave 32kHz and RST open. 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. This example connects SCL pins 18 and 20 to the same clock net. Either pin may be left open. Pull INT/SQW up to a host-compatible rail (5.5 V max) when used. Set INTCN = 1 and enable the desired alarm, or set INTCN = 0 and select the square-wave frequency with RS2:RS1.

  • +3.3 V
    • Host 3.3 V
    • C1.1
    • R3.1
    • R1.1
    • R2.1
  • Ground
    • Host ground
    • C1.2
  • I²C data
    • ↔
    • Host SDA
    • R1.2
  • I²C clock
    • →
    • →
    • Host SCL
    • R2.2
  • Alarm / square wave
    • →
    • Host input
    • R3.2
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
R3 4.7 kΩ between +3.3 V and Alarm / square wave+3.3 VR3 4.7 kΩAlarm / square wave

Bench checks

  • Find 0x68 and read the clock with main power on.
  • For a 1 Hz output, set INTCN = 0 and RS2:RS1 = 00 in control register 0x0E.
  • To test an alarm, clear its flag in 0x0F, set INTCN and its corresponding enable bit, then verify that the output goes low on a match.

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

SO-20 · 300 mil wiring map

External wiring example · Use INT/SQW without battery backup

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

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

1 · NC

Tie to ground · NC / reserved

No internal signal connection. Connect each NC lead externally to GND.

Wiring requirements

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

Connected nets

Electrical limits · Pin in the reference

Dashed lines show external connections in this wiring example.

  • Ground
    • Host ground
    • C1.2
    • Via C1 100 nF to +3.3 V · VCC (4), Host 3.3 V, C1.1, R3.1, R1.1, R2.1

Manufacturer documents

This map covers the 20-lead wide SO package. Pins 18 and 20 both carry SCL.