![GigaDevice Semiconductor GD32E230C-START Скачать руководство пользователя страница 9](http://html.mh-extra.com/html/gigadevice-semiconductor/gd32e230c-start/gd32e230c-start_user-manual_2225795009.webp)
User Guide
GD32E230C-START
8
/
11
LEDs are flashed once for test and LED1 is on, press down the Wakeup Key, LED1 will
be turned off. Press down the Wakeup Key again, LED1 will be turned on.
5.3
EXTI_KeyBoard_Interrupt_mode
5.3.1
DEMO Purpose
This demo includes the following functions of GD32 MCU:
Learn to use GPIO control the LED and the KEY
Learn to use EXTI to generate external interrupt
GD32E230C-START board has two keys and four LEDs. The two keys are Reset key
and Wakeup key. The LED1, LED2, LED3 and LED4 are controlled by GPIO.
This demo will show how to use the EXTI interrupt line to control the LED1.When press
down the Wakeup 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_EXTI_KeyBoard_Interrupt_mode > to the EVAL board, all
the LEDs are flashed once for test and LED1 is on, press down the Wakeup Key, LED1
will be turned off. Press down the Wakeup Key again, LED1 will be turned on.
5.4
TIMER_KeyBoard_EXTI
5.4.1
DEMO Purpose
This demo includes the following functions of GD32 MCU:
Learn to use GPIO control the LED and the KEY
Learn to use EXTI to generate external interrupt
Learn to use TIMER to generate PWM
GD32E230C-START board has two keys and four LEDs. The two keys are Reset key
and Wakeup key. The LED1, LED2, LED3 and LED4 are controlled by GPIO.
This demo will show how to use the TIMER PWM to trigger EXTI interrupt to toggle the
state of LED2 and EXTI interrupt line to control the LED1. When press down the Wakeup
Key, it will produce an interrupt. In the interrupt service function, the demo will toggle
LED1.