Datasheet

Section 9 I/O Ports
Rev. 6.00 Mar. 24, 2006 Page 122 of 412
REJ09B0142-0600
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
6
5
4
3
1
1
1
1
1
Reserved
These bits are always read as 1.
2
1
0
P22
P21
P20
0
0
0
R/W
R/W
R/W
PDR2 stores output data for port 2 pins.
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 Pin Functions
The correspondence between the register specification and the port functions is shown below.
P22/TXD Pin
Register PMR1 PCR2
Bit Name TXD PCR22 Pin Function
Setting Value 0 0 P22 input pin
1 P22 output pin
1 X TXD output pin
[Legend]
X: Don't care.