Datasheet

Section 9 I/O Ports
Rev.6.00 Mar. 18, 2009 Page 338 of 980
REJ09B0050-0600
9.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
Output data for a pin is stored when the pin function
is specified to a general purpose I/O.
3 P23DR 0 R/W
2 P22DR 0 R/W
1 P21DR 0 R/W
0 P20DR 0 R/W
9.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
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.
3 P23
*
R
2 P22
*
R
1 P21
*
R
0 P20
*
R
Note: * Determined by the states of pins P27 to P20.