Current, Power & ADC
Texas Instruments INA228 in the datasheet corpus
85 V, 20-bit ultra-precise I2C current/power monitor with energy accumulator.
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 reference | Zephyr ti,ina228 / TI INA228 C library |
|---|---|
| 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 |
|---|---|---|---|
0x3E / 0x3F | MANUF / DEV_ID | 0x5449 / 0x2281 | TI manufacturer ID and INA228 device ID |
0x00 / 0x01 | CONFIG / ADC_CONFIG | 0x0000 / 0xFB68 | Shunt range with conversion time and averaging |
0x04 / 0x05 | VSHUNT / VBUS | 20-bit BE | High-resolution shunt and 85 V bus voltage readouts |
0x08-0x0A | POWER / ENERGY / CHARGE | 24/40-bit | Hardware-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.yamlFault-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