GigaDevice Semiconductor GD32E503C-START User manual

GigaDevice Semiconductor Inc.
GD32E503C-START
User Guide
V1.0

User Guide
GD32E503C-START
1/14
Tables of Contents
TABLES OF CONTENTS ................................................................................................1
LIST OF FIGURES ..........................................................................................................2
LIST OF TABLES ............................................................................................................3
1. SUMMARY ................................................................................................................4
2. FUNCTION PIN ASSIGN...........................................................................................4
3. GETTING STARTED .................................................................................................4
4. HARDWARE LAYOUT OVERVIEW..........................................................................5
4.1. Power supply............................................................................................................... 5
4.2. Boot option .................................................................................................................. 5
4.3. LED............................................................................................................................... 5
4.4. KEY............................................................................................................................... 5
4.5. USART.......................................................................................................................... 6
4.6. USB............................................................................................................................... 6
4.7. GD-Link ........................................................................................................................ 6
4.8. Arduino......................................................................................................................... 7
4.9. MCU.............................................................................................................................. 8
5. ROUTINE USE GUIDE..............................................................................................9
5.1. GPIO_Running_LED.................................................................................................... 9
5.1.1. DEMO purpose....................................................................................................................... 9
5.1.2. DEMO running result .............................................................................................................. 9
5.2. GPIO_Key_Polling_mode............................................................................................ 9
5.2.1. DEMO purpose....................................................................................................................... 9
5.2.2. DEMO running result .............................................................................................................. 9
5.3. EXTI_Key_Interrupt_mode........................................................................................ 10
5.3.1. DEMO purpose..................................................................................................................... 10
5.3.2. DEMO running result ............................................................................................................ 10
5.4. USART_HyperTerminal_Interrupt............................................................................. 10
5.4.1. DEMO purpose..................................................................................................................... 10
5.4.2. DEMO running result ............................................................................................................ 10
5.5. TIMER_Key_EXTI....................................................................................................... 11
5.5.1. DEMO purpose......................................................................................................................11
5.5.2. DEMO running result .............................................................................................................11
5.6. USBD_CDC_ACM ...................................................................................................... 11
5.6.1. DEMO purpose......................................................................................................................11
5.6.2. DEMO running result ............................................................................................................ 12
6. REVISION HISTORY...............................................................................................13

User Guide
GD32E503C-START
2/14
List of Figures
Figure 4-1. Schematic diagram of power supply...................................................................................... 5
Figure 4-2. Schematic diagram of boot option......................................................................................... 5
Figure 4-3. Schematic diagram of LED function ...................................................................................... 5
Figure 4-4. Schematic diagram of Key function....................................................................................... 5
Figure 4-5. Schematic diagram of USART ................................................................................................ 6
Figure 4-6. Schematic diagram of USB ..................................................................................................... 6
Figure 4-8. Schematic diagram of GD-Link............................................................................................... 6
Figure 4-9. Schematic diagram of Arduino............................................................................................... 7
Figure 4-10. Schematic diagram of MCU................................................................................................... 8

User Guide
GD32E503C-START
3/14
List of Tables
Table 2-1. Function pin assignment........................................................................................................... 4
Table 6-1. Revision history ....................................................................................................................... 13

User Guide
GD32E503C-START
4/14
1. Summary
GD32E503C-START uses GD32E503CET6 as the main controller. It uses GD-Link Mini USB
interface to supply 5V power. Reset, Boot, K2-Wakeup Key, LED, USB and USART to USB
interface are also included. For more details please refer to GD32E503C-START-Rev1.0
schematic.
2. Function Pin Assign
Table 2-1. Function pin assignment
Function
Pin
Description
LED
PA7
LED1
RESET
K1-Reset
KEY
PA0
Wakeup Key
USART
PA9
USART0_TX
PA10
USART0_RX
USB
PA11
USB_DM
PA12
USB_DP
PA8
USB Pull-up Control
3. Getting started
The START board uses GD-Link Mini USB connecter to get power DC +5V, which is the
hardware system normal work voltage. AGD-Link on board is necessary in order to download
and debug programs. Select the correct boot mode and then power on, the LEDPWR will turn
on, which indicates the power supply is OK.
There are Keil version and IAR version of all projects. Keil version of the projects are created
based on Keil MDK-ARM 5.26 uVision5. IAR version of the projects are created based on IAR
Embedded Workbench for ARM 8.32.1. During use, the following points should be noted:
1. If you use Keil uVision5 to open the project. In order to solve the "Device Missing (s)"
problem, you can install GigaDevice.GD32E50x_DFP.1.3.0.pack.
2. If you use IAR to open the project, install IAR_GD32F50x_ADDON_1.3.0.exe to load the
associated files.

User Guide
GD32E503C-START
5/14
4. Hardware layout overview
4.1. Power supply
Figure 4-1. Schematic diagram of power supply
G
1
Vout 2
Vin
34
U4 AMS1117-3.3
E5
16V/10uF,AVX
E6
16V/10uF,AVX
GND
+3V3 LEDPWR
LED0603
R32
470Ω
P1
SMD1210P050TF
+5V
+U5V
4.2. Boot option
Figure 4-2. Schematic diagram of boot option
R18
10KΩ
1
2
3
JP4
BOOT0
GND BOOT0
+3V3
R1
10KΩ
1
2
3
JP1
BOOT1
GND PB2
+3V3
4.3. LED
Figure 4-3. Schematic diagram of LED function
PA7LED1
LED0603
LED
R25
470ΩGND
4.4. KEY
Figure 4-4. Schematic diagram of Key function
PA0
R29
10KΩ
+3V3
GND
KEY K2
K-1102B
C2
50V/0.01uF

User Guide
GD32E503C-START
6/14
4.5. USART
Figure 4-5. Schematic diagram of USART
UD+
1
UD-
2
GND
3
RTS#
4
CTS#
5TNOW 6
VCC 7
TXD 8
RXD 9
V3 10
U1
CH340E
D+
D-
+3V3
+3V3
USART_TX
USART_RX
C3
50V/0.01uF
C4
50V/0.1uF
D+
D-
C5
50V/4700pF
R2
1MΩ
USART To USB
VCC 1
D- 2
D+ 3
ID 4
GND 5
SHELL 6
CN1
Mini_USB
PA9-Tx
PA10-Rx
4.6. USB
Figure 4-6. Schematic diagram of USB
GND
R3
1.5KΩ
R27 22Ω
R28 22Ω
PA8
PA11
PA12
R62
1MΩ
C49
50V/4700pF
USB_DM
USB_DP
VBUS
1
DM
2
DP
3
ID
4
GND
5
Shield
6
USB_MiniAB receptacle
CN2
Mini_USB
4.7. GD-Link
Figure 4-7. Schematic diagram of GD-Link

User Guide
GD32E503C-START
7/14
L_USB_Ctr
C100
50V/20pF
C102
50V/20pF
Y101
HC-49SMD-8MHz
GND L_NRST
+3V3
GND
R102
10KΩ
C103
50V/0.1uF
R104
10KΩ
GND
C105
50V/0.1uF
C106
50V/0.1uF
C107
50V/0.1uF
C108
50V/0.1uF
R101
1MΩ
L_OSC_IN
L_OSC_OUT
L_OSC_IN
L_OSC_OUT L_NRST
GND
+3V3
GND
1
2
3
4
JP100
4×1P2.54
+3V3
GND
MCU SWD
Reset
L_TMS/IO
L_TDI
L_TDO/SWO
L_TCK/CLK
L_USB_DP
L_SWDIO
L_SWDCK
L_SWDIO
L_SWDCK
+3V3
L_USB_DM
BOOT0
44
NRST
7
OSC_IN/PD0
5
OSC_OUT/PD1
6
PA0-WKUP
10
PA1
11
PA2
12
PA3
13
PA4
14
PA5
15
PA6
16
PA7
17
PA8
29
PA9
30
PA10
31
PA11
32
PA12
33
PA13/JTMS/SWDIO
34
PA14/JTCK/SWCLK
37
PA15/JTDI
38
PB018
PB119
PB2/BOOT1 20
PB3/JTDO 39
PB4/JNTRST 40
PB541
PB642
PB743
PB845
PB946
PB10 21
PB11 22
PB12 25
PB13 26
PB14 27
PB15 28
PC13-TAMPER-RTC 2
PC14-OSC32_IN 3
PC15-OSC32_OUT 4
VBAT
1
VDD_1
24
VDD_2
36
VDD_3
48
VDDA
9
VSS_1 23
VSS_2 35
VSS_3 47
VSSA 8
U0
GD32F103C8T6
L_TReset
L_LED1
L_LED2
L_LED1 LED0603
L_LED2 LED0603
R109 470Ω
R110 470ΩGND
GND
R105 22R
R106 22R
R108
1MΩC104
50V/4700pF
L_USB_DM
L_USB_DP
GND
R107 1.5KΩL_USB_Ctr
VCC 1
D- 2
D+ 3
ID 4
GND 5
SHELL 6
CN100
Mini_USB
+U5V
4.8. Arduino
Figure 4-8. Schematic diagram of Arduino
Ardunio
1
2
3
4
5
6
JP7
HEADER 6
1
2
3
4
5
6
7
8
JP6
HEADER 8
1
2
3
4
5
6
7
8
JP9
HEADER 8
1
2
3
4
5
6
7
8
9
10
JP8
HEADER 10
+5V
+5V
+3V3
+3V3
NRST
A6
A1
A2
A3
A4
A5 D0-Rx
D1-Tx
D2
D4
D3~
D5~
D6~
D7
D8
D9~
D10~
D13
D12
D11~
D14-SDA1
D15-SCL1
VDDA
PA9-Tx
PA10-Rx
PB10
PB11
PA1
PA2
PA3
PA4
PA5
PA6
PB13
PB14
PB15
PB12
PB0
PB1
PB8
PB4
PB5
PB6
PB7
PB9

User Guide
GD32E503C-START
8/14
4.9. MCU
Figure 4-9. Schematic diagram of MCU
C15
50V/20pF
C16
50V/20pF
Y2
HC-49SMD-8MHz
R19
1MΩ
GND
OSC_IN
OSC_OUT
OSC_OUT
OSC_IN
NRST
K1
K-1102B
+3V3
GND
R20
10KΩ
C12
50V/0.1uF
NRST
BOOT0
+3V3
C10
50V/0.1uF
C11
50V/0.1uF
GND
+3V3 GND
VDDA
PB11
PB10
PA3
PB8
PB9
PC13
PC14
PC15
PB15
PB14
PB13
PB12
JTMS
JTCK
NRST
L_TMS/IO
L_TCK/CLK
L_TReset
GDLinkJTAG
GND C14
50V/10pF
C13
50V/10pF Y1
32.768KHz
PC14
PC15
PA0
PA1
PA2
PA7
PA6
PA5
PA4
PA13
PA12
PA11
PA10-Rx
PA8
PA14
PA15
PB2
PB1
PB0
PB6
PB7
PB3
PB4
PB5
GND
VDDA
C23
50V/0.1uF
+3V3 L1
0603-22R
GND
JTMS
JTCK
C1
50V/0.1uF
L_TDI
L_TDO/SWO
JTDI
JTDI
JTDO
JTDO
BOOT0
44
NRST
7
OSC_IN/PD0
5
OSC_OUT/PD1
6
PA0-WKUP
10
PA1
11
PA2
12
PA3
13
PA4
14
PA5
15
PA6
16
PA7
17
PA8
29
PA9
30
PA10
31
PA11
32
PA12
33
PA13/JTMS/SWDIO
34
PA14/JTCK/SWCLK
37
PA15/JTDI
38
PB018
PB119
PB2/BOOT1 20
PB3/JTDO 39
PB4/JNTRST 40
PB541
PB642
PB743
PB845
PB946
PB10 21
PB11 22
PB12 25
PB13 26
PB14 27
PB15 28
PC13-TAMPER-RTC 2
PC14-OSC32_IN 3
PC15-OSC32_OUT 4
VBAT
1
VDD_1
24
VDD_2
36
VDD_3
48
VDDA
9
VSS_1 23
VSS_2 35
VSS_3 47
VSSA 8
U3
GD32E503CET6
PA9-Tx
1
2
3
4
JP2
4×1P2.54
+3V3
GND
SWD

User Guide
GD32E503C-START
9/14
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
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 light the LED.
5.1.2. DEMO running result
Download the program < 01_GPIO_Running_LED > to the START board, LED 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
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 Wakeup Key to control the LED1. When press down the
Wakeup Key, it will check the input value of the IO port. If the value is 1 and will wait for 100ms.
Check the input value of the IO port again. If the value still is 1, it indicates that the button is
pressed successfully and toggle LED1.
5.2.2. DEMO running result
Download the program < 02_GPIO_Key_Polling_mode > to the START board, press down
the Wakeup Key, LED1 will be turned on. Press down the Wakeup Key again, LED1 will be
turned off.

User Guide
GD32E503C-START
10/14
5.3. EXTI_Key_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
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 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_Key_Interrupt_mode > to the START board, LED1 is
turned on and off for test. When press down the Wakeup Key, LED1 will be turned on. Press
down the Wakeup Key again, LED1 will be turned off.
5.4. USART_HyperTerminal_Interrupt
5.4.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
HyperTerminal.
5.4.2. DEMO running result
Download the program <04_USART_HyperTerminal_Interrupt> to the START board, connect
serial cable to USART. Firstly, the LED1 flash 2 times for test. Then, the USART sends the
tx_buffer array (from 0x00 to 0xFF) to the hyperterminal and waits for receiving data from the
hyperterminal that you must send. The string that you have sent is stored in the rx_buffer
array. The receive buffer have a BUFFER_SIZE bytes as maximum. After that, compare
tx_buffer with rx_buffer. If tx_buffer is same with rx_buffer, LED1 flash. Otherwise, LED1 turn
on.
The output information via the HyperTerminal is as following:

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 areWakeup 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

User Guide
GD32E503C-START
12/14
manager of PC as below. This demo makes the USB device look like a serial port, and loops
back the contents of a text file over USB port. To run the demo, input a message using the
PC's keyboard. Any data that shows in HyperTerminal is received from the device.
5.6.2. DEMO running result
Download the program <06_USBD_CDC_ACM> to the board and run. When you input
message through computer keyboard, the HyperTerminal will receive and shown the message.
For example, when you input “GigaDevice MCU”, the HyperTerminal will get and show it as
below.

User Guide
GD32E503C-START
13/14
6. Revision history
Table 6-1. Revision history
Revision No.
Description
Date
1.0
Initial Release
Sep.4, 2020

User Guide
GD32E503C-START
14/14
Important Notice
This document is the property of GigaDevice Semiconductor Inc. and its subsidiaries (the "Company"). This document, including any
product of the Company described in this document (the “Product”), is owned by the Company under the intellectual property laws and
treaties of the People’s Republic of China and other jurisdictions worldwide. The Company reserves all rights under such laws and
treaties and does not grant any license under its patents, copyrights, trademarks, or other intellectual property rights. The names and
brands of third party referred thereto (if any) are the property of their respective owner and referred to for identification purposes only.
The Company makes no warranty of any kind, express or implied, with regard to this document or any Product, including, but not
limited to, the implied warranties of merchantability and fitness for a particular purpose. The Company does not assume any liability
arising out of the application or use of any Product described in this document. Any information provided in this document is provided
only for reference purposes. It is the responsibility of the user of this document to properly design, program, and test the functionality
and safety of any application made of this information and any resulting product. Except for customized products which has been
expressly identified in the applicable agreement, the Products are designed, developed, and/or manufactured for ordinary business,
industrial, personal, and/or household applications only. TheProducts are not designed, intended, or authorized for useas components
in systems designed or intended for the operation of weapons, weapons systems, nuclear installations, atomic energy control
instruments, combustion control instruments, airplane or spaceship instruments, transportation instruments, traffic signal instruments,
life-support devices or systems, other medical devices or systems (including resuscitation equipment and surgical implants), pollution
control or hazardous substances management, or other uses where the failure of the device or Product could cause personal injury,
death, property or environmental damage ("Unintended Uses"). Customers shall take any and all actions to ensure using and selling
the Products in accordance with the applicable laws and regulations. The Company is not liable, in whole or in part, and customers
shall and hereby do release the Company as well as it’s suppliers and/or distributors from any claim, damage, or other liability arising
from or related to all Unintended Uses of the Products. Customers shall indemnify and hold the Company as well as it’s suppliers
and/or distributors harmless from and against all claims, costs, damages, and other liabilities, including claims for personal injury or
death, arising from or related to any Unintended Uses of the Products.
Information in this document is provided solely in connection with the Products. The Company reserves the right to make changes,
corrections, modifications or improvements to this document and Products and services described herein at any time, without notice.
© 2020 GigaDevice –All rights reserved
Table of contents
Other GigaDevice Semiconductor Semiconductor manuals