Datasheet

Table Of Contents
Section 9 I/O Ports
Rev. 2.00 Jul. 04, 2007 Page 171 of 692
REJ09B0309-0200
Port 5 has the following registers.
Port data register 5 (PDR5)
Port control register 5 (PCR5)
Port pull-up control register 5 (PUCR5)
Port mode register 5 (PMR5)
9.4.1 Port Data Register 5 (PDR5)
PDR5 is a register that stores data of port 5.
Bit Bit Name
Initial
Value
R/W Description
7
6
5
4
3
2
1
0
P57
P56
P55
P54
P53
P52
P51
P50
0
0
0
0
0
0
0
0
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
If port 5 is read while PCR5 bits are set to 1, the values
stored in PDR5 are read, regardless of the actual pin
states. If port 5 is read while PCR5 bits are cleared to 0,
the pin states are read.
9.4.2 Port Control Register 5 (PCR5)
PCR5 selects inputs/outputs in bit units for pins to be used as general I/O ports of
port 5.
Bit Bit Name
Initial
Value
R/W Description
7
6
5
4
3
2
1
0
PCR57
PCR56
PCR55
PCR54
PCR53
PCR52
PCR51
PCR50
0
0
0
0
0
0
0
0
W
W
W
W
W
W
W
W
Setting a PCR5 bit to 1 makes the corresponding pin an
output pin, while clearing the bit to 0 makes the pin an
input pin. The settings in PCR5 and in PDR5 are valid
when the corresponding pin is designated as a general
I/O pin.
PCR5 is a write-only register. These bits are always
read as 1.