6.36. Use DMA to receive and send UART data¶
6.36.1. Overview¶
In this example project, UART receives/sends data via DMA.
6.36.2. Port Settings¶
Serial port baud rate is set to
115200bps
, withone stop bit
andno parity bit
6.36.3. Note¶
The input string length should not exceed TEST_BUFF_SIZE defined in the program every time
6.36.4. Running the example¶
When the project runs correctly, the serial port terminal will output the following information:
UART DMA example
UART will send back received characters, echo every 16 bytes
Manually input the char through the serial port, such as ‘1234567887654321’, and the serial port terminal will receive the following information:
1234567887654321