English
Language : 

HD6473032F Datasheet, PDF (152/572 Pages) Hitachi Semiconductor – Hitachi Microcomputer
7.5.3 Pin Functions in Each Mode
The functions of port 5 differ depending on the operating mode. The pin functions in each mode are
described below.
Mode 1: Address output or generic input can be selected for each pin in port 5. A pin becomes an
address output pin if the corresponding P5DDR bit is set to 1, and a generic input pin if this bit is
cleared to 0. Following a reset, all pins are input pins. To use a pin for address output, its P5DDR
must be set to 1. Figure 7-11 shows the pin functions in mode 1.
Port 5
When P5DDR = 1 When P5DDR = 0
A 19 (output)
A 18 (output)
A 17 (output)
A 16 (output)
P5 3 (input)
P5 2 (input)
P5 1 (input)
P5 0 (input)
Figure 7-11 Pin Functions in Mode 1 (Port 5)
Modes 2 and 3: Input or output can be selected separately for each pin in port 5. A pin becomes an
output pin if the corresponding P5DDR bit is set to 1, and an input pin if this bit is cleared to 0.
Figure 7-12 shows the pin functions in modes 2 and 3.
Port 5
P53 (input/output)
P52 (input/output)
P51 (input/output)
P50 (input/output)
Figure 7-12 Pin Functions in Modes 2 and 3 (Port 5)
137