Datasheet

Section 10 I/O Ports
Rev.7.00 Mar. 18, 2009 page 473 of 1136
REJ09B0109-0700
10.2.2 Port 2 Data Register (P2DR)
P2DR stores output data for the port 2 pins.
Bit Bit Name Initial Value R/W Description
7 P27DR 0 R/W
6 P26DR 0 R/W
5 P25DR 0 R/W
4 P24DR 0 R/W
3 P23DR 0 R/W
2 P22DR 0 R/W
1 P21DR 0 R/W
Output data for a pin is stored when the pin function
is specified to a general purpose I/O.
0 P20DR 0 R/W
10.2.3 Port 2 Register (PORT2)
PORT2 shows the pin states.
PORT2 cannot be modified.
Bit Bit Name Initial Value R/W Description
7 P27
* R
6 P26 * R
5 P25 * R
4 P24 * R
3 P23 * R
2 P22 * R
1 P21 * R
If a port 2 read is performed while P2DDR bits are
set to 1, the P2DR values are read. If a port 2 read
is performed while P2DDR bits are cleared to 0, the
pin states are read.
0 P20 * R
Note: * Determined by the states of pins P27 to P20.