151
Port 6 Data Register (P6DR): P6DR is an 8-bit readable/writable register that stores data for pins
P6
5
to P6
3
and P6
0
.
Bit
Initial value
Read/Write
7
—
1
—
6
—
0
R/W
5
P6
0
R/W
5
4
P6
0
R/W
4
3
P6
0
R/W
3
2
—
0
R/W
1
—
0
R/W
0
P6
0
R/W
0
Reserved bits
Port 6 data 5 to 3, 0
These bits store data for port 6 pins
When a bit in P6DDR is set to 1, if port 6 is read the value of the corresponding P6DR bit is
returned directly. When a bit in P6DDR is cleared to 0, if port 6 is read the corresponding pin level
is read. Bits 7, 6, 2, and 1 are reserved. Bit 7 cannot be modified and always reads 1. Bits 6, 2, and
1 can be written and read, but cannot be used as ports. If bit 6, 2, or 1 in P6DDR is read while its
value is 1, the value of the corresponding bit in P6DR will be read. If bit 6, 2, or 1 in P6DDR is
read while its value is 0, it will always read 1.
P6DR is initialized to H'80 by a reset and in hardware standby mode. In software standby mode it
retains its previous setting.