HD643303x Hitachi, HD643303x Datasheet - Page 152

no-image

HD643303x

Manufacturer Part Number
HD643303x
Description
Hitachi Microcomputer
Manufacturer
Hitachi
Datasheet
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.
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.
Figure 7-12 Pin Functions in Modes 2 and 3 (Port 5)
Port 5
Figure 7-11 Pin Functions in Mode 1 (Port 5)
Port 5
When P5DDR = 1
A
A
A
A
19
18
17
16
(output)
(output)
(output)
(output)
137
P5 (input/output)
P5 (input/output)
P5 (input/output)
P5 (input/output)
3
2
1
0
When P5DDR = 0
P5
P5
P5
P5
3
2
1
0
(input)
(input)
(input)
(input)

Related parts for HD643303x