Current, Power & ADC

Texas Instruments INA228 in the datasheet corpus

85 V, 20-bit ultra-precise I2C current/power monitor with energy accumulator.

standing: provisionalI2C0x40-0x4F (A1/A0 pin straps)
VendorTexas InstrumentsCurrent, Power & ADC
InterfaceI2C0x40-0x4F (A1/A0 pin straps)
Record StatusCatalog profileDatasheet / behavioral twin

Driver oracle & capability record

Indexed in the CircuitTwin datasheet corpus (power-monitor class) alongside our INA219/INA226/INA260 twins.

Driver referenceZephyr ti,ina228 / TI INA228 C library
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
0x3E / 0x3FMANUF / DEV_ID0x5449 / 0x2281TI manufacturer ID and INA228 device ID
0x00 / 0x01CONFIG / ADC_CONFIG0x0000 / 0xFB68Shunt range with conversion time and averaging
0x04 / 0x05VSHUNT / VBUS20-bit BEHigh-resolution shunt and 85 V bus voltage readouts
0x08-0x0APOWER / ENERGY / CHARGE24/40-bitHardware-accumulated power/joules/coulombs

Attach with ct CLI

Shell - run firmware with INA228
# Run compiled firmware with INA228 attached on nucleo-h743zi2
ct run --json --board nucleo-h743zi2 --device ina228 build/app.elf

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

Fault-injection test snippet (suite.yaml)

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

Compatible board twins

More in Current, Power & ADC