Datasheet

Section 9 I/O Ports
Rev. 2.00 Sep. 23, 2005 Page 104 of 444
REJ09B0068-0200
9.2.2 Port Data Register 2 (PDR2)
PDR2 is a general I/O port data register of port 2.
Bit Bit Name
Initial
Value R/W Description
7 to 5 All 1 Reserved
These bits are always read as 1.
4
3
2
1
0
P24
P23
P22
P21
P20
0
0
0
0
0
R/W
R/W
R/W
R/W
R/W
PDR2 stores output data for port 2 pins.
If PDR2 is read while PCR2 bits are set to 1, the value
stored in PDR2 is read. If PDR2 is read while PCR2
bits are cleared to 0, the pin states are read regardless
of the value stored in PDR2.
9.2.3 Port Mode Register 3 (PMR3)
PMR3 selects the CMOS output or NMOS open-drain output for port 2.
Bit Bit Name
Initial
Value R/W Description
7 to 5 All 0 Reserved
These bits are always read as 0.
4
3
POF24
POF23
0
0
R/W
R/W
When the bit is set to 1, the corresponding pin is cut off
by PMOS and it functions as the NMOS open-drain
output. When cleared to 0, the pin functions as the
CMOS output.
2 to 0 All 1 Reserved
These bits are always read as 1.