STM32-UART-Receive-Transmit-Rx-Tx-Examples-Polling-Interrupt-DMA

STM32 UART Interrupt, DMA, Polling | UART Receive Examples

In this tutorial, I’ll briefly list down the different ways to receive UART data in STM32 microcontrollers. Starting with the least efficient way which is polling for the UART peripheral received data, then we’ll see the interrupt-driven reception method which involves the CPU intervention but it’s non-blocking anyway. And lastly, and most importantly, the DMA UART receive method which doesn’t require any CPU intervention at all and can be considered the most efficient way to achieve this task.