9.3.4
Port Control Register 2 (PCR2)
Bit
7
—
Initial value
0
Read/Write
—
PCR2 is an 8-bit register for controlling whether each of the port 1 pins P22 to P20 functions as an
input pin or output pin. Setting a PCR2 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 PCR2 and PDR2 are valid only
when the corresponding pin is designated in SCR3 as a general I/O pin.
Upon reset, PCR2 is initialized to H'00.
PCR2 is a write-only register, which is always read as all 1s.
6
5
—
—
0
0
—
—
4
3
—
—
PCR22
0
0
—
—
2
1
PCR21
PCR20
0
0
W
W
0
0
W
147