Skip to main content
NSmir.1
Visitor II
Apr 17, 2020 10:26 AM UTC
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!

..

This topic has been closed for replies.
Houssem CHAABANI
Houssem CHAABANIBest answer
Visitor II
Nov 17, 2020 10:15 AM UTC

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
Nov 17, 2020 10:15 AM UTC

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