Introduction - If you have any usage issues, please Google them yourself
In order for the STM32 general timer TIMx to produce PWM output, except for the registers introduced in the previous chapter, we will 3 registers are used to control the PWM. The three registers are the capture / compare mode register (TIMx_CCMR1/2) capture / compare enable registers (TIMx_CCER) and capture / compare registers (TIMx_CCR1~4).