Module nrf52832_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[0]: Emitted at end of every sequence 0, when last value from RAM has been applied to wave counter
Description collection[0]: First PWM period started on sequence 0
Response to STOP task, emitted when PWM pulses are no longer generated
Enable or disable interrupt
Disable interrupt
Enable interrupt
Amount of playback 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 it was not running.
Description collection[0]: Loads the first PWM value on all enabled channels from sequence 0, and starts playing that sequence at the rate defined in SEQ[0]REFRESH and/or DECODER.MODE. Causes PWM generation to start it was not running.
Stops PWM pulse generation on all channels at the end of current PWM period, and stops sequence playback
Structs
Type Definitions
COUNTERTOP register accessor: an alias for Reg<COUNTERTOP_SPEC>
DECODER register accessor: an alias for Reg<DECODER_SPEC>
ENABLE register accessor: an alias for Reg<ENABLE_SPEC>
EVENTS_LOOPSDONE register accessor: an alias for Reg<EVENTS_LOOPSDONE_SPEC>
EVENTS_PWMPERIODEND register accessor: an alias for Reg<EVENTS_PWMPERIODEND_SPEC>
EVENTS_SEQEND register accessor: an alias for Reg<EVENTS_SEQEND_SPEC>
EVENTS_SEQSTARTED register accessor: an alias for Reg<EVENTS_SEQSTARTED_SPEC>
EVENTS_STOPPED register accessor: an alias for Reg<EVENTS_STOPPED_SPEC>
INTEN register accessor: an alias for Reg<INTEN_SPEC>
INTENCLR register accessor: an alias for Reg<INTENCLR_SPEC>
INTENSET register accessor: an alias for Reg<INTENSET_SPEC>
LOOP register accessor: an alias for Reg<LOOP_SPEC>
MODE register accessor: an alias for Reg<MODE_SPEC>
PRESCALER register accessor: an alias for Reg<PRESCALER_SPEC>
SHORTS register accessor: an alias for Reg<SHORTS_SPEC>
TASKS_NEXTSTEP register accessor: an alias for Reg<TASKS_NEXTSTEP_SPEC>
TASKS_SEQSTART register accessor: an alias for Reg<TASKS_SEQSTART_SPEC>
TASKS_STOP register accessor: an alias for Reg<TASKS_STOP_SPEC>