Environment & Temperature

Texas Instruments TMP102 in the datasheet corpus

12-bit ±0.5 C low-power digital temperature sensor with SMBus alert pin.

standing: provisionalI2C / SMBus0x48-0x4B (ADD0 pin strap)
VendorTexas InstrumentsEnvironment & Temperature
InterfaceI2C / SMBus0x48-0x4B (ADD0 pin strap)
Record StatusCatalog profileDatasheet / behavioral twin

Driver oracle & capability record

Indexed in the CircuitTwin datasheet corpus (temperature class); models 12-bit/13-bit extended mode and T_HIGH/T_LOW hysteresis.

Driver referenceZephyr ti,tmp102 / SparkFun TMP102
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
0x00TEMP12-bit signed BEAmbient temperature (0.0625 C/LSB, right-shift 4)
0x01CONFIG0x60A0Shutdown, thermostat mode, alert polarity and extended bit
0x02 / 0x03T_LOW / T_HIGH75 C / 80 CAlert comparator thresholds

Attach with ct CLI

Shell - run firmware with TMP102
# Run compiled firmware with TMP102 attached on nucleo-f091rc
ct run --json --board nucleo-f091rc --device tmp102 build/app.elf

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

Fault-injection test snippet (suite.yaml)

tests/tmp102-fault.suite.yaml
version: 1
board: nucleo-f091rc
firmware: build/app.elf
tests:
  - name: tmp102-i2c-nack-recovery
    faults:
      - at_ms: 30
        bus: I2C1
        kind: nack
        address: 0x48
        count: 2
      - at_ms: 140
        part: tmp102
        kind: register_override
        register: 0x01
        value: 0xFF
    expect:
      console_contains: "DRIVER_FAULT_HANDLED"
      exit_code: 0

Compatible board twins

More in Environment & Temperature