AnsweredAssumed Answered

HAL_TIM_PWM_Stop leaves output pin in undefined state

Question asked by frackers on Oct 18, 2016
Latest reply on Oct 26, 2016 by Higetaka
I'm trying to start/stop a PWM signal to an LED (simple test!!). Using HAL_TIM_PWM_Start() starts the PWM output, HAL_TIM_PWM_Stop() stops the PWM but leaves the output in a random state rather than the (expected) inactive state. This means my LED stays on constantly sometimes without pulsing.
Should I expect HAL_TIM_PWM_Stop() to do this or should I be turning a PWM output on/off a different way?

Outcomes