Memory, RTC & Bus Control

Texas Instruments / NXP PCF8574 in the datasheet corpus

8-bit quasi-bidirectional I2C I/O expander widely used for HD44780 LCD backpacks and relay boards.

standing: provisionalI2C0x20-0x27 (PCF8574A: 0x38-0x3F)
VendorTexas Instruments / NXPMemory, RTC & Bus Control
InterfaceI2C0x20-0x27 (PCF8574A: 0x38-0x3F)
Record StatusCatalog profileDatasheet / behavioral twin

Driver oracle & capability record

Indexed in the CircuitTwin datasheet corpus; single-byte registerless protocol with open-drain INT pin on input change.

Driver referenceZephyr nxp,pcf857x / Arduino LiquidCrystal_I2C
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
Write 1BPORT_OUT0xFF (high)Drives P0..P7 low or weak-high (write 1 to read as input)
Read 1BPORT_INPin levelsSamples P0..P7 and clears latched INT output

Attach with ct CLI

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

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

Fault-injection test snippet (suite.yaml)

tests/pcf8574-fault.suite.yaml
version: 1
board: arduino-uno
firmware: build/app.elf
tests:
  - name: pcf8574-i2c-nack-recovery
    faults:
      - at_ms: 30
        bus: I2C1
        kind: nack
        address: 0x27
        count: 2
      - at_ms: 140
        part: pcf8574
        kind: frozen_reading
    expect:
      console_contains: "DRIVER_FAULT_HANDLED"
      exit_code: 0

Compatible board twins

More in Memory, RTC & Bus Control