Memory, RTC & Bus Control
Analog Devices / Maxim DS3231 digital twin
±2 ppm TCXO I2C real-time clock with dual alarms and die temperature.
VendorAnalog Devices / MaximMemory, RTC & Bus Control
InterfaceI2C0x68 (fixed)
Record Status2026-11-19rev c3f5f9950 (clean tree)
Driver oracle & capability record
Part of the 27-part, 44-case twin-factory oracle suite (44/44 passed, generator 0.1.0+policy.12).
| Driver reference | Twin-factory vendor-driver oracle (0.1.0+policy.12) |
|---|---|
| Evidence standing | provisional (register and bus behavior derived from vendor datasheet or driver oracle; not yet hardware-unit verified on two physical samples). |
| Published record | accuracy/twin-factory-oracles-2026-11-19b.json (SHA-256 caa6e32e53c5) |
Key registers & reset values
| Address / Field | Register | Reset / Expected | Purpose |
|---|---|---|---|
0x00–0x06 | SEC..YEAR | BCD time | Seconds, minutes, hours, day, date, month, year |
0x0E / 0x0F | CONTROL / STATUS | 0x1C / 0x88 | Oscillator enable, SQW/INTCN and OSF stop flag |
0x11–0x12 | TEMP_MSB/LSB | 0.25 °C/LSB | TCXO temperature readout |
Attach with ct CLI
Shell - run firmware with DS3231
# Run compiled firmware with DS3231 attached on arduino-uno
ct run --json --board arduino-uno --device ds3231 build/app.elf
# Run fault-injection suite and emit JUnit XML
ct test run --json --junit results/ds3231.xml tests/ds3231-fault.suite.yamlFault-injection test snippet (suite.yaml)
tests/ds3231-fault.suite.yaml
version: 1
board: arduino-uno
firmware: build/app.elf
tests:
- name: ds3231-i2c-nack-and-bad-id
faults:
- at_ms: 30
bus: I2C1
kind: nack
address: 0x68
count: 2
- at_ms: 150
part: ds3231
kind: frozen_reading
expect:
console_contains: "DRIVER_FAULT_DETECTED"
exit_code: 0