Hitachi H8/3022 Hardware Manual page 147

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

Advertisement

7.3 Port 2
7.3.1 Overview
Port 2 is an 8-bit input/output port with the pin configuration shown in figure 7-5. Pin functions
differ according to operation mode.
In modes 1 and 3 (expanded mode with on-chip ROM disabled), port 2 consists of address bus
output pins (A
to A
15
the port 2 data direction register (P2DDR) can designate pins for address bus output (A
generic input. In mode 7 (single-chip mode), port 2 is a generic input/output port.
Port 2 has software-programmable built-in pull-up transistors. Pins in port 2 can drive one TTL
load and a 90-pF capacitive load. They can also drive a Darlington transistor pair.
Port 2 pins
Port 2
). In modes 5 and 6 (expanded mode with on-chip ROM enabled), settings in
8
Modes 1 and 3
P2 /A
A
(output)
7
15
15
P2 /A
A
(output)
6
14
14
P2 /A
A
(output)
5
13
13
P2 /A
A
(output)
4
12
12
P2 /A
A
(output)
3
11
11
P2 /A
A
(output)
2
10
10
P2 /A
A (output)
1
9
9
P2 /A
A (output)
0
8
8
Figure 7-5 Port 2 Pin Configuration
Modes 5 and 6
P2 (input)/A
(output)
7
15
P2 (input)/A
(output)
6
14
P2 (input)/A
(output)
5
13
P2 (input)/A
(output)
4
12
P2 (input)/A
(output)
3
11
P2 (input)/A
(output)
2
10
P2 (input)/A
(output)
1
9
P2 (input)/A
(output)
0
8
to A
) or
15
8
Mode 7
P2 (input/output)
7
P2 (input/output)
6
P2 (input/output)
5
P2 (input/output)
4
P2 (input/output)
3
P2 (input/output)
2
P2 (input/output)
1
P2 (input/output)
0
135

Advertisement

Table of Contents
loading

This manual is also suitable for:

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

Table of Contents