DocID025832 Rev 5
17/117
STM32F042x4 STM32F042x6
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.
06Y9
26&B,1
26&B287
26&B,1
26&B287
,:'*
3//08/
0&2
0DLQFORFN
RXWSXW
3//&/.
+6,
+6(
+&/.
3//&/.
$+%FRUHPHPRU\'0$
&RUWH[)&/.IUHHUXQFORFN
$'&
DV\QFKURQRXV
FORFNLQSXW
/6(
/6,
+6,
+6(
57&
3//65&
6:
0&2
57&&/.
57&6(/
6<6&/.
7,0
)/,7)&/.
)ODVKPHPRU\
SURJUDPPLQJ
LQWHUIDFH
+6,
+6,
/6(
,&
86$57
/6(
+6,
6<6&/.
3&/.
6<6&/.
+6,
3&/.
,6
&(&
&RUWH[
V\VWHPWLPHU
$3%
SHULSKHUDOV
/6,
/6(
35(',9
+6,
3//12',9
86%
3//&/.
+6,
0&235(
WR7,0
/6(
+6(
/6(
6<1&
&66
7ULP
/HJHQG
ZKLWH
FORFNWUHHFRQWUROHOHPHQW
FORFNOLQH
FRQWUROOLQH
EODFN
FORFNWUHHHOHPHQW
0+]
+6(26&
0+]5&
+6,
«
«
0+]
+6,5&
N+]
/6(26&
N+]
/6,5&
3//
[[
[
0+]
+6,5&
[[
86%6:
86$576:
335(
335(
+35(
&(&6:
,&6:
6<6&/.
86%62)
&56
+6,
+6,
+6,
+6,
+6,
6<1&65&