C28 General-Purpose Input/Output (GPIO)
410
SPRUH22I – April 2012 – Revised November 2019
Copyright © 2012–2019, Texas Instruments Incorporated
General-Purpose Input/Output (GPIO)
(1)
This register is EALLOW protected.
Table 4-68. GPIO Port A Direction (GPADIR) Register Field Descriptions
Bits
Field
Value
Description
(1)
31-0
GPIO31-GPIO0
Controls direction of GPIO Port A pins when the specified pin is configured as a GPIO in the
appropriate GPAMUX1 or GPAMUX2 register.
0
Configures the GPIO pin as an input. (default)
1
Configures the GPIO pin as an output
The value currently in the GPADAT output latch is driven on the pin. To initialize the GPADAT
latch prior to changing the pin from an input to an output, use the GPASET, GPACLEAR, and
GPATOGGLE registers.
4.2.7.20 GPIO Port B Direction (GPBDIR) Register
The GPIO Port B Direction (GPBDIR) register is shown and described in the figure and table below.
Figure 4-61. GPIO Port B Direction (GPBDIR) Register
31
30
29
28
27
26
25
24
GPIO63
GPIO62
GPIO61
GPIO60
GPIO59
GPIO58
GPIO57
GPIO56
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
23
22
21
20
19
18
17
16
GPIO55
GPIO54
GPIO53
GPIO52
GPIO51
GPIO50
GPIO49
GPIO48
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
15
14
13
12
11
10
9
8
GPIO47
GPIO46
GPIO45
GPIO44
GPIO43
GPIO42
GPIO41
GPIO40
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
7
6
5
4
3
2
1
0
GPIO39
GPIO38
GPIO37
GPIO36
GPIO35
GPIO34
GPIO33
GPIO32
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
LEGEND: R/W = Read/Write; R = Read only; -
n
= value after reset
(1)
This register is EALLOW protected.
Table 4-69. GPIO Port B Direction (GPBDIR) Register Field Descriptions
Bits
Field
Value
Description
(1)
31-0
GPIO63-GPIO32
Controls direction of GPIO pin when GPIO mode is selected. Reading the register returns the
current value of the register setting
0
Configures the GPIO pin as an input. (default)
1
Configures the GPIO pin as an output
4.2.7.21 GPIO Port C Direction (GPCDIR) Register
The GPIO Port C Direction (GPCDIR) register is shown and described in the figure and table below.
Figure 4-62. GPIO Port C Direction (GPCDIR) Register
31
16
Reserved
R-0
15
8
7
6
5
4
3
0
Reserved
GPIO71
GPIO70
GPIO69
GPIO68
Reserved
R-0
R/W-0
R/W-0
R/W-0
R/W-0
R-0
LEGEND: R/W = Read/Write; R = Read only; -
n
= value after reset