EasyManua.ls Logo

GigaDevice Semiconductor GD32E230C-EVAL - Gpio_Keyboard_Interrupt_Mode; DEMO Purpose; DEMO Running Result; Usart_Printf

Default Icon
25 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
GD32E230C-EVAL
14 /24
5.3. GPIO_KeyBoard_Interrupt_mode
5.3.1. DEMO Purpose
This Demo includes the following functions of GD32 MCU:
Learn to use GPIO to control the LED and the KEY
Learn to use EXTI to generate external interrupt
GD32E230C-EVAL board has three keys and four LEDs. The three keys are Reset key,
Wakeup key and Tamper key. The LED1, LED2, LED3 and LED4 are controlled by
GPIO.
This demo will show how to use EXTI interrupt line to control the LED2. When press
down the Tamper Key, it will produce an interrupt. In the interrupt service function, the
demo will toggle LED2.
5.3.2. DEMO Running Result
Download the program <03_GPIO_KeyBoard_Interrupt_mode> to the EVAL board,
when press down the Tamper Key, LED2 will be turned on. Press down the Tamper Key
again, LED2 will be turned off.
5.4. USART_Printf
5.4.1. DEMO Purpose
This Demo includes the following functions of GD32 MCU:
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 and run. serial port will
output usart printf test example!.
The information via a serial port output as following.

Table of Contents