C28 General-Purpose Input/Output (GPIO)
458
SPRUHE8E – October 2012 – Revised November 2019
Copyright © 2012–2019, Texas Instruments Incorporated
General-Purpose Input/Output (GPIO)
4.2.7.50 GPIO Port G Set, Clear and Toggle (GPGSET, GPGCLEAR, GPGTOGGLE) Registers
The GPIO Port G Set, Clear and Toggle (GPGSET, GPGCLEAR, GPGTOGGLE) registers are shown and
described in the figure and table below.
Figure 4-91. GPIO Port G Set, Clear and Toggle (GPGSET, GPGCLEAR, GPGTOGGLE) Registers
31
24
Reserved
R-0
23
16
Reserved
R-0
15
8
Reserved
R-0
7
6
5
4
3
2
1
0
GPIO199
GPIO198
GPIO197
GPIO196
GPIO195
GPIO194
GPIO193
GPIO192
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-110. GPIO Port G Set (GPGSET) Register Field Descriptions
Bits
Field
Value
Description
31-8
Reserved
Any writes to these bit(s) must always have a value of 0.
7-0
GPIO199 -GPIO192
Each GPIO port G pin (GPIO199 -GPIO192) 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-111. GPIO Port G Clear (GPGCLEAR) Register Field Descriptions
Bits
Field
Value
Description
31-8
Reserved
Any writes to these bit(s) must always have a value of 0.
7-0
GPIO199 -GPIO192
Each GPIO port G pin (GPIO199 -GPIO192) 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-112. GPIO Port G Toggle (GPGTOGGLE) Register Field Descriptions
Bits
Field
Value
Description
31-8
Reserved
Any writes to these bit(s) must always have a value of 0.
7-0
GPIO199 -GPIO192
Each GPIO port G pin (GPIO199 -GPIO192) 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.