Registers
981
SPRUH82C – April 2013 – Revised September 2016
Copyright © 2013–2016, Texas Instruments Incorporated
Host Port Interface (HPI)
21.3.4 GPIO Direction 1 Register (GPIO_DIR1)
The GPIO direction 1 register (GPIO_DIR1) determines if the UHPI_HD
n
pin is an input or an output.
GPIO_DIR1 is shown in
and described in
.
Figure 21-20. GPIO Direction 1 Register (GPIO_DIR1)
31
16
Reserved
R-0
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
HD15
HD14
HD13
HD12
HD11
HD10
HD9
HD8
HD7
HD6
HD5
HD4
HD3
HD2
HD1
HD0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
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
Table 21-10. GPIO Direction 1 Register (GPIO_DIR1) Field Descriptions
Bit
Field
Value
Description
31-16
Reserved
0
Reserved
15-0
HD
n
Direction control for UHPI_HD
n
pin.
0
UHPI_HD
n
pin is an input.
1
UHPI_HD
n
pin is an output.
21.3.5 GPIO Data 1 Register (GPIO_DAT1)
The GPIO data 1 register (GPIO_DAT1) determines the value driven on the corresponding UHPI_HD
n
pin,
if the pin is configured as an output (GPIO_DIR1.HD
n
= 1). Writes do not affect pins not configured as
GPIO outputs. The bits in GPIO_DAT1 are set or cleared by writing directly to this register. A read of
GPIO_DAT1 returns the value of the register bit (HD
n
) not the value at the UHPI_HD
n
pin (that might be
configured as an input). GPIO_DAT1 is shown in
and described in
Figure 21-21. GPIO Data 1 Register (GPIO_DAT1)
31
16
Reserved
R-0
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
HD15
HD14
HD13
HD12
HD11
HD10
HD9
HD8
HD7
HD6
HD5
HD4
HD3
HD2
HD1
HD0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
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
Table 21-11. GPIO Data 1 Register (GPIO_DAT1) Field Descriptions
Bit
Field
Value
Description
31-16
Reserved
0
Reserved
15-0
HD
n
0-1
Data read from/written to UHPI_HD
n
pin.