Datasheet

Section 9 I/O Ports
Rev. 1.50 Sep. 18, 2007 Page 184 of 584
REJ09B0240-0150
9.13 Port J
Port J is a general I/O port also functioning as external oscillation pins and a clock output pin.
Each pin of port J is shown in figure 9.13. The setting of CKCSR has priority over those for other
functions.
PJ0/OSC1
PJ1/OSC2/CLKOUT
Port J
Figure 9.13 Port J Pin Configuration
Port J has the following registers.
Port control register J (PCRJ)
Port data register J (PDRJ)
9.13.1 Port Control Register J (PCRJ)
PCRJ selects inputs/outputs in bit units for pins to be used as general I/O ports of port J.
Bit Bit Name
Initial
Value R/W Description
7 to 2 Reserved
1
0
PCRJ1
PCRJ0
0
0
W
W
When each of the port J pins PJ1 to PJ0 functions as a
general I/O port, setting a PCRJ bit to 1 makes the
corresponding pin an output port, while clearing the bit
to 0 makes the pin an input port.