cancel
Showing results for 
Search instead for 
Did you mean: 

Need help in generating PWM signal from STM32F4 - 07ZGT6

musthafafarhan
Associate II
Posted on December 30, 2015 at 06:26

Hi, 

I am working on STM32F4 version of microcontroller. Can someone guide me the way to generate PWM signal. I may want to use atlease 2 PWM out signal and 1 PWM in signal. 

The purpose of generating PWM signal is to control the DC MOTOR SPEED. 

I have searched few method which are not suffucient for me to understand clearly. I am still in confusion where to start to generate PWM signal from STM32F4xxx

Please suggest me any resource which will provide step by step tutorial. 

Thanks,

Farhan

#stm32f4 #pwm #output #c-programming
4 REPLIES 4
Nesrine M_O
Lead II
Posted on December 30, 2015 at 09:59

Hi Farhan,

I recommend you to have a look to the TIM examples under the STM32F4 cube firmware some of them show how to configure the TIM peripheral to generate PWM signals:

STM32Cube_FW_F4_V1.10.0\Projects\STM324x9I_EVAL\Examples\TIM

-Syrine-

musthafafarhan
Associate II
Posted on January 04, 2016 at 09:50

can you please send the right link ? I CANT OPEN IT

Nesrine M_O
Lead II
Posted on January 04, 2016 at 10:57

Hi Farhan,

The STM32 cube F4 firmware package is available for download under this

http://www.st.com/web/catalog/tools/FM147/CL1794/SC961/SS1743/LN1897/PF259243?s_searchtype=partnumber

-Syrine-

Jessy J
Associate II
Posted on June 07, 2018 at 09:51

Hello Nesrine

In the file you recommanded in TIM folder there is PWMInput and PWMOuput.. which one shall I use when I want to generate pwm for LEDs pleaase ?? 

Thank you in advance for your help