-
Uart DMAMotor Control/BLDC 모터 제어 2025. 12. 2. 03:21반응형
Setup the RCC and timer value.


Usart with DMA will be used to reduce the CPU loads.
Pros
- Using DMA with UART2 allows long data transmissions to run in the background without blocking the CPU.
- UART DMA provides stable and reliable streaming, which is ideal for continuous debug logs and telemetry.
- Because UART has no strict timing requirements, DMA works smoothly and consistently without communication errors.
- DMA greatly reduces CPU load by eliminating the need for an interrupt on every transmitted byte.
Cons
- Receiving data with UART DMA is more complicated because it requires idle-line detection or a circular buffer to determine message boundaries.
- UART does not inherently define packet start and end, so additional logic is needed to parse structured messages.
- For very small or short messages, DMA may add unnecessary complexity compared to simple interrupt-based transmission.
Usart setup




※ 참고자료:
반응형'Motor Control > BLDC 모터 제어' 카테고리의 다른 글
Timer1 for motor control (20kHz) (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