Memory, RTC & Bus Control
Analog Devices / Maxim DS1307 in the datasheet corpus
I2C BCD real-time clock with 56 bytes of battery-backed SRAM and square-wave output.
VendorAnalog Devices / MaximMemory, RTC & Bus Control
InterfaceI2C0x68 (fixed, 100 kHz Standard mode)
Record StatusCatalog profileDatasheet / behavioral twin
Driver oracle & capability record
Indexed in the CircuitTwin datasheet corpus (rtc class); models Clock Halt (CH) bit 7 on power-up and BCD rollover.
| Driver reference | Zephyr maxim,ds1307 / RTClib DS1307 |
|---|---|
| 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 | Generate or inspect locally via ct twin generate (see /docs/twin-generation). |
Key registers & reset values
| Address / Field | Register | Reset / Expected | Purpose |
|---|---|---|---|
0x00 | SECONDS | 0x80 (CH=1) | Bit 7 Clock Halt must be cleared to start oscillator |
0x01-0x06 | MIN..YEAR | BCD format | Minutes, 12/24h hours, day, date, month and year |
0x08-0x3F | NV_RAM | 56 bytes | Battery-backed general-purpose scratchpad RAM |
Attach with ct CLI
Shell - run firmware with DS1307
# Run compiled firmware with DS1307 attached on arduino-uno
ct run --json --board arduino-uno --device ds1307 build/app.elf
# Run fault-injection suite and emit JUnit XML
ct test run --json --junit results/ds1307.xml tests/ds1307-fault.suite.yamlFault-injection test snippet (suite.yaml)
tests/ds1307-fault.suite.yaml
version: 1
board: arduino-uno
firmware: build/app.elf
tests:
- name: ds1307-i2c-nack-recovery
faults:
- at_ms: 30
bus: I2C1
kind: nack
address: 0x68
count: 2
- at_ms: 140
part: ds1307
kind: register_override
register: 0x00
value: 0xFF
expect:
console_contains: "DRIVER_FAULT_HANDLED"
exit_code: 0