EasyManua.ls Logo

GigaDevice Semiconductor GD32E507Z-EVAL - Usart_Hyperterminal_Interrupt; DEMO Purpose; DEMO Running Result; Usart_Dma

Default Icon
44 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
User Guide
GD32E507Z-EVAL
18/43
5.5. USART_HyperTerminal_Interrupt
5.5.1. DEMO purpose
This demo includes the following functions of GD32 MCU:
Learn to use the USART transmit and receive interrupts to communicate with the
HyperTerminal.
5.5.2. DEMO running result
Download the program <05_USART_HyperTerminal_Interrupt> to the EVAL board, connect
serial cable to USART0 and jump JP13 to USART. Firstly, all the LEDs are turned on and off
for test. Then, the USART0 sends the tx_buffer array (from 0x00 to 0xFF) 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, LED2, LED3, LED4 flash by turns. Otherwise, LED1, LED2, LED3, LED4 toggle
together.
The output information via the HyperTerminal is as following:
5.6. USART_DMA
5.6.1. DEMO purpose
This demo includes the following functions of GD32 MCU:
Learn to use the USART transmit and receive data using DMA.
5.6.2. DEMO running result
Download the program <06_USART_DMA> to the EVAL board, connect serial cable to
USART0. Firstly, all the LEDs are turned on and off for test. Then, the USART0 sends the
tx_buffer array to the hyperterminal and waits for receiving data from the hyperterminal that

Table of Contents

Related product manuals