cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L476 Timer question?

SWenn.1
Senior III

I am using one timer to trigger a second one and produce pwm outputs on the second timer. I would like to know if I disable this pwm timer (using CEN) and then re-enable it, will the PWMs re-start or wait until the next trigger event to re-start?

If they restart based on the CEN bit coming back to active what can I use as the mechanism for stopping the pulse train after a trigger and then re-arming for the next trigger?

1 REPLY 1
RBENF.1
ST Employee

Hello @SWenn.1​ ,

Indeed, if you disable and re-enable CEN on your slave PWM timer, it will start immediately, and not wait for the next trigger event.

However you can just disable it, and wait for the next trigger event to automatically enable it again.

Regards,

Ryan