General-Purpose I/O (Gpio); Table 30. Port Bit Configuration Table - STMicroelectronics RM0365 Reference Manual

Advanced arm-based 32-bit mcus
Table of Contents

Advertisement

General-purpose I/Os (GPIO)
MODER(i)
[1:0]
01
10
00
11
1. GP = general-purpose, PP = push-pull, PU = pull-up, PD = pull-down, OD = open-drain, AF = alternate
function.
10.3.1

General-purpose I/O (GPIO)

During and just after reset, the alternate functions are not active and most of the I/O ports
are configured in input floating mode.
The debug pins are in AF pull-up/pull-down after reset:
When the pin is configured as output, the value written to the output data register
(GPIOx_ODR) is output on the I/O pin. It is possible to use the output driver in push-pull
mode or open-drain mode (only the low level is driven, high level is HI-Z).
The input data register (GPIOx_IDR) captures the data present on the I/O pin at every AHB
clock cycle.
157/1080

Table 30. Port bit configuration table

OSPEEDR(i)
OTYPER(i)
[1:0]
0
0
0
0
SPEED
[1:0]
1
1
1
1
0
0
0
0
SPEED
[1:0]
1
1
1
1
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
DocID025202 Rev 7
PUPDR(i)
[1:0]
0
0
0
1
1
0
1
1
0
0
0
1
1
0
1
1
0
0
0
1
1
0
1
1
0
0
0
1
1
0
1
1
x
0
0
x
0
1
x
1
0
x
1
1
x
0
0
x
0
1
x
1
0
x
1
1
(1)
I/O configuration
GP output
PP
GP output
PP + PU
GP output
PP + PD
Reserved
GP output
OD
GP output
OD + PU
GP output
OD + PD
Reserved (GP output OD)
AF
PP
AF
PP + PU
AF
PP + PD
Reserved
AF
OD
AF
OD + PU
AF
OD + PD
Reserved
Input
Floating
Input
PU
Input
PD
Reserved (input floating)
Input/output
Analog
Reserved
RM0365

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the RM0365 and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents