Question
How do I generate 'N' PWM pulses on TIM2 CH4.
I have inherited a PCBA that needs to generate a fixed number of PWM pulses on TIM2 CH4.
I have successfully setup TIM1 as the Master (with repetition count = 0) and TIM4 as a Gated Slave.
TIM1 CH1 is generating 2kHz PWM indefinitely.
TIM2 CH4 is generating 1kHz PWM indefinitely.
If repetition count is non zero, the TIM2 CH4 PWM freq decreases.
Can I configure TIM1 such that it stops after '2N' cycles and therefore TIM2 stops after 'N' cycles?
