background image

 

 

User Guide 

GD32150G-START 

9 /12

 

 

 

Learn to use SysTick to generate 1ms delay 

GD32150G-START-V1.1 board has two keys and one LED. The two keys are Reset key and 

User key. The LED1 is controlled by GPIO.   

This  demo  will  show  how  to  use  the  User  key  to  control  the  LED1.  When  press  down  the 

User Key, it will check the input value of the IO port. If the value is  1, wait for 50ms. Then 

check the input value of the IO port again. If the value is still 1, indicates that the button is 

pressed down successfully, and light the LED1. 

5.2.2. 

 DEMO running Result 

Download  the  program  <02_GPIO_Key_Polling_mode>  to  the  board,  first  of  all,  the  LED1 

will be flashed once for test. Then press down the User Key, LED1 will be turned on. Press 

down the User Key again, LED1 will be turned off. 

5.3. 

 EXTI_Key_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 

GD32150G-START-V1.1 board has two keys and one LED. The two keys are Reset key and 

User key. The LED1 is controlled by GPIO.   

This demo will show how to use EXTI interrupt line to control the LED1. When press down 

the  User  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 board, first of all, the LED1 

will be flashed once for test. Then press down the User Key, LED1 will be turned on. Press 

down the User Key again, LED1 will be turned off. 

5.4. 

USBD_HID_keyboard 

5.4.1. 

DEMO purpose 

This demo includes the following functions of GD32 MCU: 

 

Learn how to use the USBD peripheral mode 

 

Learn how to implement USB HID(human interface) device 

Summary of Contents for GD32150G-START

Page 1: ...GigaDevice Semiconductor Inc GD32150G START User Guide V3 0 Nov 20 2019 ...

Page 2: ...ion 5 4 3 LED 5 4 4 KEY 6 4 5 USB 6 4 6 GD Link 7 4 7 Extension 7 4 8 MCU 8 5 Routine use guide 8 5 1 GPIO_Running_LED 8 5 1 1 DEMO purpose 8 5 1 2 DEMO running Result 8 5 2 GPIO_Key_Polling_mode 8 5 2 1 DEMO purpose 8 5 2 2 DEMO running Result 9 5 3 EXTI_Key_Interrupt_mode 9 5 3 1 DEMO purpose 9 5 3 2 DEMO running Result 9 5 4 USBD_HID_keyboard 9 5 4 1 DEMO purpose 9 5 4 2 DEMO running result 10 ...

Page 3: ...atic diagram of boot option 5 Figure 4 3 Schematic diagram of LED function 5 Figure 4 4 Schematic diagram of Key function 6 Figure 4 5 Schematic diagram of USB function 6 Figure 4 6 Schematic diagram of GD Link function 7 Figure 4 7 Schematic diagram of Extension Pin 7 Figure 4 8 Schematic diagram of MCU Pin 8 ...

Page 4: ...User Guide GD32150G START 3 12 List of Tables Table 2 1 Pin assignment 4 Table 4 1 Boot configuration 5 Table 6 1 Revision history 11 ...

Page 5: ...eil version of the projects are created based on Keil MDK ARM 4 74 uVision4 IAR version of the projects are created based on IAR Embedded Workbench for ARM 7 40 2 During use the following points should be noted 1 If you use Keil uVision4 to open the project install the GD32F1x0_AddOn 3 2 0 exe to load the associated files 2 If you use Keil uVision5 to open the project there are two ways to solve t...

Page 6: ...210P005TF U5V C10 50V 0 1uF R10 1MΩ C12 50V 4700pF VBUS 1 DM 2 DP 3 ID 4 GND 5 Shield 6 USB_MiniAB receptacle CN1 Mini_USB R11 22Ω R12 22Ω R13 1 5KΩ PA11 PA12 PA15 4 2 Boot option Figure 4 2 Schematic diagram of boot option R7 10KΩ 1 2 3 JP4 BOOT0 GND BOOT0 3V3 Table 4 1 Boot configuration BOOT1 BOOT0 Boot Mode Default 2 3 User memory 1 2 System memory Changed by ISP 1 2 SRAM memory 4 3 LED Figure...

Page 7: ...of Key function PA0 R1 10KΩ 3V3 GND C1 50V 0 1uF KEY K1 K 1102B 4 5 USB Figure 4 5 Schematic diagram of USB function U5V C10 50V 0 1uF R10 1MΩ C12 50V 4700pF VBUS 1 DM 2 DP 3 ID 4 GND 5 Shield 6 USB_MiniAB receptacle CN1 Mini_USB R11 22Ω R12 22Ω R13 1 5KΩ PA11 PA12 PA15 ...

Page 8: ...A12 33 PA13 JTMS SWDIO 34 PA14 JTCK SWCLK 37 PA15 JTDI 38 PB0 18 PB1 19 PB2 BOOT1 20 PB3 JTDO 39 PB4 JNTRST 40 PB5 41 PB6 42 PB7 43 PB8 45 PB9 46 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 R103 10KΩ G...

Page 9: ...B7 28 VDD 16 VDDA 5 VSS VSSA 29 U1 GD32F150G8U6 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 for controlling the LED Learn to use SysTick to generate 1ms delay GD32150G START V1 1 board has one LED The LED1 is controlled by GPIO This demo will show how to light the LED 5 1 2 DEMO running Result Download the pro...

Page 10: ... off 5 3 EXTI_Key_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 GD32150G START V1 1 board has two keys and one LED The two keys are Reset key and User key The LED1 is controlled by GPIO This demo will show how to use EXTI interrupt line to control the LED1 Wh...

Page 11: ...r key In this demo the START board is enumerated as an USB Keyboard which uses the native PC Host HID driver as shown below The USB Keyboard uses user key to output one characters a 5 4 2 DEMO running result Download the program 04_USBD_HID_Keyboard to the START board and run If you press the User key will output a ...

Page 12: ... 11 12 6 Revision history Table 6 1 Revision history Revision No Description Date 1 0 Initial Release Jun 28 2017 2 0 Updated format across the whole document Jun 1 2019 3 0 Updated format across the whole document Nov 20 2019 ...

Page 13: ...inary business industrial personal and or household applications only The Products are not designed intended or authorized for use as 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 lif...

Reviews: