cancel
Showing results for 
Search instead for 
Did you mean: 

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!

NSmir.1
Associate
 
1 ACCEPTED SOLUTION

Accepted Solutions
Houssem CHAABANI
Senior II

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

View solution in original post

1 REPLY 1
Houssem CHAABANI
Senior II

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