2019-03-20 11:34 PM
Hello everyone, I configured TIM1 for pwm. I will use CH3 and CH4. CH4 works well, but CH3 does not work. Sometimes when I load program first time CH3 works, But When I turn off the power and then turn on power CH3 does not work. Is there anyone who has any information about this topic ?
Thank you.
Solved! Go to Solution.
2019-03-22 02:17 AM
Hello Imen,
Thank you for your answered. I solved this problem. Actually this problem is because of sequence of peripheral configuration. Firstly I should configure PWM, then configure other GPIO Pins.
2019-03-21 01:57 AM
Read out and check the TIM1 registers' content, compare them between "working" and "not working" states.
JW
2019-03-21 06:45 AM
Actually, I checked, but there are not any diffirence
2019-03-21 09:30 AM
Hello Kadir,
What is your hardware used?
You can check the pins assignment in the relevant Datasheet that associate TIM1_CH3 functionality.
Do you have use the function ''HAL_TIM_PWM_Start'' in your main to start the PWM output ?
Regards,
Imen
2019-03-22 02:17 AM
Hello Imen,
Thank you for your answered. I solved this problem. Actually this problem is because of sequence of peripheral configuration. Firstly I should configure PWM, then configure other GPIO Pins.