2025-09-29 1:11 PM
This should be a simple use case but to my surprise it does not seems obvious how to do it. Say I have 3 PWM channels in the same timer, how do I turn them on simultaneously?
If I do
2025-09-29 4:11 PM
Configure timer in Slave mode: Trigger mode
The counter can start in response to an event on a selected input.
In the following example, the upcounter starts in response to a rising edge on TI2 input:
Details in Reference Manual for uCPU
2025-09-30 12:46 AM
Slave mode is not necessary, you can start the counter (and thus all PWMs simultaneously) simply by setting TIM_CR1.CEN in software, as the last thing, after everything else has been set up. But I don't know how to do it in Cube, I don't use Cube.
JW