![Geehy SEMICONDUCTOR APM32F405 Series User Manual Download Page 208](http://html1.mh-extra.com/html/geehy-semiconductor/apm32f405-series/apm32f405-series_user-manual_573630208.webp)
www.geehy.com Page 207
is determined by the value of the auto reload AUTORLD.
PWM output mode contains PWM mode 1 and PWM mode 2; PWM mode 1 and
PWM mode 2 are divided into count-up, count-down and edge alignment
counting; in PWM mode 1, if the value of the counter CNT is less than the value
of the compare register CCx, the output level will be valid; otherwise, it will be
invalid.
Set the timing diagram in PWM mode 1 when CCx=5, AUTORLD=7:
Figure 42 PWM1 Count-up Mode Timing Diagram
AUTORLD
CCx
OCxREF
Figure 43 PWM1 Count-down Mode Timing Diagram
CCx
AUTORLD
OCxREF
Figure 44 PWM1 Center-aligned Mode Timing Diagram
AUTORLD
CCx
OCxREF