Hitachi F-ZTAT H8/3039 Series Hardware Manual page 162

Single-chip microcomputer
Table of Contents

Advertisement

7.5.3 Pin Functions in Each Mode
The pin functions differ between mode 1, 3 (expanded modes with on-chip ROM disabled), mode
5 (expanded modes with on-chip ROM enabled), mode 6, and 7 (single-chip mode). The pin
functions in each mode are described below.
Modes 1 and 3: Address output can be selected for each pin in port 5. Figure 7-13 shows the pin
functions in modes 1 and 3.
Mode 5: 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-14 shows the pin functions in mode 5.
Modes 6 and 7: 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-15 shows the pin functions in modes 6 and 7.
Port 5
Figure 7-13 Pin Functions in Modes 1 and 3 (Port 5)
When P5DDR = 1
A
A
Port 5
A
A
Figure 7-14 Pin Functions in Mode 5 (Port 5)
A
(output)
19
A
(output)
18
A
(output)
17
A
(output)
16
(output)
19
(output)
18
(output)
17
(output)
16
When P5DDR = 0
P5
(input)
3
P5
(input)
2
P5
(input)
1
P5
(input)
0
151

Advertisement

Table of Contents
loading

This manual is also suitable for:

F-ztat h8/3039F-ztat h8/3038F-ztat h8/3037F-ztat h8/3036

Table of Contents