Skip to main content
Associate
April 19, 2025
Solved

Synchronous start of three timers

  • April 19, 2025
  • 2 replies
  • 410 views

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.

This topic has been closed for replies.
Best answer by Aflik

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.

2 replies

MasterT
Lead II
April 19, 2025

Configure 3 timers as slaves, clocked by one Master timer. Than launch Master after all 3 initiated and waiting.

AflikAuthorBest answer
Associate
April 19, 2025

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.