User Manual
GD32350R-EVAL
20 /33
5.6.
USART_DMA
5.6.1.
DEMO Purpose
This Demo includes the following functions of GD32 MCU:
Learn to use the
COM
transmit and receive using DMA
5.6.2.
DEMO Running Result
Jump JP13 to USART, then download the program < 06_USART_DMA > to the EVAL
board and run. Firstly, all the LEDs are turned on and off for test.
Then, the
COM
sends
the tx_buffer array to the hyperterminal and waits for receiving data from the
hyperterminal that you must send. The string that you have sent is stored in the
rx_buffer array. The receive buffer have a BUFFER_SIZE bytes as maximum. After that,
compare tx_buffer with rx_buffer. If tx_buffer is same with rx_buffer, LED1 and LED2
are turned on, LED3 and LED4 are turned off. Otherwise, LED1 and LED2 are turned off,
LED3 and LED4 are turned on.
The information via a serial port output as following:
5.7.
RS485_Test
5.7.1.
DEMO Purpose
This Demo includes the following functions of GD32 MCU:
Learn to use the USART RS485