Initialization and Configuration
www.ti.com
160
SWRU543–January 2019
Submit Documentation Feedback
Copyright © 2019, Texas Instruments Incorporated
General-Purpose Input/Outputs (GPIOs)
Table 5-1. GPIO Pad Configuration Examples
Configuration
GPIO Register Bit Value
DIR
Digital Input (GPIO) 0
Digital Output (GPIO) 1
Table 5-2. GPIO Interrupt Configuration Examples
Register Desired Interrupt Event Trigger
Pin 2 Bit Value
7 6 5 4 3 2 1 0
GPIOIS
0 = edge
1 = level
X X X X X 0 X X
GPIOIBE
0 = single edge
1 = both edges
X X X X X 0 X X
GPIOIEV
0 = low level, or falling edge
1 = high level, or rising edge
X X X X X 1 X X
GPIOIM
0 = masked
1 = not masked
0 0 0 0 0 1 0 0