DocID025832 Rev 2
STM32F042xx
Functional overview
27
Figure 2. Clock tree
3.7
General-purpose inputs/outputs (GPIOs)
Each of the GPIO pins can be configured by software as output (push-pull or open-drain), as
input (with or without pull-up or pull-down) or as peripheral alternate function. Most of the
GPIO pins are shared with digital or analog alternate functions.
0+]
+6(26&
26&B,1
26&B287
26&B,1
26&B287
0+]
+6,5&
WR,:'*
3//
[[
[
3//08/
0&2
0DLQFORFN
RXWSXW
$+%
3//&/.
+6,
+6(
+&/.
3//&/.
WR$+%EXVFRUH
PHPRU\DQG'0$
WR$'&
FORFNLQSXW
/6(
/6,
+6,
+6,
+6(
WR57&
3//65&
6:
0&2
6<6&/.
57&&/.
57&6(/>@
6<6&/.
WR7,0
,I$3%SUHVFDOHU
[HOVH[
)/,7)&/.
WR)ODVK
+6,
0+]
+6,5&
+6,
/6(
WR,&
WR86$57
/6(
+6,
6<6&/.
3&/.
6<6&/.
+6,
3&/.
069
WR,6
WR&(&
WRFRUWH[6\VWHPWLPHU
)&/.&RUWH[IUHHUXQQLQJFORFN
WR$3%SHULSKHUDOV
&66
/6(26&
N+]
/6,5&
N+]
/6,
/6(
&56
0+]
+6,5&
+6,
35(',9
+6,
3//12',9
SURJUDPPLQJLQWHUIDFH
WR86%
3//&/.
+6,
0&235(
WR7,0
DV\QFKURQRXV
$+%
SUHVFDOHU
$3%
SUHVFDOHU