English
Language : 

HD6475348R Datasheet, PDF (174/487 Pages) Hitachi Semiconductor – Single-Chip Microcomputer
9.5.2 Port 4 Registers
Register Configuration: Table 9-7 lists the registers of port 4.
Table 9-7 Port 4 Registers
Name
Port 4 data direction register
Port 4 data register
Abbreviation
P4DDR
P4DR
Read/Write
W
R/W
Initial Value
H'00
H'00
Address
H'FE85
H'FE87
1. Port 4 Data Direction Register (P4DDR)—H'FE85
Bit
Initial value
Read/Write
7
6
5
4
3
2
1
0
P47DDR P46DDR P45DDR P44DDR P43DDR P42DDR P41DDR P40DDR
0
0
0
0
0
0
0
0
W
W
W
W
W
W
W
W
P4DDR is an 8-bit register that selects the direction of each pin in port 4.
Single-Chip Mode: A pin functions as an output pin if the corresponding bit in P4DDR is set to
1, and as in input pin if the bit is cleared to 0.
P4DDR can be written but not read. An attempt to read this register does not cause an error, but
all bits are read as 1, regardless of their true values.
At a reset and in the hardware standby mode, P4DDR is initialized to H'00, making all eight pins
input pins. P4DDR is not initialized in the software standby mode, so if a P4DDR bit is set to 1
when the chip enters the software standby mode, the corresponding pin continues to output the
value in the port 4 data register.
Expanded Modes: All bits of P4DDR are fixed at 1 and cannot be modified.
157