2021-05-07 10:42 AM
2021-05-07 11:34 AM
The reference manual goes into detail on this.
For PWM output, you should set CCxE=1, and/or CCxNE=1 for complementary channel. The CCxP and CCxNP control the polarity of these channels, respectively. Note that on advanced timers (e.g. TIM1, TIM8), you also need to set MOE=1 in the TIMx->BDTR register.
2021-05-10 08:15 AM
Thank you.! I am just using the CCxE. So setting that Bit. & Reset the CCxNE pin.
Though I have also TIM_BDTR_MOE bit in the BDTR for timer 16/17 as well.