background image

 

 

User Guide 

GD32E507V-START 

11/16 

 

 

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 

GD32E507V-START-V1.0 board has 2 keys and 1 LED. The keys are User 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 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  START  board,  LED1  is 

turned  on  and  off  for  test. When  press  down  the  User  Key,  LED1  will  be  turned  on.  Press 

down the User 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: 

Содержание GD32E507V-START

Страница 1: ...GigaDevice Semiconductor Inc GD32E507V START User Guide V1 0 ...

Страница 2: ...SE GUIDE 10 5 1 GPIO_Running_LED 10 5 1 1 DEMO purpose 10 5 1 2 DEMO running result 10 5 2 GPIO_Key_Polling_mode 10 5 2 1 DEMO purpose 10 5 2 2 DEMO running result 10 5 3 EXTI_Key_Interrupt_mode 11 5 3 1 DEMO purpose 11 5 3 2 DEMO running result 11 5 4 USART_HyperTerminal_Interrupt 11 5 4 1 DEMO purpose 11 5 4 2 DEMO running result 11 5 5 TIMER_Key_EXTI 12 5 5 1 DEMO purpose 12 5 5 2 DEMO running ...

Страница 3: ...User Guide GD32E507V START 2 16 5 7 2 DEMO Running Result 14 6 REVISION HISTORY 15 ...

Страница 4: ...agram of boot option 6 Figure 4 3 Schematic diagram of LED function 6 Figure 4 4 Schematic diagram of Key function 7 Figure 4 5 Schematic diagram of USART 7 Figure 4 6 Schematic diagram of USB 7 Figure 4 7 Schematic diagram of Extension 8 Figure 4 8 Schematic diagram of GD Link 8 Figure 4 10 Schematic diagram of MCU 9 ...

Страница 5: ...User Guide GD32E507V START 4 16 List of Tables Table 2 1 Function pin assignment 5 Table 6 1 Revision history 15 ...

Страница 6: ...B connecter to get power DC 5V which is the hardware system normal work voltage A GD 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 ve...

Страница 7: ...4 U2 AMS1117 3 3 E1 16V 10uF AVX E2 16V 10uF AVX GND C11 50V 0 1uF 3V3 LEDPWR LED0603 R7 470Ω P1 SMD1210P050F U5V 5V 4 2 Boot option Figure 4 2 Schematic diagram of boot option R4 10KΩ 1 2 3 JP3 BOOT0 GND R5 10KΩ 1 2 3 JP4 BOOT1 GND BOOT0 3V3 3V3 BOOT1 4 3 LED Figure 4 3 Schematic diagram of LED function PC6 LED1 LED0603 LED R10 470Ω GND ...

Страница 8: ...4 5 USART Figure 4 5 Schematic diagram of USART VBUS 1 DM 2 DP 3 ID 4 GND 5 Shield 6 USB_MiniAB receptacle CN3 Mini_USB UD 1 UD 2 GND 3 RTS 4 CTS 5 TNOW 6 VCC 7 TXD 8 RXD 9 V3 10 U3 CH340E D D 3V3 3V3 UART_TX UART_RX PB6 PB7 C19 50V 0 01uF C20 50V 0 1uF D D C21 50V 4700pF R17 1MΩ USART To USB 4 6 USB Figure 4 6 Schematic diagram of USB ...

Страница 9: ...PB1 PB0 PA3 PA2 PE14 PC5 PD8 PD10 PD11 PD12 PE15 PE9 PE8 PE11 PE10 PE12 PE13 PC1 PC2 PC3 PD13 PD14 PC4 PD15 PE7 PB5 PB6 PB7 PA10 PB8 PB9 PA15 PB3 PA13 PA14 PB4 PA8 PE0 PD0 PD1 PD3 PD4 PD5 PD6 PC10 PC11 PC12 PC7 PC8 PC9 PD2 PE1 PE2 PE3 PE4 PE5 PE6 PD7 3V3 GND PC0 PC13 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 JP5 HEADER 20X2 1 2 3...

Страница 10: ...S SWDIO 72 PA14 JTCK SWCLK 76 PA15 JTDI 77 PB0 35 PB1 36 PB2 BOOT1 37 PB3 JTDO 89 PB4 JNTRST 90 PB5 91 PB6 92 PB7 93 PB8 95 PB9 96 PB10 47 PB11 48 PB12 51 PB13 52 PB14 53 PB15 54 PC0 15 PC1 16 PC2 17 PC3 18 PC4 33 PC5 34 PC6 63 PC7 64 PC8 65 PC9 66 PC10 78 PC11 79 PC12 80 PC13 TAMPER RTC 7 PC14 OSC32_IN 8 PC15 OSC32_OUT 9 PD0 81 PD1 82 PD2 83 PD3 84 PD4 85 PD5 86 PD6 87 PD7 88 PD8 55 PD9 56 PD10 5...

Страница 11: ...udes the following functions of GD32 MCU Learn to use GPIO control the LED and the KEY Learn to use SysTick to generate 1ms delay GD32E507V START V1 0 board has 2 keys and 1 LED The keys are User Key and Reset Key The LED are 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 0...

Страница 12: ...ey LED1 will be turned on Press down the User 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...

Страница 13: ...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 User Key LED1 will be turned on Press down the User 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...

Страница 14: ...tion please refer to the standard of their agreement 5 6 2 DEMO Running Result Download the program 06_USB_MSC_Device to the EVAL board and run When the start board is connected to the PC you will find a USB large capacity storage device is in the universal serial bus controller and there is 1 more disk drives in the equipment manager of PC Then after opening the resource manager you will see more...

Страница 15: ...umeration First pressing the USER key will see the inserted device is mouse and then moving the mouse will show the position of mouse in the HyperTerminal If a keyboard has been attached the user will see the information of keyboard enumeration First pressing the USER key will see the inserted device is keyboard and then pressing the keyboard will show the state of the button in the HyperTerminal ...

Страница 16: ...User Guide GD32E507V START 15 16 6 Revision history Table 6 1 Revision history Revision No Description Date 1 0 Initial Release Sep 4 2020 ...

Страница 17: ...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...

Отзывы: