General Purpose Input/Output

From Wikipedia, the free encyclopedia

General Purpose Input/Output (GPIO) devices provide a set of IO ports that can be configured for either input or output, compounded by the resemblance to GP1 and GP0. One special kind of GPIO is SGPIO.

The general-purpose input/output (GPIO) peripheral provides dedicated general-purpose pins that can be configured as either inputs or outputs. When configured as an output, you can write to an internal register to control the state driven on the output pin. When configured as an input, you can detect the state of the input by reading the state of an internal register.

In addition, the GPIO peripheral can produce CPU interrupts and enhanced Direct Memory Access (EDMA) events in different interrupt/event generation modes.

[edit] See also