vemu.

Audio - Digital Microphone (PDM) - nordic,nrf-pdm

nRF5340 PDM (pulse density modulation microphone)

Functional PDM model with no real microphone: `TASKS_START` latches `STARTED`, fills the EasyDMA sample buffer with silence (zeros), and latches `END` immediately; `TASKS_STOP` latches `STOPPED` (IRQ when enabled). Supports DPPI SUBSCRIBE/PUBLISH.

tickableemits: signal_pulseemits: dmaemits: custom

Events emitted

nrf.pdm.end

Fires when the PDM EasyDMA has written the last sample to RAM (EVENTS_END latched).

Payload

Empty payload object.

nrf.pdm.started

Fires when the PDM peripheral starts a transfer (EVENTS_STARTED latched).

Payload

Empty payload object.

nrf.pdm.stopped

Fires when the PDM peripheral stops (EVENTS_STOPPED latched).

Payload

Empty payload object.

Events accepted

No peripheral-specific input events. The peripheral is driven through MMIO register access.

Commands

This peripheral exposes no commands.

Snapshot fields

FieldTypeLabel
intenu32INTEN (interrupt enable mask)
ev_startedu32EVENTS_STARTED latch
ev_stoppedu32EVENTS_STOPPED latch
ev_endu32EVENTS_END latch
enableu32ENABLE register
sample_ptru32SAMPLE.PTR (EasyDMA destination)
sample_maxcntu32SAMPLE.MAXCNT (number of samples)
state_jsonstrPDM State Summary (JSON)

Read at runtime with emulator.peripheral_snapshot(name).

Boards using this peripheral