![GigaDevice Semiconductor GD32E503C-START User Manual Download Page 12](http://html.mh-extra.com/html/gigadevice-semiconductor/gd32e503c-start/gd32e503c-start_user-manual_2225817012.webp)
User Guide
GD32E503C-START
11/14
5.5.
TIMER_Key_EXTI
5.5.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
GD32E503C-START-V1.0 board has 2 keys and 1 LED. The keys are Wakeup Key and Reset
Key. The LED is controlled by GPIO.
This demo will show how to use the TIMER PWM to trigger EXTI interrupt to toggle the state
of LED1 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.
5.5.2.
DEMO running result
Download the program < 05_TIMER_Key_EXTI > to the START board, the LED1 is flashed
once for test, press down the Wakeup Key, LED1 will be turned on. Press down the Wakeup
Key again, LED1 will be turned off. Connect PA6 (TIMER2_CH0) and PA4 with DuPont line.
The LED1 will be toggled every 500ms.
5.6.
USBD_CDC_ACM
5.6.1.
DEMO purpose
This demo includes the following functions of GD32 MCU:
Learn how to use the USBD peripheral
Learn how to implement USB CDC device
GD32E503C-START-V1.0 board has one USBD interface. In this demo, the GD32E503C-
START-V1.0 board is enumerated as an USB virtual COM port, which was shown in device