When PWM duty changes?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-10-26 6:23 PM
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.
Labels:
- Labels:
-
STM32 Motor Control
-
TIM
This discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-10-26 7:50 PM
That depends on whether you have CCRx preload set or not. Read the TIM chapter in RM.
JW
