Environment & Temperature

Analog Devices / Maxim DS18B20 in the datasheet corpus

Programmable 9-to-12-bit 1-Wire digital thermometer with unique 64-bit ROM address and CRC-8.

standing: provisional1-WireSingle-wire open-drain (4.7 kOhm pull-up)
VendorAnalog Devices / MaximEnvironment & Temperature
Interface1-WireSingle-wire open-drain (4.7 kOhm pull-up)
Record StatusCatalog profileDatasheet / behavioral twin

Driver oracle & capability record

Indexed in the CircuitTwin datasheet corpus; exercises 1-Wire reset/presence pulse timing and 9-byte scratchpad CRC-8.

Driver referenceZephyr maxim,ds18b20 / OneWire DallasTemperature
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
0xCC / 0x55SKIP_ROM / MATCH_ROMROM commandSingle-drop broadcast or 64-bit ROM address select
0x44CONVERT_T93.75..750 msStarts temperature conversion (9..12-bit resolution)
0xBEREAD_SCRATCHPAD9 bytes + CRC8Temp LSB/MSB, TH/TL, config register and Dallas CRC-8

Attach with ct CLI

Shell - run firmware with DS18B20
# Run compiled firmware with DS18B20 attached on arduino-uno
ct run --json --board arduino-uno --device ds18b20 build/app.elf

# Run fault-injection suite and emit JUnit XML
ct test run --json --junit results/ds18b20.xml tests/ds18b20-fault.suite.yaml

Fault-injection test snippet (suite.yaml)

tests/ds18b20-fault.suite.yaml
version: 1
board: arduino-uno
firmware: build/app.elf
tests:
  - name: ds18b20-onewire-missing-presence
    faults:
      - at_ms: 50
        part: ds18b20
        kind: bus_disconnect
        duration_ms: 100
    expect:
      console_contains: "ONEWIRE_FAULT_HANDLED"
      exit_code: 0

Compatible board twins

More in Environment & Temperature