cancel
Showing results for 
Search instead for 
Did you mean: 

Synchronous start of three timers

Aflik
Associate II

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.

1 ACCEPTED SOLUTION

Accepted Solutions

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.

View solution in original post

2 REPLIES 2
MasterT
Lead

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

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.