Difference between revisions of "General-purpose input/output (GPIO)"

From Stm32World Wiki
Jump to navigation Jump to search
Line 9: Line 9:
  
 
The [[GPIO]]s are divided into a number of ports (the actual number depends on the pins available on any particular package) labelled with letters and starting with "PortA".
 
The [[GPIO]]s are divided into a number of ports (the actual number depends on the pins available on any particular package) labelled with letters and starting with "PortA".
 +
 +
<div class="res-img">
 +
[[File:STM32 block diagram GPIO ports.png|600px]]
 +
</div>
 +
 +
[[File:GPIO pin circuit.png|400px]]

Revision as of 03:20, 16 October 2024

Random board with a STM32 MCU

A general-purpose input/output (GPIO) is an uncommitted digital signal pin on an integrated circuit or electronic circuit board which may be used as an input or output, or both, and is controllable by the user at runtime.

All STM32 MCUs have a high number of GPIOs. In fact, almost all pins on a MCU package, which is not dedicated a power pin are GPIOs:

STM32F40xxx LQFP64 pinout.png

The GPIOs are divided into a number of ports (the actual number depends on the pins available on any particular package) labelled with letters and starting with "PortA".

STM32 block diagram GPIO ports.png

GPIO pin circuit.png