C28 General-Purpose Input/Output (GPIO)
456
SPRUHE8E – October 2012 – Revised November 2019
Copyright © 2012–2019, Texas Instruments Incorporated
General-Purpose Input/Output (GPIO)
4.2.7.48 GPIO Port D Set, Clear and Toggle (GPDSET, GPDCLEAR, GPDTOGGLE) Registers
The GPIO Port D Set, Clear and Toggle (GPBSET, GPDCLEAR, GPDTOGGLE) registers are shown and
described in the figure and table below.
Figure 4-89. GPIO Port D Set, Clear and Toggle (GPDSET, GPDCLEAR, GPDTOGGLE) Registers
31
30
29
28
27
26
25
24
GPIO127
GPIO126
GPIO125
GPIO124
GPIO123
GPIO122
GPIO121
GPIO120
R/W-x
R/W-x
R/W-x
R/W-x
R/W-x
R/W-x
R/W-x
R/W-x
23
22
21
20
19
18
17
16
GPIO119
GPIO118
GPIO117
GPIO116
GPIO115
GPIO114
GPIO113
GPIO112
R/W-x
R/W-x
R/W-x
R/W-x
R/W-x
R/W-x
R/W-x
R/W-x
15
14
13
12
11
10
9
8
GPIO111
GPIO110
GPIO109
GPIO108
GPIO107
GPIO106
GPIO105
GPIO104
R/W-x
R/W-x
R/W-x
R/W-x
R/W-x
R/W-x
R/W-x
R/W-x
7
6
5
4
3
2
1
0
GPIO103
GPIO102
GPIO101
GPIO100
GPIO99
GPIO98
GPIO97
GPIO96
R/W-x
R/W-x
R/W-x
R/W-x
R/W-x
R/W-x
R/W-x
R/W-x
LEGEND: R/W = Read/Write; R = Read only; -
n
= value after reset
Table 4-104. GPIO Port D Set (GPDSET) Register Field Descriptions
Bits
Field
Value
Description
31-0
GPIO127-GPIO96
Each GPIO port D pin (GPIO127-GPIO96) corresponds to one bit in this register.
0
Writes of 0 are ignored. This register always reads back a 0.
1
Writing a 1 forces the respective output data latch to high. If the pin is configured as a GPIO
output then it will be driven high. If the pin is not configured as a GPIO output then the latch is
set but the pin is not driven.
Table 4-105. GPIO Port D Clear (GPDCLEAR) Register Field Descriptions
Bits
Field
Value
Description
31-0
GPIO127-GPIO96
Each GPIO port D pin (GPIO127-GPIO96) corresponds to one bit in this register.
0
Writes of 0 are ignored. This register always reads back a 0.
1
Writing a 1 forces the respective output data latch to low. If the pin is configured as a GPIO
output then it will be driven low. If the pin is not configured as a GPIO output then the latch is
cleared but the pin is not driven.
Table 4-106. GPIO Port D Toggle (GPDTOGGLE) Register Field Descriptions
Bits
Field
Value
Description
31-0
GPIO127-GPIO96
Each GPIO port D pin (GPIO127-GPIO96) corresponds to one bit in this register.
0
Writes of 0 are ignored. This register always reads back a 0.
1
Writing a 1 forces the respective output data latch to toggle from its current state. If the pin is
configured as a GPIO output then it will be driven in the opposite direction of its current state. If
the pin is not configured as a GPIO output then the latch is cleared but the pin is not driven.