You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
General-purpose input/outputs<br />
<strong>STM32W108C8</strong><br />
8 General-purpose input/outputs<br />
The <strong>STM32W108C8</strong> has 24 multi-purpose GPIO pins that may be individually configured<br />
as:<br />
● General purpose output<br />
● General purpose open-drain output<br />
● Alternate output controlled by a peripheral device<br />
● Alternate open-drain output controlled by a peripheral device<br />
● Analog<br />
● General purpose input<br />
● General purpose input with pull-up or pull-down resistor<br />
The basic structure of a single GPIO is illustrated in Figure 7.<br />
Figure 7.<br />
GPIO block diagram<br />
GPIO_PxCFGH/L<br />
GPIO_PxSET<br />
VDD_PADS<br />
GPIO_PxCLR<br />
GPIO_PxOUT<br />
Output control<br />
(push pull ,<br />
open drain , or<br />
disabled )<br />
P-MOS<br />
N-MOS<br />
VDD_PADS<br />
VDD_PADS<br />
Protection<br />
diode<br />
Alternate output<br />
Alternate input<br />
GND<br />
PIN<br />
GPIO_PxIN<br />
Schmitt trigger<br />
GND<br />
Analog<br />
functions<br />
Protection<br />
diode<br />
GND<br />
Wake detection<br />
GPIO_PxWAKE<br />
A Schmitt trigger converts the GPIO pin voltage to a digital input value. The digital input<br />
signal is then always routed to the GPIO_PxIN register; to the alternate inputs of associated<br />
peripheral devices; to wake detection logic if wake detection is enabled; and, for certain<br />
pins, to interrupt generation logic. Configuring a pin in analog mode disconnects the digital<br />
input from the pin and applies a high logic level to the input of the Schmitt trigger.<br />
Only one device at a time can control a GPIO output. The output is controlled in normal<br />
output mode by the GPIO_PxOUT register and in alternate output mode by a peripheral<br />
device. When in input mode or analog mode, digital output is disabled.<br />
55/215 Doc ID 018587 Rev 2