GigaDevice Semiconductor GD32107C-EVAL User Manual

Hide thumbs Also See for GD32107C-EVAL:

Advertisement

Quick Links

GigaDevice Semiconductor Inc.
GD32107C-EVAL
User Guide
V2.2

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the GD32107C-EVAL and is the answer not in the manual?

Questions and answers

Summary of Contents for GigaDevice Semiconductor GD32107C-EVAL

  • Page 1 GigaDevice Semiconductor Inc. GD32107C-EVAL User Guide V2.2...
  • Page 2: Table Of Contents

    User Guide GD32107C-EVAL Table of Contents Table of Contents ..........................1 List of Tables ............................. 3 Summary ............................ 4 Function Pin Assign ........................4 Getting started ........................... 6 Hardware layout overview ......................7 Power ........................... 7 Boot ............................7 LED............................8 KEY ............................
  • Page 3 User Guide GD32107C-EVAL 5.19 RTC_Calendar ........................29 5.20 TIMER_Breath_LED ......................30 5.21 ENET ..........................31 5.22 USB_Device ........................39 5.23 USB_Host ........................... 40 Revision history........................42 2/43...
  • Page 4: List Of Tables

    User Guide GD32107C-EVAL List of Tables Table 1 Function pin assign ........................... 4 Table 2 Revision history ..........................42 3/43...
  • Page 5: Summary

    GD32107C-EVAL Summary GD32107C-EVAL uses GD32F107VCT6 as the main controller. It uses Mini USB interface or DC-005 connector to supply 5V power. SWD, Reset, Boot, User button key, LED, CAN, I2C, I2S, USART, RTC, LCD, SPI, ADC, DAC, EXMC, ENET, USBFS and Extension Pins are also included.
  • Page 6 User Guide GD32107C-EVAL CAN1_RX CAN1 CAN1_TX PD14 EXMC_D0 PD15 EXMC_D1 EXMC_D2 EXMC_D3 EXMC_D4 EXMC_D5 EXMC_D6 NAND Flash PE10 EXMC_D7 PD11 EXMC_A16 PD12 EXMC_A17 EXMC_NOE EXMC_NWE EXMC_NWAIT EXMC_NCE1 PD14 EXMC_D0 PD15 EXMC_D1 EXMC_D2 EXMC_D3 EXMC_D4 EXMC_D5 EXMC_D6 PE10 EXMC_D7 PE11 EXMC_D8...
  • Page 7: Getting Started

    User Guide GD32107C-EVAL RMII_MDC RMII_MDIO RMII_INT RMII_REF_CLK USB_VBUS PA11 USB_DM USBFS PA12 USB_DP PA10 USB_ID Getting started The EVAL board uses Mini USB connecter or DC-005 connector to get power DC +5V, which is the hardware system normal work voltage. A J-Link tool is necessary in order to download and debug programs.
  • Page 8: Hardware Layout Overview

    User Guide GD32107C-EVAL Hardware layout overview Power Boot BOOT1 BOOT0 Boot Mode User memory System memory SRAM memory 7/43...
  • Page 9: Led

    User Guide GD32107C-EVAL +3V3 +3V3 +3V3 10KΩ 10KΩ 10KΩ KEY1 KEY2 KEY3 K-1102B K-1102B K-1102B 50V/0.1uF 50V/0.1uF 50V/0.1uF KEY1 PC13 KEY2 PB14 KEY3 8/43...
  • Page 10: Usart

    User Guide GD32107C-EVAL USART +3V3 50V/0.1uF Short JP4(1,2) for Ethernet function Short JP4(2,3)for USART1 function MAX3232CSE+ 50V/0.1uF RMII_MDIO 50V/0.1uF USART1_TX 50V/0.1uF HEADER 3 50V/0.1uF USART1_TX RS232_TX2 T1IN T1OUT USART0_TX RS232_TX1 T2IN T2OUT USART1_RX RS232_RX2 R1OUT R1IN USART0_RX RS232_RX1 R2OUT R2IN...
  • Page 11: Spi

    User Guide GD32107C-EVAL I2S_WS I2S_MCK LRCK SCKI I2S_MCK PB15 I2S_DIN I2S_DIN MSEL DATA SPI0_MOSI MDIN SPI0_SCK MCLK I2S_CK MCLK +3V3 MSEL NRST MDIN 16V/10uF,AVX 16V/10uF,AVX AGND 50V/0.1uF 50V/0.1uF HGND Vcom 16V/10uF,AVX HoutR HoutL PCM1770 PM 10V/220uF,AVX HeadPhone 10V/220uF,AVX Short JP18(1,2) and JP19(1,2) for Etherner function...
  • Page 12: Can

    User Guide GD32107C-EVAL 4.11 Short P2(1,2) for EXMC function +3V3 Short P2(2,3) for CAN0 function CAN0_TX 50V/0.1uF JP14 EXMC_D3 CAN0_TX 0Ω CAN0_RX CAN0H CANH 120Ω MHDR1X3 CAN0L CANL HEADER 2 Vref Short P3(1,2) for EXMC function SN65HVD230 Short P3(2,3) for CAN0 function...
  • Page 13: Lcd

    User Guide GD32107C-EVAL 4.13 +3V3 JP23 EXMC_D0 EXMC_D1 EXMC_D2 EXMC_D3 EXMC_D4 EXMC_D5 EXMC_D6 EXMC_D7 EXMC_D8 EXMC_D9 EXMC_D10 EXMC_D11 EXMC_D12 EXMC_D13 EXMC_D14 EXMC_D15 LCD_CS EXMC_A23 EXMC_NWE EXMC_NOE NRST BackLight +3V3 SPI1_MISO TP_INT SPI1_MOSI SPI1_SCK 10KΩ +3V3 JP24 LCD_CS EXMC_NE0 Nand_CS HEADER 3...
  • Page 14: Enet

    User Guide GD32107C-EVAL 4.14 ENET +3V3 C35 50V/0.1uF 49.9Ω 49.9Ω 50V/0.1uF 49.9Ω 49.9Ω 240Ω 240Ω JP16 PB12 and PB13 are AFIOs,refer to I2S schematic for right config PA2 is an AFIO, refer to USART schematic for right config PA7 is an AFIO, refer to SPI schematic for right config...
  • Page 15: Extension

    User Guide GD32107C-EVAL 4.16 Extension Extension Pin JP10 JP11 PB12 PB13 PA14 PA15 PB14 PB15 PC10 PC11 VBAT PC12 PC13 PC14 PD10 PD11 PC15 PD12 PD13 PD14 PD15 +3.3V +3.3V +3.3V +3.3V PIN12 PIN13 PE10 PE11 PIN14 PE12 PE13 PE14...
  • Page 16: Routine Use Guide

     Learn to use SysTick to generate 1ms delay GD32107C-EVAL board has four keys and four LEDs. The five keys are Reset key, Tamper key, Wakeup key, User key. The LED2, LED3, LED4 and LED5 are controlled by GPIO. This demo will show how to use the Tamper key to control the LED3. When press down the Tamper Key, it will check the input value of the IO port.
  • Page 17: Exti_Key_Interrupt_Mode

     Learn to use EXTI to generate external interrupt GD32107C-EVAL board has four keys and four LEDs. The five keys are Reset key, Tamper key, Wakeup key, User key. The LED2, LED3, LED4 and LED5 are controlled by GPIO. This demo will show how to use the EXTI interrupt line to control the LED3.When press down the Tamper Key, it will produce an interrupt.
  • Page 18: Usart_Hyperterminal_Interrupt

    User Guide GD32107C-EVAL USART_HyperTerminal_Interrupt 5.5.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 serial terminal tool 5.5.2 DEMO Running Result Download the program < 05_USART_HyperTerminal_Interrupt > to the EVAL board, jump the JP5 to USART with the jumper cap and connect serial cable to EVAL_COM0.
  • Page 19: Adc_Temperature_Vrefint

    DEMO Running Result Jump the JP5 to USART with the jumper cap, and then download the program <07_ADC_Temperature_Vrefint> to the GD32107C-EVAL board. Connect serial cable to EVAL_COM0, open the HyperTerminal. When the program is running, HyperTerminal display the value of temperature and internal voltage reference (VREFINT).
  • Page 20: Adc0_Adc1_Follow_Up_Mode

    5.8.2 DEMO Running Result Jump the JP5 to USART0 with the jumper cap, and then download the program <08_ADC0_ADC1_Follow_up_mode> to the GD32107C-EVAL board. Connect serial cable to EVAL_COM0, open the HyperTerminal. PC3 and PC5 pin voltage access by external voltage.
  • Page 21: Adc0_Adc1_Regular_Parallel_Mode

    5.9.2 DEMO Running Result Jump the JP5 to USART0 with the jumper cap, and then download the program <09_ADC0_ADC1_Regular_Parallel_mode> to the GD32107C-EVAL board. Connect serial cable to EVAL_COM0, open the HyperTerminal. PC3 and PC5 pin connect to external voltage input.
  • Page 22: Dac_Output_Voltage_Value

    User Guide GD32107C-EVAL pin is stored into the high half word of adc_value[0]. When the second rising edge of TIMER0_CH0 coming, the value of the ADC0 conversion of PC5 pin is stored into the low half word of adc_value[1], the value of the ADC1 conversion of PC3 pin is stored into the high half word of adc_value[1].
  • Page 23: I2C_Eeprom

    User Guide GD32107C-EVAL 5.11 I2C_EEPROM 5.11.1 DEMO Purpose This demo includes the following functions of GD32 MCU:  Learn to use the master transmitting mode of I2C module  Learn to use the master receiving mode of I2C module ...
  • Page 24: Spi_Spi_Flash

    User Guide GD32107C-EVAL 5.12 SPI_SPI_Flash 5.12.1 DEMO Purpose This demo includes the following functions of GD32 MCU:  Learn to use the master mode of SPI unit to read and write NOR Flash with the SPI interface 5.12.2 DEMO Running Result The computer serial port line connected to the COM0 port of development board, set the baud rate of HyperTerminal software to 115200, 8 bits data bit, 1 bit stop bit.
  • Page 25: I2S_Audio_Player

    User Guide GD32107C-EVAL Matching.”. At last, turn on and off the leds one by one. The following is the experimental results. 5.13 I2S_Audio_Player 5.13.1 DEMO Purpose This Demo includes the following functions of GD32 MCU: Learn to use I2S module to output audio file Parsing audio files of wav format...
  • Page 26: Exmc_Nandflash

    5.14.2 DEMO Running Result GD32107C-EVAL board has EXMC module to control NAND flash. Before running the demo, JP5 must be fitted to USART, P2 and P3 must be fitted to the EXMC port, JP24 must be fitted to the Nand port. Download the program <14_EXMC_NandFlash> to the EVAL board. This demo shows the write and read operation process of NAND flash memory by EXMC module.
  • Page 27: Exmc_Touchscreen

    5.15.2 DEMO Running Result GD32107C-EVAL board has EXMC module to control LCD. Before running the demo, JP12 and JP13 must be fitted to the SPI port, P2 and P3 must be fitted to the EXMC port. Download the program <15_EXMC_TouchScreen> to the EVAL board. This demo displays GigaDevice logo and four green buttons on the LCD screen by EXMC module.
  • Page 28: Can_Network

     Learn to use the CAN0 communication between two boards GD32107C-EVAL development board integrates the CAN(Controller Area Network) bus controller, which is a common industrial control bus. CAN bus controller follows the CAN bus protocol of 2.0 A and 2.0 B. This demo mainly shows how to communicate two EVAL boards through CAN0.
  • Page 29: Rcu_Clock_Out

    User Guide GD32107C-EVAL the Tamper key to transmit data!” to the HyperTerminal. The frames are sent and the transmit data are printed by pressing Tamper Key push button. When the frames are received, the receive data will be printed and the LED2 will toggle one time.
  • Page 30: Pmu_Sleep_Wakeup

    User Guide GD32107C-EVAL 5.18 PMU_sleep_wakeup 5.18.1 DEMO Purpose This demo includes the following functions of GD32 MCU:  Learn to use the USART receive interrupt to wake up the PMU from sleep mode 5.18.2 DEMO Running Result Download the program < 18_PMU_sleep_wakeup > to the EVAL board, jump the JP5 to USART with the jumper cap and connect serial cable to EVAL_COM0.
  • Page 31: Timer_Breath_Led

    DEMO Running Result Use the DuPont line to connect the TIMER0_CH0 (PA8) and LED2 (PC0), and then download the program <20_TIMER_Breath_LED> to the GD32107C-EVAL board and run. PA8 should not be reused by other peripherals. When the program is running, you can see LED2 lighting from dark to bright gradually and then gradually darken, ad infinitum, just like breathing as rhythm.
  • Page 32: Enet

    Learn how to use DHCP to allocate ip address automatically This demo is based on the GD32107C-EVAL evaluation board, it shows how to configure the enet peripherals to send and receive frames in normal mode and use lwip tcp/ip stack to realize ping, telnet and server/client functions.
  • Page 33 User Guide GD32107C-EVAL DEMO Running Result Download the program <FreeRTOS_tcpudp> to the EVAL board, LED3 will light every 500ms. Using Network assistant software, configure the pc side to tcp client, using 8000 port, and when send something through the assistant, users can see the reply from the server:...
  • Page 34 Learn to handle with received packet in polling mode and in interrupt mode This demo is based on the GD32107C-EVAL evaluation board, it shows how to configure the enet peripherals to send and receive frames in normal mode and use lwip tcp/ip stack to realize ping, telnet and server/client functions.
  • Page 35 If users need dhcp function, it can be configured from the private defines in main.h. This function is closed in default. Note: Users should configure ip address, mask and gw of GD32107C-EVAL evaluation board, or server according to the actual net situation from the private defines in main.h.
  • Page 36 User Guide GD32107C-EVAL Using Network assistant software, configure the pc side to tcp server, using 10260 port, press the Tamper key, and when send something through the assistant, users can see the echo reply from the client: Using Network assistant software, configure to use udp protocol, using 1025 port, and when...
  • Page 37 Learn to handle with received packet in polling mode and in interrupt mode This demo is based on the GD32107C-EVAL evaluation board, it shows how to configure the enet peripherals to send and receive frames in normal mode and use lwip tcp/ip stack to realize webserver application.
  • Page 38 By default, the packet reception is polled in while(1). If users want to receive packet in interrupt service, uncomment the macro define USE_ENET_INTERRUPT in main.h. Note: Users should configure ip address, mask and gw of GD32107C-EVAL evaluation board according to the actual net situation from the private defines in main.h.
  • Page 39 User Guide GD32107C-EVAL The ADC monitor page shows as below: Open the DHCP function in main.h, using a router to connect the board, and use the HyperTerminal to print the automatic allocated ip address, then connect your mobile phone to the wifi which the router send. Users can visit the eval board and control it on your mobile phone.
  • Page 40: Usb_Device

     Learn how to implement USB HID(human interface) device The GD32107C-EVAL board is enumerated as an USB Keyboard, which uses the native PC Host HID driver, as shown below. The USB Keyboard use three keys to output three characters (‘b’, ‘a’ and ‘c’). In addition, the demo also supports remote wakeup which is the ability of a USB device to bring a suspended bus back to the active condition, and the ‘wakeup’...
  • Page 41: Usb_Host

    User Guide GD32107C-EVAL This demo includes the following functions of GD32 MCU:  Learn how to use the USBFS  Learn how to implement USB MSC(mass storage) device This demo mainly implements a U disk. U disk is currently very widely used removable MSC devices.
  • Page 42 Learn the operation between the HID host and the keyboard device GD32107C-EVAL board integrates the USBFS module, and the module can be used as a USB device, a USB host or an OTG device. This demo mainly shows how to use the USBFS as a USB HID host to communicate with external USB HID device.
  • Page 43: Revision History

    User Guide GD32107C-EVAL Revision history Table 2 Revision history Revision No. Description Date Initial Release Dec. 26, 2014 Firmware Update Jun. 30, 2017 Firmware Update, Consistency Jul. 31, 2018 Update Firmware Update. Routine name, LCD routine logo, SD card driver Apr.
  • Page 44 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.

Table of Contents