Pulse-width modulation (PWM) is a method for using pulse width to encode or modulate a signal. The width of each pulse is a function of the amplitude of the signal.
The duty cycle is measured in percentage. The percentage duty cycle specifically describes the percentage of time a digital signal is on over an interval or period of time. This period is the inverse of the frequency of the waveform.
Address offset:0x00X4 (T0 X=0; T1 X=4; T2 X=8; T3 X=C)
Reset value:0x0000_0000
Bits
Field
Description
[23:16]
PRESC
Prescaler value configuration. Value = actual value − 1
[12]
UPDOWNSEL
Center-aligned mode configuration: 0 = the counter counts up and down alternately; 1 = the counter counts up and resets to 0 when reaching the threshold
[11]
CLKSEL
Clock source configuration: 0 = pclk, 1 = is_clk
[10:8]
MODE
Trigger mode configuration bitfield: 000 = trigger event at each clock cycle; 001 = trigger event if input source is 0; 010 = trigger event if input source is 1
Address offset:0x00XC (T0 X=0; T1 X=4; T2 X=8; T3 X=C)
Reset value:0x0000_0000
Bits
Field
Description
[18:16]
MODE
Channel 0 threshold match action on channel output signal configuration bitfield: 000 = set; 001 = toggle, then next threshold match action is clear; 010 = set, then next threshold match action is clear; 011 = toggle; 100 = clear; 101 = toggle, then next threshold match action is set; 110 = clear, then next threshold match action is set
[15:0]
TH
Channel 0 threshold configuration bitfield. Value = actual value − 1
Address offset:0x00X0 (T0 X=1; T1 X=5; T2 X=9; T3 X=D)
Reset value:0x0000_0000
Bits
Field
Description
[18:16]
MODE
Channel 1 threshold match action on channel output signal configuration bitfield: 000 = set; 001 = toggle, then next threshold match action is clear; 010 = set, then next threshold match action is clear; 011 = toggle; 100 = clear; 101 = toggle, then next threshold match action is set; 110 = clear, then next threshold match action is set
[15:0]
TH
Channel 1 threshold configuration bitfield. Value = actual value − 1
Address offset:0x00X4 (T0 X=1; T1 X=5; T2 X=9; T3 X=D)
Reset value:0x0000_0000
Bits
Field
Description
[18:16]
MODE
Channel 2 threshold match action on channel output signal configuration bitfield: 000 = set; 001 = toggle, then next threshold match action is clear; 010 = set, then next threshold match action is clear; 011 = toggle; 100 = clear; 101 = toggle, then next threshold match action is set; 110 = clear, then next threshold match action is set
[15:0]
TH
Channel 2 threshold configuration bitfield. Value = actual value − 1
Address offset:0x00X8 (T0 X=1; T1 X=5; T2 X=9; T3 X=D)
Reset value:0x0000_0000
Bits
Field
Description
[18:16]
MODE
Channel 3 threshold match action on channel output signal configuration bitfield: 000 = set; 001 = toggle, then next threshold match action is clear; 010 = set, then next threshold match action is clear; 011 = toggle; 100 = clear; 101 = toggle, then next threshold match action is set; 110 = clear, then next threshold match action is set
[15:0]
TH
Channel 3 threshold configuration bitfield. Value = actual value − 1