English
Language : 

HD6473887 Datasheet, PDF (170/523 Pages) Renesas Technology Corp – Hitachi Single-Chip Microcomputer
2. Port control register 4 (PCR4)
Bit
7
6
5
4
3
2
1
0
—
—
—
—
— PCR42 PCR41 PCR4 0
Initial value
1
1
1
1
1
0
0
0
Read/Write
—
—
—
—
—
W
W
W
PCR4 is an 8-bit register for controlling whether each of port 4 pins P42 to P40 functions as an
input pin or output pin. Setting a PCR4 bit to 1 makes the corresponding pin an output pin, while
clearing the bit to 0 makes the pin an input pin. PCR4 and PDR4 settings are valid when the
corresponding pins are designated for general-purpose input/output by SCR3-2.
Upon reset, PCR4 is initialized to H'F8.
PCR4 is a write-only register, which always reads all 1s.
8.5.3 Pin Functions
Table 8-12 shows the port 4 pin functions.
Table 8-12 Port 4 Pin Functions
Pin
P43/IRQ0
P42/TXD32
P41/RXD32
Pin Functions and Selection Method
The pin function depends on bit IRQ0 in PMR3.
IRQ0
Pin function
0
P43 input pin
1
IRQ0 input pin
The pin function depends on bit TE in SCR3-2, bit SPC32 in SPCR, and bit
PCR42 in PCR4.
SPC32
0
1
TE
0
1
PCR42
Pin function
0
P42 input pin
1
P42 output pin
*
TXD32 output pin
The pin function depends on bit RE in SCR3-2 and bit PCR41 in PCR4.
RE
PCR41
Pin function
0
0
1
P41 input pin P41 output pin
1
*
RXD32 input pin
*: Don’t care
153