STM32F103x4, STM32F103x6
Table 5.
Pins
LQFP48/
VFQFPN48
VFQFPN36
TFBGA64
LQFP64
Pin name
Type
(1)
Pinouts and pin description
Low-density STM32F103xx pin definitions (continued)
I / O Level
(2)
Alternate functions
(4)
Main
function
(3)
(after reset)
OSC_IN
(9)
Default
Remap
5
6
5
6
54
C1
D1
B5
A5
2
3
-
30
PD0
PD1
PD2
PB3
I/O FT
I/O FT OSC_OUT
(9)
I/O FT
I/O FT
PD2
JTDO
TIM3_ETR
TIM2_CH2 / PB3/
TRACESWO
SPI1_SCK
TIM3_CH1 /PB4
SPI1_MISO
I2C1_SMBA
I2C1_SCL
(8)
/
I2C1_SDA
(8)
TIM3_CH2 /
SPI1_MOSI
USART1_TX
USART1_RX
39
55
40
41
42
43
44
45
46
47
48
56
57
58
59
60
61
62
63
64
A4
C4
D3
C3
B4
B3
A3
D4
E4
31
32
33
34
35
-
-
36
1
PB4
PB5
PB6
PB7
BOOT0
PB8
PB9
V
SS_3
V
DD_3
I/O FT
I/O
I/O FT
I/O FT
I
I/O FT
I/O FT
S
S
NJTRST
PB5
PB6
PB7
BOOT0
PB8
PB9
V
SS_3
V
DD_3
I2C1_SCL
/CAN_RX
I2C1_SDA /
CAN_TX
1. I = input, O = output, S = supply.
2. FT = 5 V tolerant.
3. Function availability depends on the chosen device. For devices having reduced peripheral counts, it is always the lower
number of peripheral that is included. For example, if a device has only one SPI and two USARTs, they will be called SPI1
and USART1 & USART2, respectively. Refer to
4. If several peripherals share the same I/O pin, to avoid conflict between these alternate functions only one peripheral should
be enabled at a time through the peripheral clock enable bit (in the corresponding RCC peripheral clock enable register).
5. PC13, PC14 and PC15 are supplied through the power switch. Since the switch only sinks a limited amount of current
(3 mA), the use of GPIOs PC13 to PC15 in output mode is limited: the speed should not exceed 2 MHz with a maximum
load of 30 pF and these IOs must not be used as a current source (e.g. to drive an LED).
6. Main function after the first backup domain power-up. Later on, it depends on the contents of the Backup registers even
after reset (because these registers are not reset by the main reset). For details on how to manage these IOs, refer to the
Battery backup domain and BKP register description sections in the STM32F10xxx reference manual, available from the
STMicroelectronics website: www.st.com.
7. Unlike in the LQFP64 package, there is no PC3 in the TFBGA64 package. The V
REF+
functionality is provided instead.
8. This alternate function can be remapped by software to some other port pins (if available on the used package). For more
details, refer to the Alternate function I/O and debug configuration section in the STM32F10xxx reference manual, available
from the STMicroelectronics website: www.st.com.
9. The pins number 2 and 3 in the VFQFPN36 package, 5 and 6 in the LQFP48 and LQFP64 packages and C1 and C2 in the
TFBGA64 package are configured as OSC_IN/OSC_OUT after reset, however the functionality of PD0 and PD1 can be
remapped by software on these pins. For more details, refer to the Alternate function I/O and debug configuration section in
the STM32F10xxx reference manual.
Doc ID 15060 Rev 5
27/87