English
Language : 

HD6475328CG Datasheet, PDF (173/459 Pages) Hitachi Semiconductor – Manual Gives a Hardware Description
2. Port 4 Data Register (P4DR)—H'FF87
Bit
Initial value
Read/Write
7
P47
0
R/W
6
P46
0
R/W
5
P45
0
R/W
4
P44
0
R/W
3
P43
0
R/W
2
P42
0
R/W
1
P41
0
R/W
0
P40
0
R/W
P4DR is an 8-bit register containing the data for pins P47 to P40.
At a reset and in the hardware standby mode, P4DR is initialized to H'00.
When the CPU reads P4DR, for output pins it reads the value in the P4DR latch, but for input
pins, it obtains the pin status directly.
9.5.3 Pin Functions in Each Mode
Port 4 has different functions in the expanded modes (modes 1, 2, 3, 4) and the single-chip mode
(mode 7). Separate descriptions are given below.
Pin Functions in Expanded Modes: In the expanded modes (modes 1, 2, 3, and 4), port 4 is
used for output of the low bits (A7 – A0) of the address bus. P4DDR is automatically set for
output. Figure 9-9 shows the pin functions for the expanded modes.
A7 (output)
A6 (output)
A5 (output)
Port
A4 (output)
4
A3 (output)
A2 (output)
A1 (output)
A0 (output)
Figure 9-9 Port 4 Pin Functions in Expanded Modes
Pin Functions in Single-Chip Mode: In the single-chip mode (mode 7), each of the port 4
pins can be designated as an input pin or an output pin, as indicated in figure 9-10, by setting
the corresponding bit in P4DDR to “1” for output or clearing it to “0” for input.
156