Skip to main content
kadir ustun1
Associate III
Mar 21, 2019 6:34 AM UTC
Solved

How to test TIM1_CH3 for output of PWM ?

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.

This topic has been closed for replies.
kadir ustun1
kadir ustun1Best answer
Associate III
Mar 22, 2019 9:17 AM UTC

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.

4 replies

waclawek.jan
Super User
Mar 21, 2019 8:57 AM UTC

Read out and check the TIM1 registers' content, compare them between "working" and "not working" states.

JW

kadir ustun1
Associate III
Mar 21, 2019 1:45 PM UTC

Actually, I checked, but there are not any diffirence

ST Technical Moderator
Mar 21, 2019 4:30 PM UTC

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

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
kadir ustun1
kadir ustun1AuthorBest answer
Associate III
Mar 22, 2019 9:17 AM UTC

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.