兆易创新GD32F303VGT6-GD32 ARM Cortex-M4 Microcontroller
兆易创新GD32F303VGT6-GD32 ARM Cortex-M4 Microcontroller
GigaDevice Semiconductor Inc.
GD32F303xx
ARM® Cortex®-M4 32-bit MCU
Datasheet
General description
The GD32F303xx device belongs to the mainstream line of GD32 MCU Family. It is a new 32-bit general-purpose microcontroller based on the ARM® Cortex®-M4 RISC core with best cost-performance ratio in terms of enhanced processing capacity, reduced power consumption and peripheral set. The Cortex®-M4 core features implements a full set of DSP instructions to address digital signal control markets that demand an efficient, easy-to-use blend of control and signal processing capabilities. It also provides a Memory Protection Unit (MPU) and powerful trace technology for enhanced application security and advanced debug support.
The GD32F303xx device incorporates the ARM® Cortex®-M4 32-bit processor core operating at 120 MHz frequency with Flash accesses zero wait states to obtain maximum efficiency. It provides up to 3072 KB on-chip Flash memory and 96 KB SRAM memory. An extensive range of enhanced I/Os and peripherals connected to two APB buses. The devices offer up to three 12-bit 2.6 MSPS ADCs, two 12-bit DACs, up to ten general 16-bit timers, two 16-bit PWM advanced timers, and two 16-bit basic timers, as well as standard and advanced communication interfaces: up to three SPIs, two I2Cs, three USARTs and two UARTs, two I2Ss, a USBD, a CAN and a SDIO.
The device operates from a 2.6 to 3.6 V power supply and available in (–20 to +85 °C) / (–40 to +85 °C) / (–40 to +105 °C) temperature range. Several power saving modes provide the flexibility for maximum optimization between wakeup latency and power consumption, an especially important consideration in low power applications.
The above features make GD32F303xx devices suitable for a wide range of interconnection and advanced applications, especially in areas such as industrial control, motor drives, consumer and handheld equipment, human machine interface, security and alarm systems, POS, automotive navigation, IoT and so on.
Device information
Table 2-1. GD32F303xx devices features and peripheral list
Part Number |
GD32F303xx |
||||||||
|
CC |
CE |
CG |
RC |
RE |
RG |
RI |
RK |
|
Flash |
Code area (KB) |
256 |
256 |
256 |
256 |
256 |
256 |
256 |
256 |
|
Data area (KB) |
0 |
256 |
768 |
0 |
256 |
768 |
1792 |
2816 |
|
Total (KB) |
256 |
512 |
1024 |
256 |
512 |
1024 |
2048 |
3072 |
SRAM (KB) |
48 |
64 |
96 |
48 |
64 |
96 |
96 |
96 |
|
Timers |
General timer(16-bit) |
4 (1-4) |
4 (1-4) |
10 (1-4,8-13) |
4 (1-4) |
4 (1-4) |
10 (1-4,8-13) |
10 (1-4,8-13) |
10 (1-4,8-13) |
|
Advanced timer(16-bit) |
1 (0) |
1 (0) |
1 (0) |
2 (0,7) |
2 (0,7) |
2 (0,7) |
2 (0,7) |
2 (0,7) |
|
Basic timer(16-bit) |
2 (5-6) |
2 (5-6) |
2 (5-6) |
2 (5-6) |
2 (5-6) |
2 (5-6) |
2 (5-6) |
2 (5-6) |
|
SysTick |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
|
Watchdog |
2 |
2 |
2 |
2 |
2 |
2 |
2 |
2 |
|
RTC |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
Connectivity |
USART |
3 (0-2) |
3 (0-2) |
3 (0-2) |
3 (0-2) |
3 (0-2) |
3 (0-2) |
3 (0-2) |
3 (0-2) |
|
UART |
0 |
0 |
0 |
2 (3-4) |
2 (3-4) |
2 (3-4) |
2 (3-4) |
2 (3-4) |
|
I2C |
2 |
2 |
2 |
2 |
2 |
2 |
2 |
2 |
|
SPI/I2S |
3/2 (0-2)/(1-2) |
3/2 (0-2)/(1-2) |
3/2 (0-2)/(1-2) |
3/2 (0-2)/(1-2) |
3/2 (0-2)/(1-2) |
3/2 (0-2)/(1-2) |
3/2 (0-2)/(1-2) |
3/2 (0-2)/(1-2) |
|
SDIO |
0 |
0 |
0 |
1 |
1 |
1 |
1 |
1 |
|
CAN |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
|
USBD |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
GPIO |
37 |
37 |
37 |
51 |
51 |
51 |
51 |
51 |
|
EXMC |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
|
EXTI |
16 |
16 |
16 |
16 |
16 |
16 |
16 |
16 |
|
ADC Unit (CHs) |
3(10) |
3(10) |
3(10) |
3(16) |
3(16) |
3(16) |
3(16) |
3(16) |
|
DAC |
2 |
2 |
2 |
2 |
2 |
2 |
2 |
2 |
|
Package |
LQFP48 |
LQFP64 |
Part Number |
GD32F303xx |
||||||||||
|
VC |
VE |
VG |
VI |
VK |
ZC |
ZE |
ZG |
ZI |
ZK |
|
Flash |
Code area (KB) |
256 |
256 |
256 |
256 |
256 |
256 |
256 |
256 |
256 |
256 |
|
Data area (KB) |
0 |
256 |
768 |
1792 |
2816 |
0 |
256 |
768 |
1792 |
2816 |
|
Total (KB) |
256 |
512 |
1024 |
2048 |
3072 |
256 |
512 |
1024 |
2048 |
3072 |
SRAM (KB) |
48 |
64 |
96 |
96 |
96 |
48 |
64 |
96 |
96 |
96 |
|
Timers |
General timer(16-bit) |
4 (1-4) |
4 (1-4) |
10 (1-4,8-13) |
10 (1-4,8-13) |
10 (1-4,8-13) |
4 (1-4) |
4 (1-4) |
10 (1-4,8-13) |
10 (1-4,8-13) |
10 (1-4,8-13) |
|
Advanced timer(16-bit) |
2 (0,7) |
2 (0,7) |
2 (0,7) |
2 (0,7) |
2 (0,7) |
2 (0,7) |
2 (0,7) |
2 (0,7) |
2 (0,7) |
2 (0,7) |
|
Basic timer(16-bit) |
2 (5-6) |
2 (5-6) |
2 (5-6) |
2 (5-6) |
2 (5-6) |
2 (5-6) |
2 (5-6) |
2 (5-6) |
2 (5-6) |
2 (5-6) |
|
SysTick |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
|
Watchdog |
2 |
2 |
2 |
2 |
2 |
2 |
2 |
2 |
2 |
2 |
|
RTC |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
Connectivity |
USART |
3 (0-2) |
3 (0-2) |
3 (0-2) |
3 (0-2) |
3 (0-2) |
3 (0-2) |
3 (0-2) |
3 (0-2) |
3 (0-2) |
3 (0-2) |
|
UART |
2 (3-4) |
2 (3-4) |
2 (3-4) |
2 (3-4) |
2 (3-4) |
2 (3-4) |
2 (3-4) |
2 (3-4) |
2 (3-4) |
2 (3-4) |
|
I2C |
2 |
2 |
2 |
2 |
2 |
2 |
2 |
2 |
2 |
2 |
|
SPI/I2S |
3/2 (0-2)/(1-2) |
3/2 (0-2)/(1-2) |
3/2 (0-2)/(1-2) |
3/2 (0-2)/(1-2) |
3/2 (0-2)/(1-2) |
3/2 (0-2)/(1-2) |
3/2 (0-2)/(1-2) |
3/2 (0-2)/(1-2) |
3/2 (0-2)/(1-2) |
3/2 (0-2)/(1-2) |
|
SDIO |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
|
CAN |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
|
USBD |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
GPIO |
80 |
80 |
80 |
80 |
80 |
112 |
112 |
112 |
112 |
112 |
|
EXMC |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
|
EXTI |
16 |
16 |
16 |
16 |
16 |
16 |
16 |
16 |
16 |
16 |
|
ADC Unit (CHs) |
3(16) |
3(16) |
3(16) |
3(16) |
3(16) |
3(21) |
3(21) |
3(21) |
3(21) |
3(21) |
|
DAC |
2 |
2 |
2 |
2 |
2 |
2 |
2 |
2 |
2 |
2 |
|
Package |
LQFP100 |
LQFP144 |
Memory map
Table 2-3. GD32F303xx memory map
Pre-defined Regions |
Bus |
Address |
Peripherals |
External device |
AHB3 |
0xA000 0000 - 0xA000 0FFF |
EXMC - SWREG |
External RAM |
|
0x9000 0000 - 0x9FFF FFFF |
EXMC - PC CARD |
|
|
0x7000 0000 - 0x8FFF FFFF |
EXMC - NAND |
|
|
0x6000 0000 - 0x6FFF FFFF |
EXMC - NOR/PSRAM/SRAM |
Peripheral |
AHB1 |
0x5000 0000 - 0x5003 FFFF |
Reserved |
|
|
0x4008 0000 - 0x4FFF FFFF |
Reserved |
|
|
0x4004 0000 - 0x4007 FFFF |
Reserved |
|
|
0x4002 BC00 - 0x4003 FFFF |
Reserved |
|
|
0x4002 B000 - 0x4002 BBFF |
Reserved |
|
|
0x4002 A000 - 0x4002 AFFF |
Reserved |
|
|
0x4002 8000 - 0x4002 9FFF |
Reserved |
|
|
0x4002 6800 - 0x4002 7FFF |
Reserved |
|
|
0x4002 6400 - 0x4002 67FF |
Reserved |
|
|
0x4002 6000 - 0x4002 63FF |
Reserved |
|
|
0x4002 5000 - 0x4002 5FFF |
Reserved |
|
|
0x4002 4000 - 0x4002 4FFF |
Reserved |
|
|
0x4002 3C00 - 0x4002 3FFF |
Reserved |
|
|
0x4002 3800 - 0x4002 3BFF |
Reserved |
|
|
0x4002 3400 - 0x4002 37FF |
Reserved |
|
|
0x4002 3000 - 0x4002 33FF |
CRC |
|
|
0x4002 2C00 - 0x4002 2FFF |
Reserved |
|
|
0x4002 2800 - 0x4002 2BFF |
Reserved |
|
|
0x4002 2400 - 0x4002 27FF |
Reserved |
|
|
0x4002 2000 - 0x4002 23FF |
FMC |
|
|
0x4002 1C00 - 0x4002 1FFF |
Reserved |
|
|
0x4002 1800 - 0x4002 1BFF |
Reserved |
|
|
0x4002 1400 - 0x4002 17FF |
Reserved |
|
|
0x4002 1000 - 0x4002 13FF |
RCU |
|
|
0x4002 0C00 - 0x4002 0FFF |
Reserved |
|
|
0x4002 0800 - 0x4002 0BFF |
Reserved |
|
|
0x4002 0400 - 0x4002 07FF |
DMA1 |
|
|
0x4002 0000 - 0x4002 03FF |
DMA0 |
|
|
0x4001 8400 - 0x4001 FFFF |
Reserved |
|
|
0x4001 8000 - 0x4001 83FF |
SDIO |
|
APB2 |
0x4001 7C00 - 0x4001 7FFF |
Reserved |
|
|
0x4001 7800 - 0x4001 7BFF |
Reserved |
|
|
0x4001 7400 - 0x4001 77FF |
Reserved |
Pre-defined Regions |
Bus |
Address |
Peripherals |
|
|
0x4001 7000 - 0x4001 73FF |
Reserved |
|
|
0x4001 6C00 - 0x4001 6FFF |
Reserved |
|
|
0x4001 6800 - 0x4001 6BFF |
Reserved |
|
|
0x4001 5C00 - 0x4001 67FF |
Reserved |
|
|
0x4001 5800 - 0x4001 5BFF |
Reserved |
|
|
0x4001 5400 - 0x4001 57FF |
TIMER10 |
|
|
0x4001 5000 - 0x4001 53FF |
TIMER9 |
|
|
0x4001 4C00 - 0x4001 4FFF |
TIMER8 |
|
|
0x4001 4800 - 0x4001 4BFF |
Reserved |
|
|
0x4001 4400 - 0x4001 47FF |
Reserved |
|
|
0x4001 4000 - 0x4001 43FF |
Reserved |
|
|
0x4001 3C00 - 0x4001 3FFF |
ADC2 |
|
|
0x4001 3800 - 0x4001 3BFF |
USART0 |
|
|
0x4001 3400 - 0x4001 37FF |
TIMER7 |
|
|
0x4001 3000 - 0x4001 33FF |
SPI0 |
|
|
0x4001 2C00 - 0x4001 2FFF |
TIMER0 |
|
|
0x4001 2800 - 0x4001 2BFF |
ADC1 |
|
|
0x4001 2400 - 0x4001 27FF |
ADC0 |
|
|
0x4001 2000 - 0x4001 23FF |
GPIOG |
|
|
0x4001 1C00 - 0x4001 1FFF |
GPIOF |
|
|
0x4001 1800 - 0x4001 1BFF |
GPIOE |
|
|
0x4001 1400 - 0x4001 17FF |
GPIOD |
|
|
0x4001 1000 - 0x4001 13FF |
GPIOC |
|
|
0x4001 0C00 - 0x4001 0FFF |
GPIOB |
|
|
0x4001 0800 - 0x4001 0BFF |
GPIOA |
|
|
0x4001 0400 - 0x4001 07FF |
EXTI |
|
|
0x4001 0000 - 0x4001 03FF |
AFIO |
|
APB1 |
0x4000 CC00 - 0x4000 FFFF |
Reserved |
|
|
0x4000 C800 - 0x4000 CBFF |
CTC |
|
|
0x4000 C400 - 0x4000 C7FF |
Reserved |
|
|
0x4000 C000 - 0x4000 C3FF |
Reserved |
|
|
0x4000 8000 - 0x4000 BFFF |
Reserved |
|
|
0x4000 7C00 - 0x4000 7FFF |
Reserved |
|
|
0x4000 7800 - 0x4000 7BFF |
Reserved |
|
|
0x4000 7400 - 0x4000 77FF |
DAC |
|
|
0x4000 7000 - 0x4000 73FF |
PMU |
|
|
0x4000 6C00 - 0x4000 6FFF |
BKP |
|
|
0x4000 6800 - 0x4000 6BFF |
Reserved |
|
|
0x4000 6400 - 0x4000 67FF |
CAN0 |
Pre-defined Regions |
Bus |
Address |
Peripherals |
|
|
0x4000 6000 - 0x4000 63FF |
Shared USBD/CAN SRAM 512 bytes |
|
|
0x4000 5C00 - 0x4000 5FFF |
USBD |
|
|
0x4000 5800 - 0x4000 5BFF |
I2C1 |
|
|
0x4000 5400 - 0x4000 57FF |
I2C0 |
|
|
0x4000 5000 - 0x4000 53FF |
UART4 |
|
|
0x4000 4C00 - 0x4000 4FFF |
UART3 |
|
|
0x4000 4800 - 0x4000 4BFF |
USART2 |
|
|
0x4000 4400 - 0x4000 47FF |
USART1 |
|
|
0x4000 4000 - 0x4000 43FF |
Reserved |
|
|
0x4000 3C00 - 0x4000 3FFF |
SPI2/I2S2 |
|
|
0x4000 3800 - 0x4000 3BFF |
SPI1/I2S1 |
|
|
0x4000 3400 - 0x4000 37FF |
Reserved |
|
|
0x4000 3000 - 0x4000 33FF |
FWDGT |
|
|
0x4000 2C00 - 0x4000 2FFF |
WWDGT |
|
|
0x4000 2800 - 0x4000 2BFF |
RTC |
|
|
0x4000 2400 - 0x4000 27FF |
Reserved |
|
|
0x4000 2000 - 0x4000 23FF |
TIMER13 |
|
|
0x4000 1C00 - 0x4000 1FFF |
TIMER12 |
|
|
0x4000 1800 - 0x4000 1BFF |
TIMER11 |
|
|
0x4000 1400 - 0x4000 17FF |
TIMER6 |
|
|
0x4000 1000 - 0x4000 13FF |
TIMER5 |
|
|
0x4000 0C00 - 0x4000 0FFF |
TIMER4 |
|
|
0x4000 0800 - 0x4000 0BFF |
TIMER3 |
|
|
0x4000 0400 - 0x4000 07FF |
TIMER2 |
|
|
0x4000 0000 - 0x4000 03FF |
TIMER1 |
SRAM |
AHB |
0x2007 0000 - 0x3FFF FFFF |
Reserved |
|
|
0x2006 0000 - 0x2006 FFFF |
Reserved |
|
|
0x2003 0000 - 0x2005 FFFF |
Reserved |
|
|
0x2001 8000 - 0x2002 FFFF |
Reserved |
|
|
0x2000 0000 - 0x2001 7FFF |
SRAM |
Code |
AHB |
0x1FFF F810 - 0x1FFF FFFF |
Reserved |
|
|
0x1FFF F800 - 0x1FFF F80F |
Option Bytes |
|
|
0x1FFF F000 - 0x1FFF F7FF |
Boot loader |
|
|
0x1FFF C010 - 0x1FFF EFFF |
|
|
|
0x1FFF C000 - 0x1FFF C00F |
|
|
|
0x1FFF B000 - 0x1FFF BFFF |
|
|
|
0x1FFF 7A10 - 0x1FFF AFFF |
Reserved |
|
|
0x1FFF 7800 - 0x1FFF 7A0F |
Reserved |
|
|
0x1FFF 0000 - 0x1FFF 77FF |
Reserved |
|
Pre-defined Regions |
Bus |
Address |
Peripherals |
|
|
0x1FFE C010 - 0x1FFE FFFF |
Reserved |
|
0x1FFE C000 - 0x1FFE C00F |
Reserved |
|||
0x1001 0000 - 0x1FFE BFFF |
Reserved |
|||
0x1000 0000 - 0x1000 FFFF |
Reserved |
|||
0x083C 0000 - 0x0FFF FFFF |
Reserved |
|||
0x0830 0000 - 0x083B FFFF |
Reserved |
|||
0x0800 0000 - 0x082F FFFF |
Main Flash |
|||
0x0030 0000 - 0x07FF FFFF |
Reserved |
|||
0x0010 0000 - 0x002F FFFF |
Aliased to Main Flash or Boot loader |
|||
0x0002 0000 - 0x000F FFFF |
||||
0x0000 0000 - 0x0001 FFFF |
GD32F303Zx LQFP144 pin definitions
Table 2-4. GD32F303Zx LQFP144 pin definitions
Pin Name |
Pins |
Pin Type(1) |
I/O Level(2) |
Functions description |
PE2 |
1 |
I/O |
5VT |
Default: PE2 Alternate: TRACECK, EXMC_A23 |
PE3 |
2 |
I/O |
5VT |
Default: PE3 Alternate: TRACED0, EXMC_A19 |
PE4 |
3 |
I/O |
5VT |
Default: PE4 Alternate: TRACED1, EXMC_A20 |
PE5 |
4 |
I/O |
5VT |
Default: PE5 Alternate: TRACED2, EXMC_A21 Remap: TIMER8_CH0(3) |
PE6 |
5 |
I/O |
5VT |
Default: PE6 Alternate: TRACED3, EXMC_A22 Remap: TIMER8_CH1(3) |
VBAT |
6 |
P |
|
Default: VBAT |
PC13- TAMPER- RTC |
7 |
I/O |
|
Default: PC13 Alternate: TAMPER-RTC |
PC14- OSC32IN |
8 |
I/O |
|
Default: PC14 Alternate: OSC32IN |
PC15- OSC32OU T |
9 |
I/O |
|
Default: PC15 Alternate: OSC32OUT |
PF0 |
10 |
I/O |
5VT |
Default: PF0 Alternate: EXMC_A0 Remap: CTC_SYNC |
PF1 |
11 |
I/O |
5VT |
Default: PF1 Alternate: EXMC_A1 |
PF2 |
12 |
I/O |
5VT |
Default: PF2 Alternate: EXMC_A2 |
PF3 |
13 |
I/O |
5VT |
Default: PF3 Alternate: EXMC_A3 |
PF4 |
14 |
I/O |
5VT |
Default: PF4 Alternate: EXMC_A4 |
PF5 |
15 |
I/O |
5VT |
Default: PF5 Alternate: EXMC_A5 |
VSS_5 |
16 |
P |
|
Default: VSS_5 |
Pin Name |
Pins |
Pin Type(1) |
I/O Level(2) |
Functions description |
VDD_5 |
17 |
P |
|
Default: VDD_5 |
PF6 |
18 |
I/O |
|
Default: PF6 Alternate: ADC2_IN4, EXMC_NIORD Remap: TIMER9_CH0(3) |
PF7 |
19 |
I/O |
|
Default: PF7 Alternate: ADC2_IN5, EXMC_NREG Remap: TIMER10_CH0(3) |
PF8 |
20 |
I/O |
|
Default: PF8 Alternate: ADC2_IN6, EXMC_NIOWR Remap: TIMER12_CH0(3) |
PF9 |
21 |
I/O |
|
Default: PF9 Alternate: ADC2_IN7, EXMC_CD Remap: TIMER13_CH0(3) |
PF10 |
22 |
I/O |
|
Default: PF10 Alternate: ADC2_IN8, EXMC_INTR |
OSCIN |
23 |
I |
|
Default: OSCIN Remap: PD0 |
OSCOUT |
24 |
O |
|
Default: OSCOUT Remap: PD1 |
NRST |
25 |
I/O |
|
Default: NRST |
PC0 |
26 |
I/O |
|
Default: PC0 Alternate: ADC012_IN10 |
PC1 |
27 |
I/O |
|
Default: PC1 Alternate: ADC012_IN11 |
PC2 |
28 |
I/O |
|
Default: PC2 Alternate: ADC012_IN12 |
PC3 |
29 |
I/O |
|
Default: PC3 Alternate: ADC012_IN13 |
VSSA |
30 |
P |
|
Default: VSSA |
VREF- |
31 |
P |
|
Default: VREF- |
VREF+ |
32 |
P |
|
Default: VREF+ |
VDDA |
33 |
P |
|
Default: VDDA |
PA0-WKUP |
34 |
I/O |
|
Default: PA0 Alternate: WKUP, USART1_CTS, ADC012_IN0, TIMER1_CH0, TIMER1_ETI, TIMER4_CH0, TIMER7_ETI |
PA1 |
35 |
I/O |
|
Default: PA1 Alternate: USART1_RTS, ADC012_IN1, TIMER1_CH1, TIMER4_CH1 |
PA2 |
36 |
I/O |
|
Default: PA2 Alternate: USART1_TX, ADC012_IN2, TIMER1_CH2, TIMER4_CH2, TIMER8_CH0(3), SPI0_IO2 |
Pin Name |
Pins |
Pin Type(1) |
I/O Level(2) |
Functions description |
PA3 |
37 |
I/O |
|
Default: PA3 Alternate: USART1_RX, ADC012_IN3, TIMER1_CH3, TIMER4_CH3, TIMER8_CH1(3), SPI0_IO3 |
VSS_4 |
38 |
P |
|
Default: VSS_4 |
VDD_4 |
39 |
P |
|
Default: VDD_4 |
PA4 |
40 |
I/O |
|
Default: PA4 Alternate: SPI0_NSS, USART1_CK, ADC01_IN4, DAC_OUT0 Remap: SPI2_NSS, I2S2_WS |
PA5 |
41 |
I/O |
|
Default: PA5 Alternate: SPI0_SCK, ADC01_IN5, DAC_OUT1 |
PA6 |
42 |
I/O |
|
Default: PA6 Alternate: SPI0_MISO, ADC01_IN6, TIMER2_CH0, TIMER7_BRKIN, TIMER12_CH0(3) Remap: TIMER0_BRKIN |
PA7 |
43 |
I/O |
|
Default: PA7 Alternate: SPI0_MOSI, ADC01_IN7, TIMER2_CH1, TIMER7_CH0_ON, TIMER13_CH0(3) Remap: TIMER0_CH0_ON |
PC4 |
44 |
I/O |
|
Default: PC4 Alternate: ADC01_IN14 |
PC5 |
45 |
I/O |
|
Default: PC5 Alternate: ADC01_IN15 |
PB0 |
46 |
I/O |
|
Default: PB0 Alternate: ADC01_IN8, TIMER2_CH2, TIMER7_CH1_ON Remap: TIMER0_CH1_ON |
PB1 |
47 |
I/O |
|
Default: PB1 Alternate: ADC01_IN9, TIMER2_CH3, TIMER7_CH2_ON Remap: TIMER0_CH2_ON |
PB2 |
48 |
I/O |
5VT |
Default: PB2, BOOT1 |
PF11 |
49 |
I/O |
5VT |
Default: PF11 Alternate: EXMC_NIOS16 |
PF12 |
50 |
I/O |
5VT |
Default: PF12 Alternate: EXMC_A6 |
VSS_6 |
51 |
P |
|
Default: VSS_6 |
VDD_6 |
52 |
P |
|
Default: VDD_6 |
PF13 |
53 |
I/O |
5VT |
Default: PF13 Alternate: EXMC_A7 |
PF14 |
54 |
I/O |
5VT |
Default: PF14 Alternate: EXMC_A8 |
Pin Name |
Pins |
Pin Type(1) |
I/O Level(2) |
Functions description |
PF15 |
55 |
I/O |
5VT |
Default: PF15 Alternate: EXMC_A9 |
PG0 |
56 |
I/O |
5VT |
Default: PG0 Alternate: EXMC_A10 |
PG1 |
57 |
I/O |
5VT |
Default: PG1 Alternate: EXMC_A11 |
PE7 |
58 |
I/O |
5VT |
Default: PE7 Alternate: EXMC_D4 Remap: TIMER0_ETI |
PE8 |
59 |
I/O |
5VT |
Default: PE8 Alternate: EXMC_D5 Remap: TIMER0_CH0_ON |
PE9 |
60 |
I/O |
5VT |
Default: PE9 Alternate: EXMC_D6 Remap: TIMER0_CH0 |
VSS_7 |
61 |
P |
|
Default: VSS_7 |
VDD_7 |
62 |
P |
|
Default: VDD_7 |
PE10 |
63 |
I/O |
5VT |
Default: PE10 Alternate: EXMC_D7 Remap: TIMER0_CH1_ON |
PE11 |
64 |
I/O |
5VT |
Default: PE11 Alternate: EXMC_D8 Remap: TIMER0_CH1 |
PE12 |
65 |
I/O |
5VT |
Default: PE12 Alternate: EXMC_D9 Remap: TIMER0_CH2_ON |
PE13 |
66 |
I/O |
5VT |
Default: PE13 Alternate: EXMC_D10 Remap: TIMER0_CH2 |
PE14 |
67 |
I/O |
5VT |
Default: PE14 Alternate: EXMC_D11 Remap: TIMER0_CH3 |
PE15 |
68 |
I/O |
5VT |
Default: PE15 Alternate: EXMC_D12 Remap: TIMER0_BRKIN |
PB10 |
69 |
I/O |
5VT |
Default: PB10 Alternate: I2C1_SCL, USART2_TX Remap: TIMER1_CH2 |
PB11 |
70 |
I/O |
5VT |
Default: PB11 Alternate: I2C1_SDA, USART2_RX Remap: TIMER1_CH3 |
VSS_1 |
71 |
P |
|
Default: VSS_1 |
VDD_1 |
72 |
P |
|
Default: VDD_1 |
Pin Name |
Pins |
Pin Type(1) |
I/O Level(2) |
Functions description |
PB12 |
73 |
I/O |
5VT |
Default: PB12 Alternate: SPI1_NSS, I2C1_SMBA, USART2_CK, TIMER0_BRKIN, I2S1_WS |
PB13 |
74 |
I/O |
5VT |
Default: PB13 Alternate: SPI1_SCK, USART2_CTS, TIMER0_CH0_ON, I2S1_CK |
PB14 |
75 |
I/O |
5VT |
Default: PB14 Alternate: SPI1_MISO, USART2_RTS, TIMER0_CH1_ON, TIMER11_CH0(3) |
PB15 |
76 |
I/O |
5VT |
Default: PB15 Alternate: SPI1_MOSI, TIMER0_CH2_ON, I2S1_SD, TIMER11_CH1(3) |
PD8 |
77 |
I/O |
5VT |
Default: PD8 Alternate: EXMC_D13 Remap: USART2_TX |
PD9 |
78 |
I/O |
5VT |
Default: PD9 Alternate: EXMC_D14 Remap: USART2_RX |
PD10 |
79 |
I/O |
5VT |
Default: PD10 Alternate: EXMC_D15 Remap: USART2_CK |
PD11 |
80 |
I/O |
5VT |
Default: PD11 Alternate: EXMC_A16 Remap: USART2_CTS |
PD12 |
81 |
I/O |
5VT |
Default: PD12 Alternate: EXMC_A17 Remap: TIMER3_CH0, USART2_RTS |
PD13 |
82 |
I/O |
5VT |
Default: PD13 Alternate: EXMC_A18 Remap: TIMER3_CH1 |
VSS_8 |
83 |
P |
|
Default: VSS_8 |
VDD_8 |
84 |
P |
|
Default: VDD_8 |
PD14 |
85 |
I/O |
5VT |
Default: PD14 Alternate: EXMC_D0 Remap: TIMER3_CH2 |
PD15 |
86 |
I/O |
5VT |
Default: PD15 Alternate: EXMC_D1 Remap: TIMER3_CH3, CTC_SYNC |
PG2 |
87 |
I/O |
5VT |
Default: PG2 Alternate: EXMC_A12 |
PG3 |
88 |
I/O |
5VT |
Default: PG3 Alternate: EXMC_A13 |
PG4 |
89 |
I/O |
5VT |
Default: PG4 |
Pin Name |
Pins |
Pin Type(1) |
I/O Level(2) |
Functions description |
|
|
|
|
Alternate: EXMC_A14 |
PG5 |
90 |
I/O |
5VT |
Default: PG5 Alternate: EXMC_A15 |
PG6 |
91 |
I/O |
5VT |
Default: PG6 Alternate: EXMC_INT1 |
PG7 |
92 |
I/O |
5VT |
Default: PG7 Alternate: EXMC_INT2 |
PG8 |
93 |
I/O |
5VT |
Default: PG8 |
VSS_9 |
94 |
P |
|
Default: VSS_9 |
VDD_9 |
95 |
P |
|
Default: VDD_9 |
PC6 |
96 |
I/O |
5VT |
Default: PC6 Alternate: I2S1_MCK, TIMER7_CH0, SDIO_D6 Remap: TIMER2_CH0 |
PC7 |
97 |
I/O |
5VT |
Default: PC7 Alternate: I2S2_MCK, TIMER7_CH1, SDIO_D7 Remap: TIMER2_CH1 |
PC8 |
98 |
I/O |
5VT |
Default: PC8 Alternate: TIMER7_CH2, SDIO_D0 Remap: TIMER2_CH2 |
PC9 |
99 |
I/O |
5VT |
Default: PC9 Alternate: TIMER7_CH3, SDIO_D1 Remap: TIMER2_CH3 |
PA8 |
100 |
I/O |
5VT |
Default: PA8 Alternate: USART0_CK, TIMER0_CH0, CK_OUT0, CTC_SYNC |
PA9 |
101 |
I/O |
5VT |
Default: PA9 Alternate: USART0_TX, TIMER0_CH1 |
PA10 |
102 |
I/O |
5VT |
Default: PA10 Alternate: USART0_RX, TIMER0_CH2 |
PA11 |
103 |
I/O |
5VT |
Default: PA11 Alternate: USART0_CTS, CAN0_RX, USBDM, TIMER0_CH3 |
PA12 |
104 |
I/O |
5VT |
Default: PA12 Alternate: USART0_RTS, CAN0_TX, TIMER0_ETI, USBDP |
PA13 |
105 |
I/O |
5VT |
Default: JTMS, SWDIO Remap: PA13 |
NC |
106 |
- |
|
- |
VSS_2 |
107 |
P |
|
Default: VSS_2 |
VDD_2 |
108 |
P |
|
Default: VDD_2 |
PA14 |
109 |
I/O |
5VT |
Default: JTCK, SWCLK Remap: PA14 |
Pin Name |
Pins |
Pin Type(1) |
I/O Level(2) |
Functions description |
PA15 |
110 |
I/O |
5VT |
Default: JTDI Alternate: SPI2_NSS, I2S2_WS Remap: TIMER1_CH0, TIMER1_ETI, PA15, SPI0_NSS |
PC10 |
111 |
I/O |
5VT |
Default: PC10 Alternate: UART3_TX, SDIO_D2 Remap: USART2_TX, SPI2_SCK, I2S2_CK |
PC11 |
112 |
I/O |
5VT |
Default: PC11 Alternate: UART3_RX, SDIO_D3 Remap: USART2_RX, SPI2_MISO |
PC12 |
113 |
I/O |
5VT |
Default: PC12 Alternate: UART4_TX, SDIO_CK Remap: USART2_CK, SPI2_MOSI, I2S2_SD |
PD0 |
114 |
I/O |
5VT |
Default: PD0 Alternate: EXMC_D2 Remap: CAN0_RX, OSCIN |
PD1 |
115 |
I/O |
5VT |
Default: PD1 Alternate: EXMC_D3 Remap: CAN0_TX, OSCOUT |
PD2 |
116 |
I/O |
5VT |
Default: PD2 Alternate: TIMER2_ETI, SDIO_CMD, UART4_RX |
PD3 |
117 |
I/O |
5VT |
Default: PD3 Alternate: EXMC_CLK Remap: USART1_CTS |
PD4 |
118 |
I/O |
5VT |
Default: PD4 Alternate: EXMC_NOE Remap: USART1_RTS |
PD5 |
119 |
I/O |
5VT |
Default: PD5 Alternate: EXMC_NWE Remap: USART1_TX |
VSS_10 |
120 |
P |
|
Default: VSS_10 |
VDD_10 |
121 |
P |
|
Default: VDD_10 |
PD6 |
122 |
I/O |
5VT |
Default: PD6 Alternate: EXMC_NWAIT Remap: USART1_RX |
PD7 |
123 |
I/O |
5VT |
Default: PD7 Alternate: EXMC_NE0, EXMC_NCE1 Remap: USART1_CK |
PG9 |
124 |
I/O |
5VT |
Default: PG9 Alternate: EXMC_NE1, EXMC_NCE2 |
PG10 |
125 |
I/O |
5VT |
Default: PG10 Alternate: EXMC_NCE3_0, EXMC_NE2 |
PG11 |
126 |
I/O |
5VT |
Default: PG11 |
Pin Name |
Pins |
Pin Type(1) |
I/O Level(2) |
Functions description |
|
|
|
|
Alternate: EXMC_NCE3_1 |
PG12 |
127 |
I/O |
5VT |
Default: PG12 Alternate: EXMC_NE3 |
PG13 |
128 |
I/O |
5VT |
Default: PG13 Alternate: EXMC_A24 |
PG14 |
129 |
I/O |
5VT |
Default: PG14 Alternate: EXMC_A25 |
VSS_11 |
130 |
P |
|
Default: VSS_11 |
VDD_11 |
131 |
P |
|
Default: VDD_11 |
PG15 |
132 |
I/O |
5VT |
Default: PG15 |
PB3 |
133 |
I/O |
5VT |
Default: JTDO Alternate: SPI2_SCK, I2S2_CK Remap: PB3, TRACESWO, TIMER1_CH1, SPI0_SCK |
PB4 |
134 |
I/O |
5VT |
Default: NJTRST Alternate: SPI2_MISO Remap: TIMER2_CH0, PB4, SPI0_MISO |
PB5 |
135 |
I/O |
|
Default: PB5 Alternate: I2C0_SMBA, SPI2_MOSI, I2S2_SD Remap: TIMER2_CH1, SPI0_MOSI |
PB6 |
136 |
I/O |
5VT |
Default: PB6 Alternate: I2C0_SCL, TIMER3_CH0 Remap: USART0_TX, SPI0_IO2 |
PB7 |
137 |
I/O |
5VT |
Default: PB7 Alternate: I2C0_SDA, TIMER3_CH1, EXMC_NADV Remap: USART0_RX, SPI0_IO3 |
BOOT0 |
138 |
I |
|
Default: BOOT0 |
PB8 |
139 |
I/O |
5VT |
Default: PB8 Alternate: TIMER3_CH2, SDIO_D4, TIMER9_CH0(3) Remap: I2C0_SCL, CAN0_RX |
PB9 |
140 |
I/O |
5VT |
Default: PB9 Alternate: TIMER3_CH3, SDIO_D5, TIMER10_CH0(3) Remap: I2C0_SDA, CAN0_TX |
PE0 |
141 |
I/O |
5VT |
Default: PE0 Alternate: TIMER3_ETI, EXMC_NBL0 |
PE1 |
142 |
I/O |
5VT |
Default: PE1 Alternate: EXMC_NBL1 |
VSS_3 |
143 |
P |
|
Default: VSS_3 |
VDD_3 |
144 |
P |
|
Default: VDD_3 |
Notes:
(1)Type: I = input, O = output, P = power.
(2)I/O Level: 5VT = 5 V tolerant.
(3)Functions are available in GD32F303ZG/I/K devices.
GD32F303Vx LQFP100 pin definitions
Table 2-5. GD32F303Vx LQFP100 pin definitions
Pin Name |
Pins |
Pin Type(1) |
I/O Level(2) |
Functions description |
PE2 |
1 |
I/O |
5VT |
Default: PE2 Alternate: TRACECK, EXMC_A23 |
PE3 |
2 |
I/O |
5VT |
Default: PE3 Alternate: TRACED0, EXMC_A19 |
PE4 |
3 |
I/O |
5VT |
Default: PE4 Alternate: TRACED1, EXMC_A20 |
PE5 |
4 |
I/O |
5VT |
Default: PE5 Alternate: TRACED2, EXMC_A21 Remap: TIMER8_CH0(3) |
PE6 |
5 |
I/O |
5VT |
Default: PE6 Alternate: TRACED3, EXMC_A22 Remap: TIMER8_CH1(3) |
VBAT |
6 |
P |
|
Default: VBAT |
PC13- TAMPER- RTC |
7 |
I/O |
|
Default: PC13 Alternate: TAMPER-RTC |
PC14- OSC32IN |
8 |
I/O |
|
Default: PC14 Alternate: OSC32IN |
PC15- OSC32OU T |
9 |
I/O |
|
Default: PC15 Alternate: OSC32OUT |
VSS_5 |
10 |
P |
|
Default: VSS_5 |
VDD_5 |
11 |
P |
|
Default: VDD_5 |
OSCIN |
12 |
I |
|
Default: OSCIN Remap: PD0 |
OSCOUT |
13 |
O |
|
Default: OSCOUT Remap: PD1 |
NRST |
14 |
I/O |
|
Default: NRST |
PC0 |
15 |
I/O |
|
Default: PC0 Alternate: ADC012_IN10 |
PC1 |
16 |
I/O |
|
Default: PC1 Alternate: ADC012_IN11 |
PC2 |
17 |
I/O |
|
Default: PC2 Alternate: ADC012_IN12 |
PC3 |
18 |
I/O |
|
Default: PC3 Alternate: ADC012_IN13 |
VSSA |
19 |
P |
|
Default: VSSA |
VREF- |
20 |
P |
|
Default: VREF- |
Pin Name |
Pins |
Pin Type(1) |
I/O Level(2) |
Functions description |
VREF+ |
21 |
P |
|
Default: VREF+ |
VDDA |
22 |
P |
|
Default: VDDA |
|
|
|
|
Default: PA0 |
PA0-WKUP |
23 |
I/O |
|
Alternate: WKUP, USART1_CTS, ADC012_IN0, TIMER1_CH0, TIMER1_ETI, TIMER4_CH0, |
|
|
|
|
TIMER7_ETI |
|
|
|
|
Default: PA1 |
PA1 |
24 |
I/O |
|
Alternate: USART1_RTS, ADC012_IN1, TIMER1_CH1, |
|
|
|
|
TIMER4_CH1 |
|
|
|
|
Default: PA2 |
PA2 |
25 |
I/O |
|
Alternate: USART1_TX, ADC012_IN2, TIMER1_CH2, |
|
|
|
|
TIMER4_CH2, TIMER8_CH0(3), SPI0_IO2 |
|
|
|
|
Default: PA3 |
PA3 |
26 |
I/O |
|
Alternate: USART1_RX, ADC012_IN3, TIMER1_CH3, |
|
|
|
|
TIMER4_CH3, TIMER8_CH1(3), SPI0_IO3 |
VSS_4 |
27 |
P |
|
Default: VSS_4 |
VDD_4 |
28 |
P |
|
Default: VDD_4 |
|
|
|
|
Default: PA4 |
PA4 |
29 |
I/O |
|
Alternate: SPI0_NSS, USART1_CK, ADC01_IN4, DAC_OUT0 |
|
|
|
|
Remap: SPI2_NSS, I2S2_WS |
PA5 |
30 |
I/O |
|
Default: PA5 Alternate: SPI0_SCK, ADC01_IN5, DAC_OUT1 |
|
|
|
|
Default: PA6 |
PA6 |
31 |
I/O |
|
Alternate: SPI0_MISO, ADC01_IN6, TIMER2_CH0, TIMER7_BRKIN, TIMER12_CH0(3) |
|
|
|
|
Remap: TIMER0_BRKIN |
|
|
|
|
Default: PA7 |
PA7 |
32 |
I/O |
|
Alternate: SPI0_MOSI, ADC01_IN7, TIMER2_CH1, TIMER7_CH0_ON, TIMER13_CH0(3) |
|
|
|
|
Remap: TIMER0_CH0_ON |
PC4 |
33 |
I/O |
|
Default: PC4 Alternate: ADC01_IN14 |
PC5 |
34 |
I/O |
|
Default: PC5 Alternate: ADC01_IN15 |
|
|
|
|
Default: PB0 |
PB0 |
35 |
I/O |
|
Alternate: ADC01_IN8, TIMER2_CH2, TIMER7_CH1_ON |
|
|
|
|
Remap: TIMER0_CH1_ON |
|
|
|
|
Default: PB1 |
PB1 |
36 |
I/O |
|
Alternate: ADC01_IN9, TIMER2_CH3, TIMER7_CH2_ON |
|
|
|
|
Remap: TIMER0_CH2_ON |
Pin Name |
Pins |
Pin Type(1) |
I/O Level(2) |
Functions description |
PB2 |
37 |
I/O |
5VT |
Default: PB2, BOOT1 |
PE7 |
38 |
I/O |
5VT |
Default: PE7 Alternate: EXMC_D4 Remap: TIMER0_ETI |
PE8 |
39 |
I/O |
5VT |
Default: PE8 Alternate: EXMC_D5 Remap: TIMER0_CH0_ON |
PE9 |
40 |
I/O |
5VT |
Default: PE9 Alternate: EXMC_D6 Remap: TIMER0_CH0 |
PE10 |
41 |
I/O |
5VT |
Default: PE10 Alternate: EXMC_D7 Remap: TIMER0_CH1_ON |
PE11 |
42 |
I/O |
5VT |
Default: PE11 Alternate: EXMC_D8 Remap: TIMER0_CH1 |
PE12 |
43 |
I/O |
5VT |
Default: PE12 Alternate: EXMC_D9 Remap: TIMER0_CH2_ON |
PE13 |
44 |
I/O |
5VT |
Default: PE13 Alternate: EXMC_D10 Remap: TIMER0_CH2 |
PE14 |
45 |
I/O |
5VT |
Default: PE14 Alternate: EXMC_D11 Remap: TIMER0_CH3 |
PE15 |
46 |
I/O |
5VT |
Default: PE15 Alternate: EXMC_D12 Remap: TIMER0_BRKIN |
PB10 |
47 |
I/O |
5VT |
Default: PB10 Alternate: I2C1_SCL, USART2_TX Remap: TIMER1_CH2 |
PB11 |
48 |
I/O |
5VT |
Default: PB11 Alternate: I2C1_SDA, USART2_RX Remap: TIMER1_CH3 |
VSS_1 |
49 |
P |
|
Default: VSS_1 |
VDD_1 |
50 |
P |
|
Default: VDD_1 |
PB12 |
51 |
I/O |
5VT |
Default: PB12 Alternate: SPI1_NSS, I2C1_SMBA, USART2_CK, TIMER0_BRKIN, I2S1_WS |
PB13 |
52 |
I/O |
5VT |
Default: PB13 Alternate: SPI1_SCK, USART2_CTS, TIMER0_CH0_ON, I2S1_CK |
PB14 |
53 |
I/O |
5VT |
Default: PB14 |
Pin Name |
Pins |
Pin Type(1) |
I/O Level(2) |
Functions description |
|
|
|
|
Alternate: SPI1_MISO, USART2_RTS, TIMER0_CH1_ON, TIMER11_CH0(3) |
PB15 |
54 |
I/O |
5VT |
Default: PB15 Alternate: SPI1_MOSI, TIMER0_CH2_ON, I2S1_SD, TIMER11_CH1(3) |
PD8 |
55 |
I/O |
5VT |
Default: PD8 Alternate: EXMC_D13 Remap: USART2_TX |
PD9 |
56 |
I/O |
5VT |
Default: PD9 Alternate: EXMC_D14 Remap: USART2_RX |
PD10 |
57 |
I/O |
5VT |
Default: PD10 Alternate: EXMC_D15 Remap: USART2_CK |
PD11 |
58 |
I/O |
5VT |
Default: PD11 Alternate: EXMC_A16 Remap: USART2_CTS |
PD12 |
59 |
I/O |
5VT |
Default: PD12 Alternate: EXMC_A17 Remap: TIMER3_CH0, USART2_RTS |
PD13 |
60 |
I/O |
5VT |
Default: PD13 Alternate: EXMC_A18 Remap: TIMER3_CH1 |
PD14 |
61 |
I/O |
5VT |
Default: PD14 Alternate: EXMC_D0 Remap: TIMER3_CH2 |
PD15 |
62 |
I/O |
5VT |
Default: PD15 Alternate: EXMC_D1 Remap: TIMER3_CH3, CTC_SYNC |
PC6 |
63 |
I/O |
5VT |
Default: PC6 Alternate: I2S1_MCK, TIMER7_CH0, SDIO_D6 Remap: TIMER2_CH0 |
PC7 |
64 |
I/O |
5VT |
Default: PC7 Alternate: I2S2_MCK, TIMER7_CH1, SDIO_D7 Remap: TIMER2_CH1 |
PC8 |
65 |
I/O |
5VT |
Default: PC8 Alternate: TIMER7_CH2, SDIO_D0 Remap: TIMER2_CH2 |
PC9 |
66 |
I/O |
5VT |
Default: PC9 Alternate: TIMER7_CH3, SDIO_D1 Remap: TIMER2_CH3 |
PA8 |
67 |
I/O |
5VT |
Default: PA8 Alternate: USART0_CK, TIMER0_CH0, CK_OUT0, |
Pin Name |
Pins |
Pin Type(1) |
I/O Level(2) |
Functions description |
|
|
|
|
CTC_SYNC |
PA9 |
68 |
I/O |
5VT |
Default: PA9 Alternate: USART0_TX, TIMER0_CH1 |