Question
PWM generation in STM32F4 Discovery board
Posted on March 27, 2014 at 17:49
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 #pwmoutput #stm32f4 #timer
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 E5I am having trouble with properly understanding how to set the prescalar and period to get this pwm signal.
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 #pwmoutput #stm32f4 #timer