Hitachi H8/3022 Hardware Manual page 151

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

Advertisement

Mode 7: Input or output can be selected separately for each pin in port 2. A pin becomes an output
pin if the corresponding P2DDR bit is set to 1, and an input pin if this bit is cleared to 0. Figure
7-8 shows the pin functions in mode 7.
When P2DDR = 1
A
15
A
14
A
13
A
12
Port 2
A
11
A
10
A (output)
9
A (output)
8
Figure 7-7 Pin Functions in Modes 5 and 6 (Port 2)
Port 2
Figure 7-8 Pin Functions in Mode 7 (Port 2)
When P2DDR = 0
(output)
P2 (input)
(output)
P2 (input)
(output)
P2 (input)
(output)
P2 (input)
(output)
P2 (input)
(output)
P2 (input)
P2 (input)
P2 (input)
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
7
6
5
4
3
2
1
0
139

Advertisement

Table of Contents
loading

This manual is also suitable for:

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

Table of Contents