
Architecture
930
SPRUH82C – April 2013 – Revised September 2016
Copyright © 2013–2016, Texas Instruments Incorporated
General-Purpose Input/Output (GPIO)
To configure a GPIO interrupt to occur on both the rising and falling edges of the GPIO signal:
•
Write a logic 1 to the associated bit in SET_RIS_TRIG.
•
Write a logic 1 to the associated bit in SET_FAL_TRIG.
To disable a specific GPIO interrupt:
•
Write a logic 1 to the associated bit in CLR_RIS_TRIG.
•
Write a logic 1 to the associated bit in CLR_FAL_TRIG.
For detailed information on these registers, see
Note that the direction of the GPIO signal does not have to be an input for the interrupt event generation
to work. When a GPIO signal is configured as an output, the software can change the GPIO signal state
and, in turn, generate an interrupt. This can be useful for debugging interrupt signal connectivity.
20.2.10.4 GPIO Interrupt Status
The status of GPIO interrupt events can be monitored by reading the GPIO interrupt status register
(INTSTAT). Pending GPIO interrupts are indicated with a logic 1 in the associated bit position; interrupts
that are not pending are indicated with a logic 0.
For the GPIO bank interrupts, INTSTAT can be used to determine which GPIO interrupt occurred. It is the
responsibility of software to ensure that all pending GPIO interrupts are appropriately serviced.
Pending GPIO interrupt flags can be cleared by writing a logic 1 to the associated bit position in INTSTAT.
For detailed information on INTSTAT, see
.
20.2.10.5 Interrupt Multiplexing
GPIO interrupts may be multiplexed with other interrupt functions on the device.
20.2.11 EDMA Event Support
The GPIO peripheral may provide synchronization events to the DMA controller.
20.2.12 Power Management
The GPIO peripheral can be placed in reduced-power modes to conserve power during periods of low
activity. The power management of the GPIO peripheral is controlled by the processor Power and Sleep
Controller (PSC). The PSC acts as a master controller for power management for all of the peripherals on
the device. For detailed information on power management procedures using the PSC, see the
Power and
Sleep Controller (PSC)
chapter.
When the GPIO peripheral is placed in a low-power state by the PSC, the interrupt generation capability is
suspended until the GPIO peripheral is removed from the low-power state. While in the low-power state,
the GPIO signals configured as outputs are maintained at their state prior to the GPIO peripheral entering
the low-power state.
20.2.13 Emulation Considerations
The GPIO peripheral is not affected by emulation suspend events (such as halts and breakpoints).