
DocID024597 Rev 5
297/1830
RM0351
General-purpose I/Os (GPIO)
308
Figure 26. Output configuration
8.3.11
Alternate function configuration
When the I/O port is programmed as alternate function:
•
The output buffer can be configured in open-drain or push-pull mode
•
The output buffer is driven by the signals coming from the peripheral (transmitter
enable and data)
•
The Schmitt trigger input is activated
•
The weak pull-up and pull-down resistors are activated or not depending on the value
in the GPIOx_PUPDR register
•
The data present on the I/O pin are sampled into the input data register every AHB
clock cycle
•
A read access to the input data register gets the I/O state
Note:
The alternate function configuration described above is not applied when the selected
alternate function is a LCD function or a SWPMI_IO. In this case, the I/O, programmed as
an alternate function output, is configured as described in the analog configuration.
shows the Alternate function configuration
of the I/O port bit.
3XVKSXOORU
2SHQGUDLQ
2XWSXW
FRQWURO
9
'',2[
9
66
77/6FKPLWW
WULJJHU
RQ
,QSXWGULYHU
2XWSXWGULYHU
3026
1026
,QSX
W
GDW
D
U
HJLV
WHU
2XWSX
W
G
DWD
UHJLV
WHU
5HDGZULWH
5HDG
%L
WVH
WUHVH
W
UHJLV
WHU
V
:ULWH
RQRII
SXOO
SXOO
RQRII
9
'',2[
9
66
9
66
9
'',2[
SURWHFWLRQ
GLRGH
SURWHFWLRQ
GLRGH
GRZQ
XS
,2SLQ
069