Spark Logic

GD32F103 pinout

GD32F103 is a GigaDevice Arm Cortex-M3 microcontroller family. The package map, ordering code and memory layout determine how to connect and configure each device.

LQFP48 48 contacts
LQFP64 64 contacts

LQFP100

100 contacts Current package

GigaDevice · GD32F103Vx · 100 leads

384 KiB Flash · 64 KiB SRAM

LQFP100 pinout

LQFP100
Top view. Pin 1 is beside the corner mark. Numbers advance counterclockwise. Scroll the map to reach all contacts.
Selected pin details

39 · PE8

Bidirectional · GPIO

General-purpose port E, bit 8. See the package table for peripheral assignments and input tolerance.

GD32F103xx datasheet Rev. 3.3, Table 2-6

Electrical limits · Link to this pin

All 100 pins

PinSignalDirectionFunction
1PE2 BidirectionalBidirectional General-purpose port E, bit 2. See the package table for peripheral assignments and input tolerance.
2PE3 BidirectionalBidirectional General-purpose port E, bit 3. See the package table for peripheral assignments and input tolerance.
3PE4 BidirectionalBidirectional General-purpose port E, bit 4. See the package table for peripheral assignments and input tolerance.
4PE5 BidirectionalBidirectional General-purpose port E, bit 5. See the package table for peripheral assignments and input tolerance.
5PE6 BidirectionalBidirectional General-purpose port E, bit 6. See the package table for peripheral assignments and input tolerance.
6VBAT Supply inputSupply input RTC and backup-domain supply. In a single-supply design, connect it to VDD with its own bypass capacitor.
7PC13 BidirectionalBidirectional General-purpose port C, bit 13. See the package table for peripheral assignments and input tolerance.
8PC14 BidirectionalBidirectional GPIO or low-speed external oscillator input (OSC32IN).
9PC15 BidirectionalBidirectional GPIO or low-speed external oscillator output (OSC32OUT).
10VSS_5 ReturnReturn Digital ground. Connect every VSS lead to the ground plane.
11VDD_5 Supply inputSupply input Digital supply. Connect every VDD lead and place a local 100 nF bypass at each supply pair.
12OSCIN-PD0 Input at resetInput at reset Default high-speed oscillator input. The remap option exposes PD0 on this contact.
13OSCOUT-PD1 Output at resetOutput at reset Default high-speed oscillator output. The remap option exposes PD1 on this contact.
14NRST BidirectionalBidirectional Active-low system reset. Route it to the probe for connection under reset.
15PC0 BidirectionalBidirectional General-purpose port C, bit 0. See the package table for peripheral assignments and input tolerance.
16PC1 BidirectionalBidirectional General-purpose port C, bit 1. See the package table for peripheral assignments and input tolerance.
17PC2 BidirectionalBidirectional General-purpose port C, bit 2. See the package table for peripheral assignments and input tolerance.
18PC3 BidirectionalBidirectional General-purpose port C, bit 3. See the package table for peripheral assignments and input tolerance.
19VSSA ReturnReturn Analog ground. Connect it to the ground plane shared with VSS.
20VREFN Analog returnAnalog return Negative converter reference. Connect it to VSSA.
21VREFP Analog inputAnalog input Positive converter reference. For a 3.3 V full-scale design, connect it to VDDA and decouple it to VREFN.
22VDDA Supply inputSupply input Analog supply for the ADC, clock and reset circuitry. Feed it from the VDD supply and bypass it to VSSA.
23PA0 BidirectionalBidirectional General-purpose port A, bit 0. See the package table for peripheral assignments and input tolerance.
24PA1 BidirectionalBidirectional General-purpose port A, bit 1. See the package table for peripheral assignments and input tolerance.
25PA2 BidirectionalBidirectional General-purpose port A, bit 2. See the package table for peripheral assignments and input tolerance.
26PA3 BidirectionalBidirectional General-purpose port A, bit 3. See the package table for peripheral assignments and input tolerance.
27VSS_4 ReturnReturn Digital ground. Connect every VSS lead to the ground plane.
28VDD_4 Supply inputSupply input Digital supply. Connect every VDD lead and place a local 100 nF bypass at each supply pair.
29PA4 BidirectionalBidirectional GPIO and SPI0_NSS in the PA4–PA7 assignment.
30PA5 BidirectionalBidirectional GPIO and SPI0_SCK in the PA4–PA7 assignment.
31PA6 BidirectionalBidirectional GPIO and SPI0_MISO in the PA4–PA7 assignment.
32PA7 BidirectionalBidirectional GPIO and SPI0_MOSI in the PA4–PA7 assignment.
33PC4 BidirectionalBidirectional General-purpose port C, bit 4. See the package table for peripheral assignments and input tolerance.
34PC5 BidirectionalBidirectional General-purpose port C, bit 5. See the package table for peripheral assignments and input tolerance.
35PB0 BidirectionalBidirectional General-purpose port B, bit 0. See the package table for peripheral assignments and input tolerance.
36PB1 BidirectionalBidirectional General-purpose port B, bit 1. See the package table for peripheral assignments and input tolerance.
37PB2 BidirectionalBidirectional GPIO and BOOT1 strap. BOOT0 low selects main Flash regardless of BOOT1.
38PE7 BidirectionalBidirectional General-purpose port E, bit 7. See the package table for peripheral assignments and input tolerance.
39PE8 BidirectionalBidirectional General-purpose port E, bit 8. See the package table for peripheral assignments and input tolerance.
40PE9 BidirectionalBidirectional General-purpose port E, bit 9. See the package table for peripheral assignments and input tolerance.
41PE10 BidirectionalBidirectional General-purpose port E, bit 10. See the package table for peripheral assignments and input tolerance.
42PE11 BidirectionalBidirectional General-purpose port E, bit 11. See the package table for peripheral assignments and input tolerance.
43PE12 BidirectionalBidirectional General-purpose port E, bit 12. See the package table for peripheral assignments and input tolerance.
44PE13 BidirectionalBidirectional General-purpose port E, bit 13. See the package table for peripheral assignments and input tolerance.
45PE14 BidirectionalBidirectional General-purpose port E, bit 14. See the package table for peripheral assignments and input tolerance.
46PE15 BidirectionalBidirectional General-purpose port E, bit 15. See the package table for peripheral assignments and input tolerance.
47PB10 BidirectionalBidirectional General-purpose port B, bit 10. See the package table for peripheral assignments and input tolerance.
48PB11 BidirectionalBidirectional General-purpose port B, bit 11. See the package table for peripheral assignments and input tolerance.
49VSS_1 ReturnReturn Digital ground. Connect every VSS lead to the ground plane.
50VDD_1 Supply inputSupply input Digital supply. Connect every VDD lead and place a local 100 nF bypass at each supply pair.
51PB12 BidirectionalBidirectional General-purpose port B, bit 12. See the package table for peripheral assignments and input tolerance.
52PB13 BidirectionalBidirectional General-purpose port B, bit 13. See the package table for peripheral assignments and input tolerance.
53PB14 BidirectionalBidirectional General-purpose port B, bit 14. See the package table for peripheral assignments and input tolerance.
54PB15 BidirectionalBidirectional General-purpose port B, bit 15. See the package table for peripheral assignments and input tolerance.
55PD8 BidirectionalBidirectional General-purpose port D, bit 8. See the package table for peripheral assignments and input tolerance.
56PD9 BidirectionalBidirectional General-purpose port D, bit 9. See the package table for peripheral assignments and input tolerance.
57PD10 BidirectionalBidirectional General-purpose port D, bit 10. See the package table for peripheral assignments and input tolerance.
58PD11 BidirectionalBidirectional General-purpose port D, bit 11. See the package table for peripheral assignments and input tolerance.
59PD12 BidirectionalBidirectional General-purpose port D, bit 12. See the package table for peripheral assignments and input tolerance.
60PD13 BidirectionalBidirectional General-purpose port D, bit 13. See the package table for peripheral assignments and input tolerance.
61PD14 BidirectionalBidirectional General-purpose port D, bit 14. See the package table for peripheral assignments and input tolerance.
62PD15 BidirectionalBidirectional General-purpose port D, bit 15. See the package table for peripheral assignments and input tolerance.
63PC6 BidirectionalBidirectional General-purpose port C, bit 6. See the package table for peripheral assignments and input tolerance.
64PC7 BidirectionalBidirectional General-purpose port C, bit 7. See the package table for peripheral assignments and input tolerance.
65PC8 BidirectionalBidirectional General-purpose port C, bit 8. See the package table for peripheral assignments and input tolerance.
66PC9 BidirectionalBidirectional General-purpose port C, bit 9. See the package table for peripheral assignments and input tolerance.
67PA8 BidirectionalBidirectional General-purpose port A, bit 8. See the package table for peripheral assignments and input tolerance.
68PA9 BidirectionalBidirectional GPIO and USART0 transmit. Select the USART0 assignment before driving the line as TX.
69PA10 BidirectionalBidirectional GPIO and USART0 receive. Select the USART0 assignment to receive on this line.
70PA11 BidirectionalBidirectional General-purpose port A, bit 11. See the package table for peripheral assignments and input tolerance.
71PA12 BidirectionalBidirectional General-purpose port A, bit 12. See the package table for peripheral assignments and input tolerance.
72PA13 BidirectionalBidirectional Serial Wire Debug data (SWDIO). Reserve this signal while using the debug port.
73NC UnconnectedUnconnected Leave this package lead unconnected.
74VSS_2 ReturnReturn Digital ground. Connect every VSS lead to the ground plane.
75VDD_2 Supply inputSupply input Digital supply. Connect every VDD lead and place a local 100 nF bypass at each supply pair.
76PA14 Input in SWD modeInput in SWD mode Serial Wire Debug clock (SWCLK). The probe drives this line.
77PA15 BidirectionalBidirectional General-purpose port A, bit 15. See the package table for peripheral assignments and input tolerance.
78PC10 BidirectionalBidirectional General-purpose port C, bit 10. See the package table for peripheral assignments and input tolerance.
79PC11 BidirectionalBidirectional General-purpose port C, bit 11. See the package table for peripheral assignments and input tolerance.
80PC12 BidirectionalBidirectional General-purpose port C, bit 12. See the package table for peripheral assignments and input tolerance.
81PD0 BidirectionalBidirectional General-purpose port D, bit 0. See the package table for peripheral assignments and input tolerance.
82PD1 BidirectionalBidirectional General-purpose port D, bit 1. See the package table for peripheral assignments and input tolerance.
83PD2 BidirectionalBidirectional General-purpose port D, bit 2. See the package table for peripheral assignments and input tolerance.
84PD3 BidirectionalBidirectional General-purpose port D, bit 3. See the package table for peripheral assignments and input tolerance.
85PD4 BidirectionalBidirectional General-purpose port D, bit 4. See the package table for peripheral assignments and input tolerance.
86PD5 BidirectionalBidirectional General-purpose port D, bit 5. See the package table for peripheral assignments and input tolerance.
87PD6 BidirectionalBidirectional General-purpose port D, bit 6. See the package table for peripheral assignments and input tolerance.
88PD7 BidirectionalBidirectional General-purpose port D, bit 7. See the package table for peripheral assignments and input tolerance.
89PB3 BidirectionalBidirectional General-purpose port B, bit 3. See the package table for peripheral assignments and input tolerance.
90PB4 BidirectionalBidirectional General-purpose port B, bit 4. See the package table for peripheral assignments and input tolerance.
91PB5 BidirectionalBidirectional General-purpose port B, bit 5. See the package table for peripheral assignments and input tolerance.
92PB6 BidirectionalBidirectional GPIO and I2C0_SCL in the PB6/PB7 assignment.
93PB7 BidirectionalBidirectional GPIO and I2C0_SDA in the PB6/PB7 assignment.
94BOOT0 InputInput Sampled at reset. Hold low for normal execution from main Flash.
95PB8 BidirectionalBidirectional General-purpose port B, bit 8. See the package table for peripheral assignments and input tolerance.
96PB9 BidirectionalBidirectional General-purpose port B, bit 9. See the package table for peripheral assignments and input tolerance.
97PE0 BidirectionalBidirectional General-purpose port E, bit 0. See the package table for peripheral assignments and input tolerance.
98PE1 BidirectionalBidirectional General-purpose port E, bit 1. See the package table for peripheral assignments and input tolerance.
99VSS_3 ReturnReturn Digital ground. Connect every VSS lead to the ground plane.
100VDD_3 Supply inputSupply input Digital supply. Connect every VDD lead and place a local 100 nF bypass at each supply pair.

Signal assignments

USART0 on PA9/PA10

PA9 transmits to the remote receiver. PA10 receives from the remote transmitter. Use the asynchronous two-wire mode for a basic console.

SPI0 on PA4–PA7

PA4 is NSS, PA5 is clock, PA6 is MISO and PA7 is MOSI. Match the peripheral’s clock polarity, phase, chip select and voltage before exchanging data.

I²C0 on PB6/PB7

PB6 is SCL and PB7 is SDA. Use open-drain operation and pull both lines to the common logic rail. Size the pull-ups for bus capacitance and rise time.

Electrical limits

ParameterLimitConditions and source
Flash organization256 KiB code / 128 KiB data256 KiB code / 128 KiB data Flash is distinct from SRAM. Check the memory mapping before assigning linker regions. GD32F103xx datasheet Rev. 3.3, Table 2-2
Serial peripherals3 USART, 2 UART, 3 SPI, 2 I²C, 1 CAN, 1 USBD, 1 SDIO3 USART, 2 UART, 3 SPI, 2 I²C, 1 CAN, 1 USBD, 1 SDIO These are peripheral counts. Each interface assignment still depends on the available package pins. GD32F103xx datasheet Rev. 3.3, Table 2-2
ROM serial bootUSART0USART0 USART0 uses PA9/PA10. For codes that support it, USART1 uses PA2/PA3. GD32F103xx datasheet Rev. 3.3, §3.4
VDD and VDDA2.6–3.6 V2.6–3.6 V Use the same source for the digital and analog rails. 3.3 V is the nominal test supply. GD32F103xx datasheet Rev. 3.3, Table 4-2
VBAT1.8–3.6 V1.8–3.6 V Backup-domain supply. Connect to VDD in the single-supply circuit. GD32F103xx datasheet Rev. 3.3, §3.3
Maximum HCLK108 MHz108 MHz Follow the clock-tree and bus prescaler limits separately. GD32F103xx datasheet Rev. 3.3, Table 4-3

Models and documents

Interactive maps cover LQFP48, LQFP64 and LQFP100. See Figures 2-3 and 2-7 of the datasheet for LQFP144 and QFN36. Match the suffix on the chip. Board headers and regulator connections depend on the PCB.

GD32F103V8T6
64 KiB Flash · 20 KiB SRAM
GD32F103VBT6
128 KiB Flash · 20 KiB SRAM
GD32F103VCT6
256 KiB Flash · 48 KiB SRAM
GD32F103VDT6
384 KiB Flash · 64 KiB SRAM
GD32F103VET6
512 KiB Flash · 64 KiB SRAM
GD32F103VFT6
768 KiB Flash · 96 KiB SRAM
GD32F103VGT6
1024 KiB Flash · 96 KiB SRAM
GD32F103VIT6
2048 KiB Flash · 96 KiB SRAM
GD32F103VKT6
3072 KiB Flash · 96 KiB SRAM