vemu.

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

FieldTypeLabel
state_jsonstrRTC State Summary (JSON)
intenu32INTEN (interrupt enable mask)
evtenu32EVTEN (event routing enable)
counteru32COUNTER (current 24-bit value)
prescaleru32PRESCALER (12-bit divider)
runningboolRunning (RTC is counting)
ev_ticku32EVENTS_TICK latch
ev_ovrflwu32EVENTS_OVRFLW latch
ev_compareu32EVENTS_COMPARE bitmask (bits 0-3)

Read at runtime with emulator.peripheral_snapshot(name).

Boards using this peripheral