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

Single-chip microcomputer
Table of Contents

Advertisement

Modes 6 and 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 modes 6 and 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 1 and 3 (Port 2)
Port 2
Figure 7-8 Pin Functions in Modes 6 and 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
143

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