General-Purpose Input/Output (GPIO)
349
SPRUH22I – April 2012 – Revised November 2019
Copyright © 2012–2019, Texas Instruments Incorporated
General-Purpose Input/Output (GPIO)
4.1.6.2
GPIO Direction (GPIODIR) Register, offset 0x400
The GPIODIR register is the data direction register. Setting a bit in the GPIODIR register configures the
corresponding pin to be an output, while clearing a bit configures the corresponding pin to be an input. All
bits are cleared by a reset, meaning all GPIO pins are inputs by default.
Figure 4-5. GPIO Direction (GPIODIR) Register
31
16
Reserved
R-0
15
8
7
0
Reserved
DIR
R-0
R/W-0
LEGEND: R/W = Read/Write; R = Read only; -
n
= value after reset
Table 4-7. GPIO Direction (GPIODIR) Register Field Descriptions
Bit
Field
Value
Description
31-8
Reserved
Reserved
7-0
DIR
GPIO Data Direction
0
Corresponding pin as an input.
1
Corresponding pin as an output.
4.1.6.3
GPIO Interrupt Sense (GPIOIS) Register, offset 0x404
The GPIOIS register is the interrupt sense register. Setting a bit in the GPIOIS register configures the
corresponding pin to detect levels, while clearing a bit configures the corresponding pin to detect edges.
All bits are cleared by a reset.
Figure 4-6. GPIO Interrupt Sense (GPIOIS) Register
31
16
Reserved
R-0
15
8
7
0
Reserved
IS
R-0
R/W-0
LEGEND: R/W = Read/Write; R = Read only; -
n
= value after reset
Table 4-8. GPIO Interrupt Sense (GPIOIS) Register Field Descriptions
Bit
Field
Value
Description
31-8
Reserved
Reserved
7-0
IS
GPIO Interrupt Sense
0
The edge on the corresponding pin is detected (edge-sensitive).
1
The level on the corresponding pin is detected (level-sensitive).