cancel
Showing results for 
Search instead for 
Did you mean: 

When PWM duty changes?

hjuns
Associate III

Hello,

I control BLDC motor.

Control the speed of the motor by changing the TIM->CCR.

I have a question while setting the time to change the value of CCR.

If I change the value of CCR while I'm sending out PWM, will the Duty ratio change in the next cycle?

​Thanks.

1 REPLY 1

That depends on whether you have CCRx preload set or not. Read the TIM chapter in RM.

JW​