Registers
1023
SPRUH82C – April 2013 – Revised September 2016
Copyright © 2013–2016, Texas Instruments Incorporated
Inter-Integrated Circuit (I2C) Module
22.3.17 I2C Pin Direction Register (ICPDIR)
The I2C pin direction register (ICPDIR) is used to configure each GPIO pin as either an input or an output.
ICPDIR is shown in
and described in
Figure 22-31. I2C Pin Direction Register (ICPDIR)
31
16
Reserved
R-0
15
2
1
0
Reserved
PDIR1
PDIR0
R-0
R/W-0
R/W-0
LEGEND: R/W = Read/Write; R = Read only; -
n
= value after reset
Table 22-24. I2C Pin Direction Register (ICPDIR) Field Descriptions
Bit
Field
Value
Description
31-2
Reserved
0
These reserved bit locations are always read as zeros. A value written to this field has no effect.
1
PDIR1
Controls the direction of the I2Cx_SDA pin when configured as GPIO.
0
I2Cx_SDA pin functions as input.
1
I2Cx_SDA pin functions as output.
0
PDIR0
Controls the direction of the I2Cx_SCL pin when configured as GPIO.
0
I2Cx_SCL pin functions as input.
1
I2Cx_SCL pin functions as output.