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.

standing: provisionalI2C0x68 (fixed, 100 kHz Standard mode)
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 referenceZephyr maxim,ds1307 / RTClib DS1307
Evidence standingprovisional (register and bus behavior derived from vendor datasheet or driver oracle; not yet hardware-unit verified on two physical samples).
Published recordGenerate or inspect locally via ct twin generate (see /docs/twin-generation).

Key registers & reset values

Address / FieldRegisterReset / ExpectedPurpose
0x00SECONDS0x80 (CH=1)Bit 7 Clock Halt must be cleared to start oscillator
0x01-0x06MIN..YEARBCD formatMinutes, 12/24h hours, day, date, month and year
0x08-0x3FNV_RAM56 bytesBattery-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.yaml

Fault-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

Compatible board twins

More in Memory, RTC & Bus Control