HD6475328-CP10 HITACHI [Hitachi Semiconductor], HD6475328-CP10 Datasheet - Page 173

no-image

HD6475328-CP10

Manufacturer Part Number
HD6475328-CP10
Description
original Hitachi CMOS microcomputer unit (MCU)
Manufacturer
HITACHI [Hitachi Semiconductor]
Datasheet
2. Port 4 Data Register (P4DR)—H'FF87
Bit
Initial value
Read/Write
P4DR is an 8-bit register containing the data for pins P4
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 (A
output. Figure 9-9 shows the pin functions for the 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.
R/W
P4
7
0
7
Figure 9-9 Port 4 Pin Functions in Expanded Modes
Port
4
R/W
P4
6
0
6
7
R/W
– A
P4
5
0
5
0
) of the address bus. P4DDR is automatically set for
A
A
A
A
A
A
A
A
7
6
5
4
3
2
1
0
156
(output)
(output)
(output)
(output)
(output)
(output)
(output)
(output)
R/W
P4
4
0
4
7
to P4
R/W
P4
3
0
3
0
.
R/W
P4
2
0
2
R/W
P4
1
0
1
R/W
P4
0
0
0

Related parts for HD6475328-CP10