EasyManua.ls Logo

GigaDevice Semiconductor GD32E507Z-EVAL - Routine Use Guide; Gpio_Running_Led; DEMO Purpose; DEMO Running Result

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
16/43
5. Routine use guide
5.1. GPIO_Running_LED
5.1.1. DEMO purpose
This demo includes the following functions of GD32 MCU:
Learn to use GPIO control the LED
Learn to use SysTick to generate 1ms delay
GD32E507Z-EVAL-V1.0 board has five user keys and four LEDs. The keys are KEY_A,
KEY_B, KEY_C, KEY_D and KEY_Cet. The LEDs are controlled by GPIO.
This demo will show how to light the LEDs.
5.1.2. DEMO running result
Download the program < 01_GPIO_Running_LED > to the EVAL board, four LEDs can light
cycles.
5.2. GPIO_Key_Polling_mode
5.2.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 SysTick to generate 1ms delay
GD32E507Z-EVAL-V1.0 board has five user keys and four LEDs. The keys are KEY_A,
KEY_B, KEY_C, KEY_D, and KEY_Cet. The LEDs are controlled by GPIO.
This demo will show how to use the KEY_A to control the LED2. When press down the KEY_A,
it will check the input value of the IO port. If the value is 0 and will wait for 100ms. Check the
input value of the IO port again. If the value still is 0, it indicates that the button is pressed
successfully and toggle LED2.
5.2.2. DEMO running result
Download the program < 02_GPIO_Key_Polling_mode > to the EVAL board, press down the
KEY_A, LED2 will be turned on. Press down the KEY_A again, LED2 will be turned off.

Table of Contents

Related product manuals