4.5 General Purpose Input/Output (GPIO)
General-purpose and alternate-function I/Os (GPIOs and AFIOs)
4.5.2 Driver
Figure 9.
To on-chip
peripheral
Read
Write
Read/write
From on-chip
peripheral
Figure 10. Basic structure of a five-volt tolerant I/O port bit
4.5.3 Set Output
To on-chip
peripheral
GPIOB
ODR = ( GPIOB
Read
GPIOB
Write
4.5.4 Read Input
i np ut = (GPIOA
Read/write
From on-chip
peripheral
1. V
DD_FT
96/682
Lukas Kohler
Basic structure of a standard I/O port bit
Analog Input
Alternate Function Input
Alternate Function Output
Analog Input
Alternate Function Input
ODR & 0 xFFFF0000 )
IDR & 0 x0000FFFF ) ;
Alternate Function Output
is a potential specific to five-volt tolerant I/Os and different from V
on/off
TTL Schmitt
trigger
Input driver
Output driver
Output
control
Figure 4.2: GPIO driver
Listing 4.4: Set Output
on/off
yourValue ;
TTL Schmitt
trigger
Input driver
Output driver
Listing 4.5: Read Input
Output
// read i n p u t s on GPIOA
control
V
DD
on/off
V
on/off
V
SS
V
DD
P-MOS
V
N-MOS
V
SS
Push-pull,
open-drain or
disabled
V
DD
on/off
// puts yourValue on
V
DD_FT
on/off
V
SS
V
DD
P-MOS
V
N-MOS
V
SS
Push-pull,
open-drain or
disabled
.
DD
RM0008
2
Electrocardio
The Electrocardiogram
• Ecg: electrical ma
DD
from the body surfa
Protection
diode
• monitoring of heart
I/O pin
Protection
diode
SS
The Ecg signal can b
electrodes placed on the l
below.
ai14781
(1)
I/O pin
Protection
diode
SS
Josef Goette
ai14782
27
Need help?
Do you have a question about the STM32 Cortex-M3 and is the answer not in the manual?