2025-04-19 1:45 PM
Hello everyone. Question about synchronous launch of three timers.
Given:
- CPU F0 or F4 or G4 (of course F103 is possible - I just don't like it, personal dislike);
- three timers, each with its own operating frequency, Timers work via DMA, each with its own buffer for PWM generation;
Task:
- simultaneous launch of all three timers;
Limits:
- interrupts are prohibited, no interrupts;
With the same frequency - there are no problems, they start at the same time, but with different frequencies, everything diverges. Tell me if there is a solution.
Solved! Go to Solution.
2025-04-19 3:15 PM
Thank you, I figured out what the error was. In the arrays for PWM, the first value was a zero, after removing the first zero, everything worked. Thank you.
2025-04-19 2:50 PM
Configure 3 timers as slaves, clocked by one Master timer. Than launch Master after all 3 initiated and waiting.
2025-04-19 3:15 PM
Thank you, I figured out what the error was. In the arrays for PWM, the first value was a zero, after removing the first zero, everything worked. Thank you.