Datasheet

Section 9 I/O Ports
Rev. 6.00 Mar. 24, 2006 Page 134 of 412
REJ09B0142-0600
9.5.1 Port Control Register 8 (PCR8)
PCR8 selects inputs/outputs in bit units for pins to be used as general I/O ports of port 8.
Bit Bit Name
Initial
Value R/W Description
7
6
5
4
3
2
1
0
PCR87
PCR86
PCR85
PCR84
PCR83
PCR82
PCR81
PCR80
0
0
0
0
0
0
0
0
W
W
W
W
W
W
W
W
When each of the port 8 pins P87 to P80 functions as
an general I/O port, setting a PCR8 bit to 1 makes the
corresponding pin an output port, while clearing the bit
to 0 makes the pin an input port.
9.5.2 Port Data Register 8 (PDR8)
PDR8 is a general I/O port data register of port 8.
Bit Bit Name
Initial
Value R/W Description
7
6
5
4
3
2
1
0
P87
P86
P85
P84
P83
P82
P81
P80
0
0
0
0
0
0
0
0
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
PDR8 stores output data for port 8 pins.
PDR8 is read while PCR8 bits are set to 1, the value
stored in PDR8 is read. If PDR8 is read while PCR8
bits are cleared to 0, the pin states are read
regardless of the value stored in PDR8.