
Digital I/O Registers
8.4.8 PxREN Register
Port x Pullup or Pulldown Resistor Enable Register
Figure 8-8. PxREN Register
7
6
5
4
3
2
1
0
PxREN
rw-0
rw-0
rw-0
rw-0
rw-0
rw-0
rw-0
rw-0
Table 8-11. PxREN Register Description
Bit
Field
Type
Reset
Description
7-0
PxREN
RW
0h
Port x pullup or pulldown resistor enable. When the port is configured as an
input, setting this bit enables or disables the pullup or pulldown.
0b = Pullup or pulldown disabled
1b = Pullup or pulldown enabled
8.4.9 PxSEL0 Register
Port x Function Selection Register 0
Figure 8-9. PxSEL0 Register
7
6
5
4
3
2
1
0
PxSEL0
rw-0
rw-0
rw-0
rw-0
rw-0
rw-0
rw-0
rw-0
Table 8-12. PxSEL0 Register Description
Bit
Field
Type
Reset
Description
7-0
PxSEL0
RW
0h
Port function selection. Each bit corresponds to one channel on Port x.
The values of each bit position in PxSEL1 and PxSEL0 are combined to specify
the function. For example, if P1SEL1.5 = 1 and P1SEL0.5 = 0, then the
secondary module function is selected for P1.5.
See PxSEL1 for the definition of each value.
8.4.10 PxSEL1 Register
Port x Function Selection Register 1
Figure 8-10. PxSEL1 Register
7
6
5
4
3
2
1
0
PxSEL1
rw-0
rw-0
rw-0
rw-0
rw-0
rw-0
rw-0
rw-0
Table 8-13. PxSEL1 Register Description
Bit
Field
Type
Reset
Description
7-0
PxSEL1
RW
0h
Port function selection. Each bit corresponds to one channel on Port x.
The values of each bit position in PxSEL1 and PxSEL0 are combined to specify
the function. For example, if P1SEL1.5 = 1 and P1SEL0.5 = 0, then the
secondary module function is selected for P1.5.
00b = General-purpose I/O is selected
01b = Primary module function is selected
10b = Secondary module function is selected
11b = Tertiary module function is selected
316
Digital I/O
SLAU272C – May 2011 – Revised November 2013
Copyright © 2011–2013, Texas Instruments Incorporated