Digital I/O - PWM - nordic,nrf-pwm
nRF5340 PWM (pulse width modulation with EasyDMA)
Functional PWM model with no electrical output. `TASKS_SEQSTART[n]` consumes the sequence descriptor via an EasyDMA read and latches `SEQSTARTED`, `SEQEND`, `PWMPERIODEND`, and `LOOPSDONE` immediately (single-loop completion, IRQ when enabled); `TASKS_STOP` latches `STOPPED`. DPPI subscribe/publish is supported.
emits: signal_pulseemits: dma
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 |
|---|---|---|
| inten | u32 | INTEN (interrupt enable mask) |
| enable | u32 | ENABLE |
| countertop | u32 | COUNTERTOP |
| ev_stopped | u32 | EVENTS_STOPPED latch |
| ev_seqstarted0 | u32 | EVENTS_SEQSTARTED[0] latch |
| ev_seqstarted1 | u32 | EVENTS_SEQSTARTED[1] latch |
| ev_seqend0 | u32 | EVENTS_SEQEND[0] latch |
| ev_seqend1 | u32 | EVENTS_SEQEND[1] latch |
| ev_pwmperiodend | u32 | EVENTS_PWMPERIODEND latch |
| ev_loopsdone | u32 | EVENTS_LOOPSDONE latch |
| state_json | str | PWM State Summary (JSON) |
Read at runtime with emulator.peripheral_snapshot(name).