GigaDevice GD32E231C-START Arm Cortex-M23 32-bit MCU Controller User Guide

June 4, 2024
GigaDevice

Giga Device GD32E231C-START Arm Cortex-M23 32-bit MCU Controller

GigaDevice GD32E231C-START Arm Cortex-M23 32-bit MCU
Controller

Summary

GD32E231C-START uses GD32E231C8T6 as the main controller. It uses Mini USB interface to supply 5V power. Reset, Boot, Wakeup key, LED, GD-Link, Ardunio are also included. For more details please refer to GD32E231C-START-V1.0 schematic.

Function pin assignment

Table 2-1 Function pin assignment

Function Pin Description


LED

| PA7| LED1
PA8| LED2
PA11| LED3
PA12| LED4
RESET|  | K1-Reset
KEY| PA0| K2-Wakeup

Getting started

The EVAL board uses Mini USB 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 that 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.25 uVision5. IAR version of the projects are created based on IAR Embedded Workbench for ARM 8.31.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.GD32E23x_DFP.1.0.0.pack.
  2. If you use IAR to open the project, install IAR_GD32E23x_ADDON_1.0.0.exe to load the associated files.

Hardware layout overview

Power supply

Figure 4-1 Schematic diagram of power supply

GigaDevice GD32E231C-START Arm Cortex-M23 32-bit MCU Controller
1

Boot option

GigaDevice GD32E231C-START Arm Cortex-M23 32-bit MCU Controller
2

LED

GigaDevice GD32E231C-START Arm Cortex-M23 32-bit MCU Controller
3

KEY

GigaDevice GD32E231C-START Arm Cortex-M23 32-bit MCU Controller
4

GD-Link

GigaDevice GD32E231C-START Arm Cortex-M23 32-bit MCU Controller
5

MCU

GigaDevice GD32E231C-START Arm Cortex-M23 32-bit MCU Controller
6

Ardunio

GigaDevice GD32E231C-START Arm Cortex-M23 32-bit MCU Controller
7

Routine use guide

GPIO_Running_LED
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

GD32E231C-START board has four LED. The LED1 are controlled by GPIO. This demo will show how to light the LED.
DEMO running result
Download the program < 01_GPIO_Running_LED > to the EVAL board, LED1 will turn on and off in sequence with interval of 1000ms, repeat the process. GPIO_Key_Polling_mode
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

GD32E231C-START board has two keys and four LED. The two keys are Reset key and Wakeup key. The LED1 are 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 50ms. 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.
DEMO running result
Download the program < 02_GPIO_Key_Polling_mode > to the EVAL board, all the LEDs are flashed once for test and LED1 is on, press down the Wakeup Key, LED1 will be turned off. Press down the Wakeup Key again, LED1 will be turned on.

EXTI_Key_Interrupt_mode

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

GD32E231C-START board has two keys and four LED. The two keys are Reset key and Wakeup key. The LED1 are 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.
DEMO running result
Download the program < 03_EXTI_Key_Interrupt_mode > to the EVAL board, all the LEDs are flashed once for test and LED1 is on, press down the Wakeup Key, LED1 will be turned off. Press down the Wakeup Key again, LED1 will be turned on.
TIMER_Key_EXTI
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

GD32E231C-START board has two keys and four LED. The two keys are Reset key and Wakeup key. The LED1 are 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.
DEMO running result
Download the program < 04_TIMER_Key_EXTI > to the EVAL board, all the LEDs are 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 PA5

Revision history

Revision No. Description Date
1.0 Initial Release Feb.19, 2019
1.1 Modify document header and homepage Dec. 31, 2021

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. 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, 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.

Read User Manual Online (PDF format)

Loading......

Download This Manual (PDF format)

Download this manual  >>

Related Manuals