AnsweredAssumed Answered

PWM generation in STM32F4 Discovery board

Question asked by perera.duminda on Mar 27, 2014
Latest reply on Mar 28, 2014 by perera.duminda
Hello everybody.

I am trying to generate a 5 PWM signals and all should look like the one below when the duty cycle is set to 50%.
4 of the signals should be generated on TIM 5 (CH1, CH2, CH3, CH4) on pins A0, A1, A2 and A3. The other one should be generated on TIM 9 (CH1) on pin E5
I am having trouble with properly understanding how to set the prescalar and period to get this pwm signal.

unnamed.jpg

Can I please get a sample code to generate the signals I need or some direction on how to configure the timers TIM5 and TIM9

Outcomes