DocID025832 Rev 2
STM32F042xx
Pinouts and pin descriptions
40
26
-
-
-
-
-
PB13
I/O
FTf
-
SPI2_SCK,
TIM1_CH1N,
I2C1_SCL
-
27
-
-
-
-
-
PB14
I/O
FTf
-
SPI2_MISO,
TIM1_CH2N,
I2C1_SDA
-
28
-
-
-
-
-
PB15
I/O
FT
-
SPI2_MOSI,
TIM1_CH3N
WKUP7,
RTC_REFIN
29
E2
18
18
-
-
PA8
I/O
FT
(3)
USART1_CK,
TIM1_CH1,
EVENTOUT, MCO,
CRS_SYNC
-
30
D1
19
19
19
17
PA9
I/O
FTf
USART1_TX,
TIM1_CH2,
TSC_G4_IO1,
I2C1_SCL
-
31
C1
20
20
20
18
PA10
I/O
FTf
USART1_RX,
TIM1_CH3,
TIM17_BKIN,
TSC_G4_IO2,
I2C1_SDA
-
32
C2
21
21 19
(4)
17
PA11
I/O
FTf
CAN_RX,
USART1_CTS,
TIM1_CH4,
COMP1_OUT,
TSC_G4_IO3,
EVENTOUT,
I2C1_SCL
USB_DM
33
A1
22
22 20
18
PA12
I/O
FTf
CAN_TX,USART1_RTS,
TIM1_ETR,
TSC_G4_IO4,
EVENTOUT,
I2C1_SDA
USB_DP
34
B1
23
23
21
19
PA13
I/O
FT
(3)
(5)
IR_OUT, SWDIO
USB_NOE
-
35
-
-
-
-
-
VSS
S
-
-
Ground
36
E1
17
17
18
16
VDDIO2
S
-
-
Digital power supply
Table 13. STM32F042x pin definitions (continued)
Pin numbers
Pin name
(function after
reset)
Pin
type
I/O structure
Notes
Pin functions
LQFP48/UFQFPN48
WLCSP36
LQFP32
UFQFPN32
UFQFPN28
TSSPOP20
Alternate function
Additional
functions