-
Timer1 for motor control (20kHz)Motor Control/BLDC 모터 제어 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
반응형'Motor Control > BLDC 모터 제어' 카테고리의 다른 글
Uart DMA (0) 2025.12.02 Hardware setup for BLDC FOC control with AS5600 (0) 2025.12.02 위치 센서 (AS5600) (0) 2025.12.01 V/F Control (0) 2023.04.08