Timing - Real-Time Counter - nordic,nrf-rtc
nRF5340 RTC (real-time counter)
24-bit LFCLK (32.768 kHz) counter with prescaler, four compare channels, TICK/OVRFLW/COMPARE events, and DPPI subscribe/publish. Events latch unconditionally; `EVTEN` gates the DPPI publish path and `INTEN` gates the IRQ pulse, matching the product specification.
tickableemits: signal_pulse
Events emitted
No peripheral-specific events. Structured activity (IRQs, DMA) surfaces through the shared event vocabulary.
Events accepted
No peripheral-specific input events. The peripheral is driven through MMIO register access.
Commands
This peripheral exposes no commands.
Snapshot fields
| Field | Type | Label |
|---|---|---|
| state_json | str | RTC State Summary (JSON) |
| inten | u32 | INTEN (interrupt enable mask) |
| evten | u32 | EVTEN (event routing enable) |
| counter | u32 | COUNTER (current 24-bit value) |
| prescaler | u32 | PRESCALER (12-bit divider) |
| running | bool | Running (RTC is counting) |
| ev_tick | u32 | EVENTS_TICK latch |
| ev_ovrflw | u32 | EVENTS_OVRFLW latch |
| ev_compare | u32 | EVENTS_COMPARE bitmask (bits 0-3) |
Read at runtime with emulator.peripheral_snapshot(name).