2021-07-25 09:52 PM
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.
2021-07-25 11:41 PM
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
2021-07-26 12:42 AM
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.
2021-07-26 12:47 AM
Oh, i found it
2021-07-27 07:36 PM
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.