
Digital I/O Registers
8.4.5 PxIN Register
Port x Input Register
Figure 8-5. PxIN Register
7
6
5
4
3
2
1
0
PxIN
r
r
r
r
r
r
r
r
Table 8-8. PxIN Register Description
Bit
Field
Type
Reset
Description
7-0
PxIN
R
Undefined
Port x input
0b = Input is low
1b = Input is high
8.4.6 PxOUT Register
Port x Output Register
Figure 8-6. PxOUT Register
7
6
5
4
3
2
1
0
PxOUT
rw
rw
rw
rw
rw
rw
rw
rw
Table 8-9. 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
8.4.7 PxDIR Register
Port x Direction Register
Figure 8-7. 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 8-10. 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
315
SLAU272C – May 2011 – Revised November 2013
Digital I/O
Copyright © 2011–2013, Texas Instruments Incorporated