Specifications
SKU: 8955643
Parameter | Description | Value/Range |
---|---|---|
Device Name | GD32F130C6T6 | - |
Package | LQFP48 (7x7) | - |
Operating Voltage | VDDA, VDDIO, VDD | 2.0V to 3.6V |
Core | ARM? Cortex?-M3 | - |
Clock Frequency | System Clock (HCLK) | Up to 72 MHz |
Flash Memory | Program Memory | 32 KB |
RAM | Data Memory | 8 KB |
ADC | Analog-to-Digital Converter | 12-bit, 1.5 MSPS, 16 channels |
DAC | Digital-to-Analog Converter | 12-bit, 2 channels |
Timers | Basic Timers | 2 x 16-bit |
**General Purpose Timers | 2 x 16-bit | - |
**Advanced Control Timer | 1 x 16-bit | - |
Watchdog Timers | Independent Watchdog Timer, Window Watchdog Timer | - |
RTC | Real-Time Clock | - |
**Communication Interfaces | USART, SPI, I2C, USB 2.0 Full-Speed Device | 2 x USART, 1 x SPI, 1 x I2C, 1 x USB 2.0 FS |
GPIOs | General Purpose Input/Output Pins | 37 |
Power Management | Low Power Modes | Sleep, Stop, Standby |
Operating Temperature | T_A | -40°C to 85°C |
Supply Current | Active Mode | 120 μA/MHz |
Supply Current | Low Power Mode (Stop) | 2 μA |
Supply Current | Low Power Mode (Standby) | 0.6 μA |
Instructions for Use
Power Supply:
- Ensure that the VDD, VDDA, and VDDIO pins are connected to a stable power supply within the operating voltage range (2.0V to 3.6V).
- Connect the VSS pin to ground.
Clock Configuration:
- The internal high-speed oscillator (HSI) is enabled by default at 8 MHz.
- For higher precision, an external crystal or ceramic resonator can be connected to the HSE pins.
- Use the System Configuration (SYSCFG) register to configure the clock sources and prescalers.
Reset and Wake-up:
- The NRST pin can be used to reset the microcontroller.
- Wake-up from low power modes can be achieved using various events such as external interrupts, RTC alarms, or watchdog timers.
Peripheral Configuration:
- Configure the GPIO pins for input, output, or alternate functions using the GPIO configuration registers.
- Initialize communication interfaces (USART, SPI, I2C, USB) by setting up the corresponding control registers.
Low Power Modes:
- Enter Sleep mode by setting the SLEEPDEEP bit in the Cortex-M3 System Control Register (SCR).
- Enter Stop mode by configuring the Power Control (PWR) register and setting the PDDS bit.
- Enter Standby mode by setting the PDDS bit and the WFI (Wait For Interrupt) instruction.
Programming and Debugging:
- Use a JTAG/SWD debugger to program and debug the microcontroller.
- The SWDIO and SWCLK pins are used for debugging.
- Flash memory programming can be done through the bootloader or via a programmer.
ADC and DAC:
- Configure the ADC and DAC channels using the ADC and DAC configuration registers.
- Enable the ADC/DAC and start conversions as needed.
Timers:
- Set up the timer prescalers, auto-reload values, and interrupt enables in the timer control registers.
- Start the timers and handle timer interrupts as required.
RTC:
- Configure the RTC prescaler and alarm settings.
- Enable the RTC and use it for timekeeping or wake-up events.
Interrupt Handling:
- Configure the NVIC (Nested Vectored Interrupt Controller) to set priority levels and enable interrupts.
- Write interrupt service routines (ISRs) to handle specific interrupts.
For detailed information and specific register configurations, refer to the GD32F130C6T6 datasheet and reference manual.
(For reference only)Inquiry - GD32F130C6T6