RM0090
Each I/O port bit is freely programmable, however the I/O port registers have to be accessed
as 32-bit words, half-words or bytes. The purpose of the GPIOx_BSRR register is to allow
atomic read/modify accesses to any of the GPIO registers. In this way, there is no risk of an
IRQ occurring between the read and the modify access.
Figure 17
port bit configurations.
Figure 17. Basic structure of a five-volt tolerant I/O port bit
To on-chip
peripheral
Read
Write
Read/write
From on-chip
peripheral
1. V
DD_FT
Table 28.
MODER(i)
[1:0]
01
shows the basic structure of a 5 V tolerant I/O port bit.
Analog
Alternate function input
Alternate function output
is a potential specific to five-volt tolerant I/Os and different from V
Port bit configuration table
OSPEEDR(i)
OTYPER(i)
0
0
0
0
SPEED
[B:A]
1
1
1
1
Doc ID 018909 Rev 4
on/off
TTL Schmitt
trigger
Input driver
Output driver
Output
control
V
(1)
PUPDR(i)
[B:A]
[1:0]
0
0
0
1
1
0
1
1
0
0
0
1
1
0
1
1
General-purpose I/Os (GPIO)
Table 32
gives the possible
V
DD
on/off
V
DD
on/off
down
P-MOS
V
SS
N-MOS
SS
Push-pull,
open-drain or
disabled
Analog
.
DD
I/O configuration
GP output
GP output
GP output
Reserved
GP output
GP output
GP output
Reserved (GP output OD)
(1)
V
DD_FT
Protection
diode
Pull
up
I/O pin
Protection
Pull
diode
V
SS
ai15939b
PP
PP + PU
PP + PD
OD
OD + PU
OD + PD
186/1422
Need help?
Do you have a question about the STM32F40 Series and is the answer not in the manual?
Questions and answers