How to disable PWM output properly?
Hello,
My timer PWM channel is connected directly to a mosfet driver. By using
TIM_Cmd(TIM2, DISABLE);
it puts the output at high level. I tried to use TIM_DeInit(TIM2); but it generates an additional pulse in the output ( I count the each PWM pulse in interrupt and I disable timer in the interrupt routine). So I need to know what is the best way to disable a timer to put it at low level while it is disabled.