If DMA processing is used, DMA needs to be configured If the interrupt is used, it needs to match the NVIC interrupt priority
There are 4 USART s and 4 UART S in STM32F427/STM32F429, as shown in the table below Serial number SPI IIC is synchronous communication, UART is asynchronous communication, usart is synchronous & asynchronous communication. Synchronization (blocking mode) is a communication mode in which the sender sends data and the receiver sends a response before sending the next packet.Īsynchronous (non blocking mode) refers to the communication mode in which the sender sends data, does not wait for the receiver to send back the response, and then sends the next data packet. This synchronous communication function can use USART as SPI, such as using USART to drive SPI devices. When it comes to asynchronous communication, there is no difference between the two. USART: universal synchronous asynchronous transceiver UART: universal asynchronous transceiver. The difference between USART and UART lies in whether it has the function of synchronous communication.
Most of this paper is translated from ST's official user manual Description of STM32F4 HAL and LL drivers Introduction to UART related API of STM32F4 HAL Library