Module nrf52840::pwm0[][src]

Pulse width modulation unit 0

Modules

countertop

Value up to which the pulse generator counter counts

decoder

Configuration of the decoder

enable

PWM module enable register

events_loopsdone

Concatenated sequences have been played the amount of times defined in LOOP.CNT

events_pwmperiodend

Emitted at the end of each PWM period

events_seqend

Description collection[n]: Emitted at end of every sequence n, when last value from RAM has been applied to wave counter

events_seqstarted

Description collection[n]: First PWM period started on sequence n

events_stopped

Response to STOP task, emitted when PWM pulses are no longer generated

inten

Enable or disable interrupt

intenclr

Disable interrupt

intenset

Enable interrupt

loop_

Number of playbacks of a loop

mode

Selects operating mode of the wave counter

prescaler

Configuration for PWM_CLK

psel

Register block Unspecified

seq

Register block Unspecified

shorts

Shortcut register

tasks_nextstep

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.

tasks_seqstart

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.

tasks_stop

Stops PWM pulse generation on all channels at the end of current PWM period, and stops sequence playback

Structs

COUNTERTOP

Value up to which the pulse generator counter counts

DECODER

Configuration of the decoder

ENABLE

PWM module enable register

EVENTS_LOOPSDONE

Concatenated sequences have been played the amount of times defined in LOOP.CNT

EVENTS_PWMPERIODEND

Emitted at the end of each PWM period

EVENTS_SEQEND

Description collection[n]: Emitted at end of every sequence n, when last value from RAM has been applied to wave counter

EVENTS_SEQSTARTED

Description collection[n]: First PWM period started on sequence n

EVENTS_STOPPED

Response to STOP task, emitted when PWM pulses are no longer generated

INTEN

Enable or disable interrupt

INTENCLR

Disable interrupt

INTENSET

Enable interrupt

LOOP

Number of playbacks of a loop

MODE

Selects operating mode of the wave counter

PRESCALER

Configuration for PWM_CLK

PSEL

Register block

RegisterBlock

Register block

SEQ

Register block

SHORTS

Shortcut register

TASKS_NEXTSTEP

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.

TASKS_SEQSTART

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.

TASKS_STOP

Stops PWM pulse generation on all channels at the end of current PWM period, and stops sequence playback