Module nrf52840_pac::pwm0

source ·
Expand description

Pulse width modulation unit 0

Modules

Value up to which the pulse generator counter counts
Configuration of the decoder
PWM module enable register
Concatenated sequences have been played the amount of times defined in LOOP.CNT
Emitted at the end of each PWM period
Description collection[n]: Emitted at end of every sequence n, when last value from RAM has been applied to wave counter
Description collection[n]: First PWM period started on sequence n
Response to STOP task, emitted when PWM pulses are no longer generated
Enable or disable interrupt
Disable interrupt
Enable interrupt
Number of playbacks of a loop
Selects operating mode of the wave counter
Configuration for PWM_CLK
Register block Unspecified
Register block Unspecified
Shortcut register
Steps by one value in the current sequence on all enabled channels if DECODER.MODE=NextStep. Does not cause PWM generation to start if not running.
Description collection[n]: Loads the first PWM value on all enabled channels from sequence n, and starts playing that sequence at the rate defined in SEQ[n]REFRESH and/or DECODER.MODE. Causes PWM generation to start if not running.
Stops PWM pulse generation on all channels at the end of current PWM period, and stops sequence playback

Structs

Value up to which the pulse generator counter counts
Configuration of the decoder
PWM module enable register
Concatenated sequences have been played the amount of times defined in LOOP.CNT
Emitted at the end of each PWM period
Description collection[n]: Emitted at end of every sequence n, when last value from RAM has been applied to wave counter
Description collection[n]: First PWM period started on sequence n
Response to STOP task, emitted when PWM pulses are no longer generated
Enable or disable interrupt
Disable interrupt
Enable interrupt
Number of playbacks of a loop
Selects operating mode of the wave counter
Configuration for PWM_CLK
Register block
Register block
Register block
Shortcut register
Steps by one value in the current sequence on all enabled channels if DECODER.MODE=NextStep. Does not cause PWM generation to start if not running.
Description collection[n]: Loads the first PWM value on all enabled channels from sequence n, and starts playing that sequence at the rate defined in SEQ[n]REFRESH and/or DECODER.MODE. Causes PWM generation to start if not running.
Stops PWM pulse generation on all channels at the end of current PWM period, and stops sequence playback