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.
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 reference | Zephyr maxim,ds18b20 / OneWire DallasTemperature |
|---|---|
| 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 |
|---|---|---|---|
0xCC / 0x55 | SKIP_ROM / MATCH_ROM | ROM command | Single-drop broadcast or 64-bit ROM address select |
0x44 | CONVERT_T | 93.75..750 ms | Starts temperature conversion (9..12-bit resolution) |
0xBE | READ_SCRATCHPAD | 9 bytes + CRC8 | Temp 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.yamlFault-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