Skip to main content
kadir ustun1
Associate III
March 21, 2019
Solved

How to test TIM1_CH3 for output of PWM ?

  • March 21, 2019
  • 4 replies
  • 1080 views

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.
Best answer by kadir ustun1

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
March 21, 2019

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

JW

kadir ustun1
Associate III
March 21, 2019

Actually, I checked, but there are not any diffirence

ST Technical Moderator
March 21, 2019

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
March 22, 2019

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.