ghaytweyhtoo

gd32f130c8t6 minimal system board

 
Overview

Introduction to GD32F130C8T6 microcontroller

Package: LQFP48
Core: Cortex-M3
Family and positioning: GD32 Value Line (super value model, focusing on cost performance, benchmarking STM32F030)
Working voltage: 2.6~3.6V
Flash ROM: 64KB (the first 32KB has the best performance, zero wait for access, and the code should not exceed 32KB)
SRAM: 8KB
Maximum system clock speed: Can run 72M, no problem at all
Working environment: -40 ~ +85℃
SysTick: 1
Watchdog (WDT): 2
RTC: 1
EXTI:16 Line
GPIO: 39
DMA: 1 (7 channels)
ADC: 1 ADC unit (1unit, 12bit resolution, 10 channels)
USART: 2 (USART0, USART1)
I2C: 2 (I2C0, I2C1)
SPI: 2 (SPI0, SPI1)
General timer (GPTM): 1 32-bit (TIM1), and 5 16-bit (TIM2, TIM13~TIM16)
Advanced timer (Advance Timer): 1 16-bit (TIM0)
Basic Timer: None
USB: None
DAC: None
 

Design Notes

Power supply: Use RT9193-3.3 as the LDO chip, the maximum input voltage is 5.5V, the typical value is 5V. 5V power can be input through the McrioUSB female socket or pin header.
Download and debug: Use the SWD interface to download and debug. It is recommended to use the CMSIS-DAP emulator. In order to improve the stability of the SWD interface, it is recommended to pull up SWDIO with a 10K resistor and pull down SWDCLK with a 10K resistor .
 

LED Blink example

 

#include "gd32f1x0.h"
#include <stdio.h>

 

//Software delay n milliseconds
void delay_ms(uint32_t n)
{
    uint32_t j;
    while(n--)
    {
        j=18888;
        while(j--);
    }
}

void RCU_config(void)
{
    rcu_periph_clock_enable(RCU_GPIOC); //Turn on the GPIOC peripheral clock
}

 

void GPIO_config(void)
{

    //Configure PC13 push-pull output
    gpio_mode_set(GPIOC, GPIO_MODE_OUTPUT, GPIO_PUPD_NONE, GPIO_PIN_13); 
    gpio_output_options_set(GPIOC, GPIO_OTYPE_PP, GPIO_OSPEED_10MHZ, GPIO_PIN_13); 
}

 

int main(void)
{
    RCU_config();
    GPIO_config();
    while(1)
    {
        if(gpio_output_bit_get(GPIOC,GPIO_PIN_13))
            gpio_bit_reset(GPIOC,GPIO_PIN_13);
        else
            gpio_bit_set(GPIOC,GPIO_PIN_13);
        
        delay_ms(500);
    }
}

 
 

 

参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-06-30 04:27:34
  • Application of three-phase SPWM generator SA8282 in static inverter
  • Some Experiences in PCB Design
  • Airmate's water fan is of poor quality!!
  • Personal notes: STM8 in simple terms
  • Regarding the frequency of AD signal acquisition
  • (Repost) Linux Kernel Lecture - Driver Infrastructure

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
community

Robot
development
community

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号