C28 General-Purpose Input/Output (GPIO)
420
SPRUH22I – April 2012 – Revised November 2019
Copyright © 2012–2019, Texas Instruments Incorporated
General-Purpose Input/Output (GPIO)
4.2.7.32 GPIO Port C Set, Clear and Toggle (GPCSET, GPCCLEAR, GPCTOGGLE) Registers
The GPIO Port C Set, Clear and Toggle (GPCSET, GPCCLEAR, GPCTOGGLE) registers are shown and
described in the figure and table below.
Figure 4-73. GPIO Port C Set, Clear and Toggle (GPCSET, GPCCLEAR, GPCTOGGLE) Registers
31
24
Reserved
R-0
23
16
Reserved
R-0
15
8
Reserved
R-0
7
6
5
4
3
0
GPIO71
GPIO70
GPIO69
GPIO68
Reserved
R/W-x
R/W-x
R/W-x
R/W-x
R-0
LEGEND: R/W = Read/Write; R = Read only; -
n
= value after reset
Table 4-85. GPIO Port C Set (GPCSET) Register Field Descriptions
Bits
Field
Valu
e
Description
31-8
Reserved
Any writes to these bit(s) must always have a value of 0.
7-4
GPIO71-GPIO68
Each GPIO port C pin (GPIO68-GPIO71) 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.
3-0
Reserved
Any writes to these bit(s) must always have a value of 0.
Table 4-86. GPIO Port C Clear (GPCCLEAR) Register Field Descriptions
Bits
Field
Value
Description
31-8
Reserved
Any writes to these bit(s) must always have a value of 0.
7-4
GPIO71 -GPIO68
Each GPIO port C pin (GPIO68-GPIO71) 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.
3-0
Reserved
Any writes to these bit(s) must always have a value of 0.
Table 4-87. GPIO Port C Toggle (GPCTOGGLE) Register Field Descriptions
Bits
Field
Value
Description
31-8
Reserved
Any writes to these bit(s) must always have a value of 0.
7-4
GPIO71 -GPIO68
Each GPIO port C pin (GPIO68-GPIO71) 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.
3-0
Reserved
Any writes to these bit(s) must always have a value of 0.