Hello @jiu ,
actually they are each other opposite :
You could find the information in the reference manual of stm32f4 :
> difference between using pwm mode 2 and using pwm mode 1 to invert using CCMR1 register
You mean, is PWM mode 2 identical to PWM mode 1 inverted using TIMx_CCER.CCxP? In the simple case of simple PWM output, yes.
Difference occurs only in more complex usage, involving OCxRef signal, e.g. using the Fast mode (set by TIMx_CCMRx.OCxFE) and OCxRef clear (see TIMx_CCMRx.OCxCE). Output polarity also matters in states involving Break, see Advanced Timers.