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.
VendorNXP SemiconductorsMemory, RTC & Bus Control
InterfaceI2C0x68 (fixed, up to 1 MHz Fm+)
Record StatusCatalog profileDatasheet / 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). |
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.yamlFault-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