Spark Logic

DS3231 real-time clock pinout

The DS3231 is a battery-backed I²C real-time clock with a temperature-compensated crystal oscillator, two alarms, and a programmable square-wave output.

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.

SO-16 · 300 mil pinout

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 · Link to this pin

Read the clock with battery backup

  • +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

Connection guide

All 16 pins

PinSignalDirectionFunction
132kHz Open-drain outputOpen-drain output Optional 32.768 kHz clock output.
2VCC Supply inputSupply input Primary device supply.
3INT/SQW Open drainOpen drain Alarm interrupt or programmable square wave. Add a pull-up when used.
4RST BidirectionalBidirectional Active-low reset status and debounced pushbutton input, with internal pull-up.
5NC Tie to groundTie to ground No internal signal connection. Connect each NC lead externally to GND.
6NC Tie to groundTie to ground No internal signal connection. Connect each NC lead externally to GND.
7NC Tie to groundTie to ground No internal signal connection. Connect each NC lead externally to GND.
8NC Tie to groundTie to ground No internal signal connection. Connect each NC lead externally to GND.
9NC Tie to groundTie to ground No internal signal connection. Connect each NC lead externally to GND.
10NC Tie to groundTie to ground No internal signal connection. Connect each NC lead externally to GND.
11NC Tie to groundTie to ground No internal signal connection. Connect each NC lead externally to GND.
12NC Tie to groundTie to ground No internal signal connection. Connect each NC lead externally to GND.
13GND Supply returnSupply return Connect to the common ground plane or bench return.
14VBAT Supply inputSupply input Backup supply input.
15SDA BidirectionalBidirectional Open-drain I²C data. The bus needs a pull-up to its logic rail.
16SCL InputInput I²C clock. Connect to the host clock line with its bus pull-up.

Signal assignments

I²C

7-bit address 0x68. Standard mode up to 100 kHz or Fast mode up to 400 kHz. I²C is accessible with either supply valid and the host bus powered.

Alarm / square wave

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.

Electrical limits

ParameterLimitConditions and source
Main supply2.3–5.5 V2.3–5.5 V VCC supplies the RTC above VPF (2.45–2.70 V). Below VPF, the RTC switches to VBAT if VCC is also below VBAT. Analog Devices / Maxim DS3231 Rev. 10, pp. 1–4, 9–11 and 13–14.
Backup supply2.3–5.5 V2.3–5.5 V A 3 V primary lithium cell suits the bare IC. Keep EOSC = 0 to run the clock on VBAT. Analog Devices / Maxim DS3231 Rev. 10, pp. 1–4, 9–11 and 13–14.
Oscillator accuracy±2 ppm±2 ppm 0 to +40 °C. Consult the part grade and temperature conditions for wider ranges. Analog Devices / Maxim DS3231 Rev. 10, pp. 1–4, 9–11 and 13–14.
I²C speed400 kHz maximum400 kHz maximum Size the pull-ups for bus capacitance and logic thresholds. Analog Devices / Maxim DS3231 Rev. 10, pp. 1–4, 9–11 and 13–14.

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.