General-Purpose Input/Outputs (GPIO) Peripheral Driver. More...
|
Modules | |
| xGPIO | |
CoX GPIO Peripheral Interface. | |
General-Purpose Input/Outputs (GPIO) Peripheral Driver.
General Purpose Input/Output (a.k.a. GPIO) is a generic pin on a mcu whose behavior (including whether it is an input or output pin) can be controlled (programmed) through software.
Always an I/O line may be dedicated as a general-purpose I/O or be assigned to a function of an embedded peripheral.
An I/O line Can also pend an interrupt when detect rising edge, falling edge, low level or high level.
The GPIO Control can configure each individual pin as :
Software Can drive the I/O line to High Level(digital 0) or Low Level(digital 0) when config as Output, or
sample the pin value when config as output.
The PIO Controller can be programmed to generate an interrupt when it detects an edge or a level on an I/O line.
The Interrupt mode can be:
There is always an Alternate function I/O configuration (AFIO) to optimize the number of peripherals available for the various kinds of package. Highly flexible pin muxing allows use as GPIO or one of several peripheral functions.
The pad control registers allow software to configure the GPIO pads based on the application requirements. It contains:
The PIO can be used to read button state, drive LED, etc.
|
|