2023-01-20 07:12 AM
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?
2023-01-24 06:24 AM
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