Question
HAL_TIM_PWM_Stop leaves output pin in undefined state
Posted on October 18, 2016 at 02:28
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?