Pinouts and pin descriptions
STM32F042xx
DocID025832 Rev 2
14
C3
10
10
10
10
PA4
I/O
TTa
-
SPI1_NSS, I2S1_WS,
TIM14_CH1,
TSC_G2_IO1,
USART2_CK
USB_NOE
ADC_IN4
15
D3
11
11
11
11
PA5
I/O
TTa
-
SPI1_SCK, I2S1_CK,
CEC,
TIM2_CH1_ETR,
TSC_G2_IO2
ADC_IN5
16
E3
12
12
12
12
PA6
I/O
TTa
-
SPI1_MISO, I2S1_MCK,
TIM3_CH1, TIM1_BKIN,
TIM16_CH1,
TSC_G2_IO3,
EVENTOUT
ADC_IN6
17
F4
13
13
13
13
PA7
I/O
TTa
-
SPI1_MOSI, I2S1_SD,
TIM3_CH2, TIM14_CH1,
TIM1_CH1N,
TIM17_CH1,
TSC_G2_IO4,
EVENTOUT
ADC_IN7
18
F3
14
14
14
-
PB0
I/O
TTa
-
TIM3_CH3,
TIM1_CH2N,
TSC_G3_IO2,
EVENTOUT
ADC_IN8
19
F2
15
15
15
14
PB1
I/O
TTa
-
TIM3_CH4, TIM14_CH1,
TIM1_CH3N,
TSC_G3_IO3
ADC_IN9
20
D2
-
16
-
-
PB2
I/O
FT
-
TSC_G3_IO4
-
21
-
-
-
-
-
PB10
I/O
FTf
-
SPI2_SCK, CEC,
TSC_SYNC, TIM2_CH3,
I2C1_SCL
-
22
-
-
-
-
-
PB11
I/O
FTf
-
TIM2_CH4,
EVENTOUT,
I2C1_SDA
-
23
F1
16
0
16
15
VSS
S
-
-
Ground
24
-
-
-
17
16
VDD
S
-
-
Digital power supply
25
-
-
-
-
-
PB12
I/O
FT
-
TIM1_BKIN, SPI2_NSS,
EVENTOUT
-
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