How to disable PWM output but enable its complementary PWM output?
however, pwm1 doesn't output pulses. I think timer1 stop comparing output if calling Stop() function. Anyone has idea to implement this?
Thank you.
however, pwm1 doesn't output pulses. I think timer1 stop comparing output if calling Stop() function. Anyone has idea to implement this?
Thank you.
Which STM32?
Note, that disabling CCxE puts the given pin to Hi-Z. Also note that the complementary channel does not output inverted version of the waveform if CCxE is cleared.
Because of these minor but surprising features, it may be easier just swap the pins' setting in GPIO_MODER from AF to Out and vice versa.
I don't think you should seek Cube/HAL incantations for these things as they are beyond what Cube/HAL authors deem as "normal usage".
JW
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.