AnsweredAssumed Answered

Timer PWM and Counter question

Question asked by gaiman.barry on Dec 31, 2014
Latest reply on Dec 31, 2014 by Clive One
I am using an STM32F407

I want to generate exactly 400 pulses on PE5 or PE6 with a 50% duty cycle.
I believe PE5 can be connected to TIM9 CH1, and PE6 can be connected to TIM9 CH2

I have the PWM code running and I have located the TIM Base/ counter example.

Do I need to use an interrupt or can I just load a counter with 400 and let it count down to zero and stop?

Can I do this with one timer or do I need two timers?

If I need two timers how do I synchronize them so I can get exactly 400 pulses?

Thanks and Happy New Year.