|
HD6475328-CP10 Datasheet, PDF (175/459 Pages) Hitachi Semiconductor – original Hitachi CMOS microcomputer unit (MCU) | |||
|
◁ |
9.6.2 Port 5 Registers
Register Configuration: Table 9-8 lists the registers of port 5.
Table 9-8 Port 5 Registers
Name
Port 5 data direction register
Port 5 data register
Abbreviation
P5DDR
P5DR
Read/Write
W
R/W
Initial Value
H'00
H'00
Address
H'FF88
H'FF8A
1. Port 5 Data Direction Register (P5DDR)âH'FF88
Bit
Initial value
Read/Write
7
6
5
4
3
2
1
0
P57DDR P56DDR P55DDR P54DDR P53DDR P52DDR P51DDR P50DDR
0
0
0
0
0
0
0
0
W
W
W
W
W
W
W
W
P5DDR is an 8-bit register that selects the direction of each pin in port 5.
Single-Chip Mode: A pin functions as an output pin if the corresponding bit in P5DDR is set
to â1,â and as an input pin if the bit is cleared to â0.â
P5DDR 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, P5DDR is initialized to H'00, making all eight
pins input pins. P5DDR is not initialized in the software standby mode, so if a P5DDR bit is
set to â1â when the chip enters the software standby mode, the corresponding pin continues to
output the value in the port 5 data register.
Expanded Modes Using On-Chip ROM (Modes 2 and 4): If a â1â is set in P5DDR, the
corresponding pin is used for address output. If a â0â is set in P5DDR, the pin is used for
general-purpose input. P5DDR is initialized to H'00 at a reset and in the hardware standby
mode.
Expanded Modes Not Using On-Chip ROM (Modes 1 and 3): All bits of P5DDR are fixed
at â1â and cannot be modified.
158
|
▷ |