General-Purpose Input/Output (GPIO)
347
SPRUH22I – April 2012 – Revised November 2019
Copyright © 2012–2019, Texas Instruments Incorporated
General-Purpose Input/Output (GPIO)
Important:
All GPIO pins are configured as GPIOs and tri-stated by default (GPIOAFSEL=0,
GPIODEN=0, GPIOPUR=0, and GPIOPCTL=0. A Power-On-Reset (POR) or asserting XRS puts the pins
back to their default state.
NOTE:
The default register type for the GPIOCR register is RO for all GPIO pins with the exception
of the NMI pin. The PB7 pin is currently the only GPIO that is protected by the GPIOCR
register. Because of this, the register type for GPIO Port B7 is R/W.
The default reset value for the GPIOCR register is 0x0000.00FF for all GPIO pins, with the
exception of the NMI pin. To ensure that the NMI pin is not accidentally programmed as the
non-maskable interrupt pin, it defaults to non-committable. Because of this, the default reset
value of GPIOCR for GPIO Port B is 0x0000.007F.
Table 4-5. GPIO Register Map
Offset
Name
Type
Reset
Description
0x000
GPIODATA
R/W
0x0000.0000
GPIO Data
0X400
GPIODIR
R/W
0x0000.0000
GPIO Direction
0x404
GPIOIS
R/W
0x0000.0000
GPIO Interrupt Sense
0x408
GPIOIBE
R/W
0x0000.0000
GPIO Interrupt Both
Edges
0x40C
GPIOIEV
R/W
0x0000.0000
GPIO Interrupt Event
0x410
GPIOIM
R/W
0x0000.0000
GPIO Interrupt Mask
0x414
GPIORIS
RO
0x0000.0000
GPIO Raw Interrupt
Status
0x418
GPIOMIS
RO
0x0000.0000
GPIO Masked Interrupt
Status
0x41C
GPIOICR
W1C
0x0000.0000
GPIO Interrupt Clear
0x420
GPIOAFSEL
R/W
-
GPIO Alternate Function
Select
0x50C
GPIOODR
R/W
0x0000.0000
GPIO Open Drain Select
0x510
GPIOPUR
R/W
-
GPIO Pull-Up Select
0x51C
GPIODEN
R/W
-
GPIO Digital Enable
0x520
GPIOLOCK
R/W
0x0000.0001
GPIO Lock
0x524
GPIOCR
-
-
GPIO Commit
0x528
GPIOAMSEL
R/W
0x0000.0000
GPIO Analog Mode
Select
0x52C
GPIOPCTL
R/W
-
GPIO Port Control
0x530
GPIOAPSEL
R/W
0x0000.0000
GPIO Alternate
Peripheral Select
0x534
GPIOCSEL
R/W
0x0000.0000
GPIO Core Select
0xFD0
GPIOPeriphID4
RO
0x0000.0000
GPIO Peripheral
Identification 4
0xFD4
GPIOPeriphID5
RO
0x0000.0000
GPIO Peripheral
Identification 5
0xFD8
GPIOPeriphID6
RO
0x0000.0000
GPIO Peripheral
Identification 6
0xFDC
GPIOPeriphID7
RO
0x0000.0000
GPIO Peripheral
Identification 7
0xFE0
GPIOPeriphID0
RO
0x0000.0061
GPIO Peripheral
Identification 0
0xFE4
GPIOPeriphID1
RO
0x0000.0000
GPIO Peripheral
Identification 1
0xFE8
GPIOPeriphID2
RO
0x0000.0018
GPIO Peripheral
Identification 2