Timer synchronization
Hello Everyone
i am using stm32G031J6 Microcontroller. I want to generate a PWM signal from Timer 1 working as slave in gated mode, that has a pulse width = 10us and pulse period = 44us In this microcontroller i am using Timer 3 as a Master which has a PWM signal that has a Burst width = 7ms and Burst Period = 16.67 ms. Currently i am getting PWM signal on my Timer 1 and timer 3, but the problem is that They are Not SYNCHRONISED, can anyone help me please
This is my configuration for Timer 3 as Master in Cube MX , slave mode - Disable, Trigger source - Internal clock, Channel3 - PWM Generation No output, Parameter settings: Prescaler - 64-1, Counter Period - 16676-1, PWM Generation channel 3 - PWM mode 2 and Pulse : 7000-1
This is my configuration for Timer 1 as a slave in gated mode, channel - PWM Generation CH1, Trigger Source:ITR2
Parameter settings : Prescaler : 64-1, Counter Period: 44-1, Pulse : 10
Can anyone please help how i can synchronise these two timers
