General-Purpose Input/Output (GPIO)
358
SPRUH22I – April 2012 – Revised November 2019
Copyright © 2012–2019, Texas Instruments Incorporated
General-Purpose Input/Output (GPIO)
4.1.6.17 GPIO Port Control (GPIOPCTL) Register, offset 0x52C
The GPIOPCTL register is used in conjunction with the GPIOAFSEL register and selects the specific
peripheral signal for each GPIO pin when using the alternate function mode. Most bits in the GPIOAFSEL
register are cleared on reset, therefore GPIO pins are configured as GPIOs by default. When a bit is set in
the GPIOAFSEL register, the corresponding GPIO signal is controlled by an associated peripheral. The
GPIOPCTL register selects one out of a set of peripheral functions for each GPIO, providing additional
flexibility in signal definition.
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.
Figure 4-20. GPIO Port Control (GPIOPCTL) Register
31
28
27
24
23
20
19
16
PMC7
PMC6
PMC5
PMC4
R/W
R/W
R/W
R/W
15
12
11
8
7
4
3
0
PMC3
PMC2
PMC1
PMC0
R/W
R/W
R/W
R/W
LEGEND: R/W = Read/Write; R = Read only; -
n
= value after reset
Table 4-22. GPIO Port Control (GPIOPCTL) Register Field Descriptions
Bit
Field
Value
Description
31-28
PMC7
Port Mux Control 7
This field controls the configuration for GPIO pin 7.
27-24
PMC6
Port Mux Control 6
This field controls the configuration for GPIO pin 6.
23-20
PMC5
Port Mux Control 5
This field controls the configuration for GPIO pin 5.
19-16
PMC4
Port Mux Control 4
This field controls the configuration for GPIO pin 4.
15-12
PMC3
Port Mux Control 3
This field controls the configuration for GPIO pin 3.
11-8
PMC2
Port Mux Control 2
This field controls the configuration for GPIO pin 2.
7-4
PMC1
Port Mux Control 1
This field controls the configuration for GPIO pin 1.
3-0
PMC0
Port Mux Control 0
This field controls the configuration for GPIO pin 0.