Skip to main content
NSmir.1
Visitor II
April 17, 2020
Solved

Hello, everyone!!! Unfortunately, I can't configure the center-aligned PWM mode. Someone can show you in detail how to do this in CubeMX. Thank you very much!

  • April 17, 2020
  • 1 reply
  • 784 views

..

This topic has been closed for replies.
Best answer by Houssem CHAABANI

Dear @NSmir.1​ 

You need to activate a timer under timers and configure channel1 as a PWM generation channel.

In the timer configuration you should select the Counter mode to Center aligned mode 1.

Then you can go back to the GPIO configuration and choose the mode to TIM1_CH1.

Hope that this help you,

Kind regards,

Houssem

1 reply

Houssem CHAABANI
Houssem CHAABANIBest answer
Visitor II
November 17, 2020

Dear @NSmir.1​ 

You need to activate a timer under timers and configure channel1 as a PWM generation channel.

In the timer configuration you should select the Counter mode to Center aligned mode 1.

Then you can go back to the GPIO configuration and choose the mode to TIM1_CH1.

Hope that this help you,

Kind regards,

Houssem