Pin Functions In Each Operating Mode; Memory Map In Each Operating Mode - Hitachi H8/3022 Hardware Manual

H8/3022 series hitachi single-chip microcomputer
Table of Contents

Advertisement

3.5 Pin Functions in Each Operating Mode

The pin functions of ports 1 to 3, port 5 and port A vary depending on the operating mode. Table
3-3 indicates their functions in each operating mode.
Table 3-3 Pin Functions in Each Mode
Port
Mode 1
Port 1
A
to A
7
0
Port 2
A
to A
15
8
Port 3
D
to D
7
0
Port 5
A
to A
19
16
Port A
PA
to PA
7
4
Notes: 1. H8/3022 Series cannot be used in these modes.
2. Initial state. These pins become address output pins when the corresponding bits in the
data direction registers (P1DDR, P2DDR, P5DDR) are set to 1.
3. Initial state A
A
output by writing 0 in bits 7 to 5 of ADRCR.
21

3.6 Memory Map in Each Operating Mode

Figure 3-1 shows a memory map of the H8/3022. Figure 3-2 shows a memory map of the
H8/3021. Figure 3-3 shows a memory map of the H8/3020. The address space is divided into eight
areas.
Modes 1, 3, 5, and 6 are the 8-bit bus mode.
The address locations of the on-chip RAM and internal I/O registers differ between the 1-Mbyte
modes (modes 1, 5, and 7) and 16-Mbyte modes (mode 3 and 6). The address range specifiable by
the CPU in the 8- and 16-bit absolute addressing modes (@aa:8 and @aa:16) also differs.
1
Mode 2*
Mode 3
A
to A
7
0
A
to A
15
D
to D
7
0
A
to A
19
PA
to PA
6
A
20
is always an address output pin. PA
20
1
Mode 4*
Mode 5
P1
P2
8
D
P5
16
3
,
PA
*
4
Mode 6
2
to P1
*
P1
to P1
7
0
7
2
to P2
P2
to P2
*
7
0
7
to D
D
to D
7
0
7
0
2
to P5
P5
to P5
*
3
0
3
to PA
PA
to PA
7
4
6
A
20
to PA
are switched over to A
6
4
Mode 7
2
*
P1
to P1
0
7
0
2
P2
to P2
*
0
7
0
P3
to P3
7
0
2
P5
to P5
*
0
3
0
3
,
PA
to PA
*
4
7
4
to
23
61

Advertisement

Table of Contents
loading

This manual is also suitable for:

H8/3021H8/3020H8/3022 f-ztat

Table of Contents