GigaDevice GD32L233 40nm Ultra-Low Power Process User Guide

June 4, 2024
GigaDevice

GD32L233 40nm Ultra-Low Power Process
User Guide

Summary

GD32L233K-START uses GD32L233KBT6 as the main controller. It uses a GD-Link Mini USB interface to supply 5V power. Reset, Boot, Button key, LED, USB, and SART to USB interface are also included. For more details, please refer to the GD32L233K-START_Rev1.0 schematic.

Function Pin Assign

Table 2-1. Function pin assignment

Function Pin Description
LED PA8 LED1
RESET Reset
KEY PA0 K2(Wakeup key)
USART PA 9 USART0_TX
PA 10 USART0_RX
USB PA11 USB_DM
PA12 USB_DP

Getting started

The EVAL board uses a GD-Link Mini USB connecter to get power DC +5V, which is the hardware system’s 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 versions and IAR versions of all projects. The Keil version of the projects is created based on Keil MDK-ARM 5.26 uVision5. IAR versions 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.GD32L23x_DFP_1.0.0.
  2. If you use IAR to open the project, install IAR_GD32L23x_ADDON_1.0.0.exe to load the associated files.

Hardware layout overview

4.1. Power supply

GigaDevice GD32L233 40nm Ultra Low Power Process - Fig
1 4.2. Boot optionGigaDevice GD32L233
40nm Ultra Low Power Process - Fig 2 4.3. LEDGigaDevice GD32L233 40nm Ultra Low Power Process -
Fig 3 4.4. KEYGigaDevice GD32L233
40nm Ultra Low Power Process - Fig 4 4.5. USARTGigaDevice GD32L233 40nm Ultra Low Power Process -
Fig 5 4.6. USBGigaDevice GD32L233
40nm Ultra Low Power Process - Fig 6 4.7. GD-Link

Figure 4-7. Schematic diagram of GD-LinkGigaDevice GD32L233 40nm
Ultra Low Power Process - Fig 7

4.8. ArduinoGigaDevice GD32L233 40nm Ultra Low Power Process - Fig
8 4.9. MCUGigaDevice GD32L233 40nm
Ultra Low Power Process - Fig 9

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 a 1ms delay

GD32L233K-START board has two keys and one LED. The two keys are the Reset key and the Wakeup key. The LED1 is 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 START board, LED1 can flash.

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 a 1ms delay

GD32L233K-START board has two keys and one LED. The two keys are the Reset key and the Wakeup key. The LED1 is controlled by GPIO.
This demo will show how to use the Wakeup key to control LED1. When pressing down the Wakeup key, 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 toggles LED1.
5.2.2. DEMO running result
Download the program < 02_GPIO_Key_Polling_mode > to the START board, press down the Wakeup key, and LED2 will be turned on. Press down the Wakeup key again, and 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 control the LED and the KEY
  • Learn to use EXTI to generate an external interrupt

GD32L233K-START board has two keys and one LED. The two keys are the Reset key and the Wakeup key. The LED1 is controlled by GPIO.
This demo will show how to use the EXIT interrupt line to control LED1. When pressing down the Wakeup key, it will produce an interruption. 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 the test. When pressing down the Wakeup key, LED1 will be turned on. Press down the Wakeup key again, and 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 EVAL board and connect the serial cable to USART. Firstly, the LED1 is turned on and off for the 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 has a BUFFER_SIZE byte as the maximum. After that, compare tx_buffer with rx_buffer. If tx_buffer is the same as rx_buffer, LED1 turns on. Otherwise, LED1 flashes.
The output information via the HyperTerminal is as follows:GigaDevice
GD32L233 40nm Ultra Low Power Process - Fig 10

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 an external interrupt
  • Learn to use TIMER to generate PWM

GD32L233K-START board has two keys and one LED. The two keys are Reset key and the Wakeup key. The LED1 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 pressing down the Wakeup Key, it will generate 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, LED1 will flash once for testing, press down the Wakeup Key and LED1 will be turned on. Press down the Wake up Key again, and LED1 will be turned off. Jump JP3 to Dx and connect PA6(TIMER2_CH0) and PB1 with the 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 a USB CDC device

GD32L233K-START board has one USBD interface. In this demo, the GD32L233K- START board is enumerated as a USB virtual COM port, which was shown in the device manager of the PC below. This demo makes the USB device look like a serial port, and loops back the contents of a text file over the 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 START board and run. When the user inputs a message through a computer keyboard, the HyperTerminal will receive and show the message. For example, when you input “GigaDevice MCU”, the HyperTerminal will get and show it as below.GigaDevice GD32L233 40nm
Ultra Low Power Process - Fig 12

Revision history

Table 6-1. Revision history

Revision No. Description Date
1 Initial Release Nov.15, 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 the third parties referred thereto (if any) are the property of their respective owner and are 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 Produ ct could cause personal injury, death, property or environmental damage (“Unintended Uses”). Customers shall take any and all actions to ensure using and sel ling 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 persona l 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.
© 2021 GigaDevice – All rights reserved

GigaDevice Semiconductor Inc.
GD32L233K-START
Arm ® Cortex ® -M23 32-bit MCU
Revision 1.0
(Nov. 2021)

Read User Manual Online (PDF format)

Loading......

Download This Manual (PDF format)

Download this manual  >>

Related Manuals