cancel
Showing results for 
Search instead for 
Did you mean: 

PWM Pin Level

Glee.11
Associate II

Hi All,

I'm using stm32f1 series. & truestudio.

I want to set the PWM pin "High" when pwm does't starting pwm.

But when i initialize the pwm, pwm pin is "Low".

How can i set the pwm pin "high" when initializing.

4 REPLIES 4

Use the "Forced Active" mode in TIMx_CCMR, then change it to PWM.

Read the description of TIMx_CCMR in TIM chapter in RM.

JW

Thank you for reply.

I understand how to use the "Forced Active" mode.

Before using it, is it possible to use "Forced Active"mode with HAL ??

In CubeMX, i could't find that mode anywhere.

regard.

Oh, i found it​

I read RM about "Forced Active" mode.

But still, i'm confusing how "Forced Active" can work that i want.

Is there any example for it??

regard. ​