Pack
age
AN4488
2
4/5
A
N44
88 Rev 7
4.3 Alternate
Function
Each pin of the MCU can be configured to multiple functions. These functions are selected by software.
The full description of I/O alternate functions is described in the datasheet of the selected device and the register, which allow the
pin configuration, are described in the reference manual.
In order to easily explore Peripheral Alternate Functions mapping to pins, it is recommended to use the STM32CubeMX tool
available on
www.st.com
.
Table 5. Alternate function
Port
AF0
AF1
AF2
AF3
AF4
AF5
AF6
AF7
AF8
AF9
AF10
AF11
AF12
AF13
AF14 AF15
SYS
TIM1/2
TIM3/4
/5
TIM8/9
/10/11
I2C1/2/
3
SPI1/2/
3/4/5/6
SPI2/3/
SAI1
SPI2/3/
USAR
T1/2/3
USA
RT6/
UAR
T4/5/
CAN1/2
/TIM12/
13/14/
QUAD
QUADS
PI/OTG
2_HS/O
TG1_F
ETH
FMC/
SDIO/
OTG2
_
DCMI/
DSI
HOST
LCD
SYS
Port B
PB0
-
TIM1_
CH2N
TIM3_
CH3
TIM8_
CH2N
-
-
-
-
-
LCD_R3
OTG_HS_
ULPI_D1
ETH_MII_
RXD2
-
-
LCD_
G1
EVENT
OUT
PB11
-
TIM2_
CH4
-
-
I2C2_
SDA
-
USART3
_RX
-
OTG_HS
_ULPI_D4
ETH_MII_
TX_EN/
ETH_RMII_
TX_EN
-
DSI
HOST
_TE
LCD_
G5
EVENT
OUT
PB12
-
TIM1_
BKIN
-
-
I2C2_SM
BA
SPI2_
NSS/
I2S2_WS
-
USART3
_CK
-
CAN2_RX
OTG_HS_
ULPI_D5
ETH_MII_
TXD0/
ETH_RMII_
TXD0
OTG_
HS_ID
-
-
EVENT
OUT
PB13
-
TIM1_
CH1N
-
-
-
SPI2_
SCK/
I2S2_CK
-
USART3
_CTS
-
CAN2_TX
OTG_HS_
ULPI_D6
ETH_MII_
TXD1/ETH_
RMII_TXD1
-
-
-
EVENT
OUT
PB14
-
TIM1_
CH2N
-
TIM8_
CH2N
-
SPI2_MIS
O
I2S2ext_
SD
USART3
_RTS
-
TIM12_C
H1
-
-
OTG_
HS_DM
-
-
EVENT
OUT
PB15
RTC_
REFIN
TIM1_
CH3N
-
TIM8_
CH3N
-
SPI2_
MOSI/
I2S2_SD
-
-
-
TIM12_C
H2
-
-
OTG_H
S_DP
-
-
EVENT
‘OUT