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: provisional I2C 0x20-0x27 (PCF8574A: 0x38-0x3F)

Vendor Texas Instruments / NXP Memory, RTC & Bus Control

Interface I2C 0x20-0x27 (PCF8574A: 0x38-0x3F)

Record Status Catalog profile Datasheet / 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 reference  | Zephyr nxp,pcf857x / Arduino LiquidCrystal\_I2C                                                                                                 |
| ----------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
| 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](https://circuittwin.ai/docs/twin-generation)).                    |

## Key registers & reset values

| Address / Field | Register  | Reset / Expected | Purpose                                                   |
| --------------- | --------- | ---------------- | --------------------------------------------------------- |
| Write 1B        | PORT\_OUT | 0xFF (high)      | Drives P0..P7 low or weak-high (write 1 to read as input) |
| Read 1B         | PORT\_IN  | Pin levels       | Samples 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

[Board: arduino-uno](https://circuittwin.ai/boards/arduino-uno) [Board: blue-pill-f103c8](https://circuittwin.ai/boards/blue-pill-f103c8) [Board: esp32-devkitc](https://circuittwin.ai/boards/esp32-devkitc) [Accuracy report](https://circuittwin.ai/docs/accuracy)

## More in Memory, RTC & Bus Control

[24LC256 (Microchip)](https://circuittwin.ai/twins/24lc256) [AT24C256C (Microchip)](https://circuittwin.ai/twins/at24c256c) [ATECC608A (Microchip)](https://circuittwin.ai/twins/atecc608a) [DS1307 (Analog)](https://circuittwin.ai/twins/ds1307) [DS3231 (Analog)](https://circuittwin.ai/twins/ds3231) [FM24CL64B (Infineon)](https://circuittwin.ai/twins/fm24cl64b)

> ## Inject PCF8574 bus faults in CI
>
> Wire PCF8574 onto your MCU board twin, drive physical stimuli and fail builds when your driver hangs on NACKs or frozen registers.
>
> [Start now](https://app.circuittwin.ai/try) [Inputs & fault injection docs](https://circuittwin.ai/docs/inputs) [Connect a coding agent](https://circuittwin.ai/docs/agents)
