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.
Events emitted
nrf.pdm.endFires when the PDM EasyDMA has written the last sample to RAM (EVENTS_END latched).
Payload
Empty payload object.
nrf.pdm.startedFires when the PDM peripheral starts a transfer (EVENTS_STARTED latched).
Payload
Empty payload object.
nrf.pdm.stoppedFires 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
| Field | Type | Label |
|---|---|---|
| inten | u32 | INTEN (interrupt enable mask) |
| ev_started | u32 | EVENTS_STARTED latch |
| ev_stopped | u32 | EVENTS_STOPPED latch |
| ev_end | u32 | EVENTS_END latch |
| enable | u32 | ENABLE register |
| sample_ptr | u32 | SAMPLE.PTR (EasyDMA destination) |
| sample_maxcnt | u32 | SAMPLE.MAXCNT (number of samples) |
| state_json | str | PDM State Summary (JSON) |
Read at runtime with emulator.peripheral_snapshot(name).