Motor Control/BLDC 모터 제어
Timer1 for motor control (20kHz)
날아라용팔이
2025. 12. 2. 06:54
반응형
Timer1_Center Aligned mode1 (up counting)
In Mode 1, the timer counter starts from zero and increments until it reaches the auto-reload value (ARR). When the counter matches the compare value (CCR), the output state is toggled.
Fclk = 170MHz
Fpwm = 20kHz
ARR+1 = 4250
Generate a 20kHz switching frequency using TIM1 center-aligned mode. For center-aligned mode, the actual PWM frequency is



※ 참고자료
Parameter setting:
https://www.youtube.com/watch?v=VfbW6nfG4kw&t=364s
https://deepbluembedded.com/stm32-3-phase-pwm-center-aligned-example-code/
https://www.youtube.com/watch?v=VfbW6nfG4kw&t=364s
반응형