Digital I/O Registers
389
SLAU367P – October 2012 – Revised April 2020
Copyright © 2012–2020, Texas Instruments Incorporated
Digital I/O
12.4.2 PxIN Register
Port x Input Register
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
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
Undefined
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
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. P1DIR 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