Digital I/O Registers
696
SLAU356I – March 2015 – Revised June 2019
Copyright © 2015–2019, Texas Instruments Incorporated
Digital I/O
12.4.2 PxIN Register
Port X Input Register (X = 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 or J)
Figure 12-2. PxIN Register
7
6
5
4
3
2
1
0
PxIN
r
r
r
r
r
r
r
r
Table 12-5. PxIN Register Description
Bit
Field
Type
Reset
Description
7-0
PxIN
R
Undefined
Port X input
0b = Input is low
1b = Input is high
12.4.3 PxOUT Register
Port X Output Register (X = 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 or J)
Figure 12-3. PxOUT Register
7
6
5
4
3
2
1
0
PxOUT
rw
rw
rw
rw
rw
rw
rw
rw
Table 12-6. PxOUT Register Description
Bit
Field
Type
Reset
Description
7-0
PxOUT
RW
Undefine
d
Port X output.
When I/O configured to output mode:
0b = Output is low.
1b = Output is high.
When I/O configured to input mode and pullups/pulldowns enabled:
0b = Pulldown selected
1b = Pullup selected
12.4.4 PxDIR Register
Port X Direction Register (X = 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 or J)
Figure 12-4. PxDIR Register
7
6
5
4
3
2
1
0
PxDIR
rw-0
rw-0
rw-0
rw-0
rw-0
rw-0
rw-0
rw-0
Table 12-7. PxDIR Register Description
Bit
Field
Type
Reset
Description
7-0
PxDIR
RW
0h
Port X direction.
0b = Port configured as input
1b = Port configured as output