Memory, RTC & Bus Control

# NXP Semiconductors PCF8523 in the datasheet corpus

Ultra-low-power 1.2 uA I2C real-time clock with battery switch-over and countdown timers.

standing: provisional I2C 0x68 (fixed, up to 1 MHz Fm+)

Vendor NXP Semiconductors Memory, RTC & Bus Control

Interface I2C 0x68 (fixed, up to 1 MHz Fm+)

Record Status Catalog profile Datasheet / behavioral twin

## Driver oracle & capability record

Indexed in the CircuitTwin datasheet corpus (rtc class) for data-logger timestamp and battery-fail flag testing.

| Driver reference  | Zephyr nxp,pcf8523 / Adafruit RTClib                                                                                                            |
| ----------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
| 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                                                   |
| --------------- | -------------- | ------------------ | --------------------------------------------------------- |
| 0x00-0x02       | Control\_1..3  | 0x00 / 0x00 / 0xE0 | Clock stop, battery switch-over mode and low-battery flag |
| 0x03            | Seconds        | OS bit \[7\]=1     | BCD seconds plus oscillator-stop integrity flag           |
| 0x04-0x09       | Minutes..Years | BCD calendar       | Calendar counters with leap-year handling                 |

## Attach with ct CLI

Shell - run firmware with PCF8523

```
# Run compiled firmware with PCF8523 attached on feather-nrf52840-express
ct run --json --board feather-nrf52840-express --device pcf8523 build/app.elf

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

## Fault-injection test snippet (suite.yaml)

tests/pcf8523-fault.suite.yaml

```
version: 1
board: feather-nrf52840-express
firmware: build/app.elf
tests:
  - name: pcf8523-i2c-nack-recovery
    faults:
      - at_ms: 30
        bus: I2C1
        kind: nack
        address: 0x68
        count: 2
      - at_ms: 140
        part: pcf8523
        kind: register_override
        register: 0x02
        value: 0xFF
    expect:
      console_contains: "DRIVER_FAULT_HANDLED"
      exit_code: 0
```

## Compatible board twins

[Board: feather-nrf52840-express](https://circuittwin.ai/boards/feather-nrf52840-express) [Board: frdm-k64f](https://circuittwin.ai/boards/frdm-k64f) [Board: rpi-pico](https://circuittwin.ai/boards/rpi-pico) [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 PCF8523 bus faults in CI
>
> Wire PCF8523 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)
