User Manual
GD32450I-EVAL
19
/
51
This demo will show how to use the EXTI interrupt line to control the LED1.When press
down the Tamper Key, it will produce an interrupt. In the interrupt service function, the
demo will toggle LED1.
5.3.2
DEMO Running Result
Download the program <03_GPIO_KeyBoard_Interrupt_mode> to the EVAL board,
Press down the Tamper Key, LED1 will be turned on. Press down the Tamper Key again,
LED1 will be turned off.
5.4
USART_Printf
5.4.1
DEMO Purpose
This demo includes the following functions of GD32 MCU:
Learn to use GPIO control the LED
Learn to retarget the C library printf function to the USART
5.4.2
DEMO Running Result
Download the program < 04_USART_Printf > to the EVAL board, jump the JP5 to
USART with the jumper cap and connect serial cable to EVAL_COM1. This
implementation outputs
“USART printf example: please press the Tamper key” on the
HyperTerminal using EVAL_COM1. Press the Tamper key, serial port wil
l output “USART
printf example
”.
The output information via the serial port is as following.
5.5
USART_Echo_Interrupt_mode
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
serial terminal tool