GD32W51x User Manual
516
The CAPWM period is determined by 2*TIMERx_CAR, and duty cycle is determined by
2*TIMERx_CHxCV.
Figure 17-46. Timing chart of CAPWM
shows the CAPWM output and
interrupts waveform.
If TIMERx_CHxCV is greater than TIMERx_CAR, the output will be always active under PWM
mode0 (CHxCOMCTL==3
’
b110).
And if TIMERx_CHxCV is equal to zero, the output will be always inactive under PWM mode0
(CHxCOMCTL==3
’
b110).
Figure 17-45. Timing chart of EAPWM
0
CHxVAL
CAR
PWM MODE0
PWM MODE1
Cx OUT
Cx OUT
Interrupt signal
CHxIF
Figure 17-46. Timing chart of CAPWM
0
CHxVAL
CAR
PWM MODE0
Cx OUT
PWM MODE1
Cx OUT
Interrupt signal
CHxIF
CAM=2'b01 down only
CAM=2'b10 up only
CHxIF
CAM=2'b11 up/down
CHxIF