Hitachi H8/3022 Hardware Manual page 148

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

Advertisement

7.3.2 Register Descriptions
Table 7-3 summarizes the registers of port 2.
Table 7-3 Port 2 Registers
Address*
Name
H'FFC1
Port 2 data
direction register
H'FFC3
Port 2 data
register
H'FFD8
Port 2 input pull-
up control
register
Note: * Lower 16 bits of the address.
Port 2 Data Direction Register (P2DDR): P2DDR is an 8-bit write-only register that can select
input or output for each pin in port 2.
Bit
P2 DDR
Initial value
Modes
1 and 3
Read/Write
Initial value
Modes
5 to 7
Read/Write
P2DDR is initialized to H'00 by a reset and in hardware standby mode. In software standby mode
it retains its previous setting. If a P2DDR bit is set to 1, the corresponding pin maintains its output
state in software standby mode.
136
Abbreviation
P2DDR
P2DR
P2PCR
7
6
P2 DDR
P2 DDR
7
6
1
1
0
0
W
W
Initial Value
R/W
Modes 1 and 3
W
H'FF
R/W
H'00
R/W
H'00
5
4
P2 DDR
P2 DDR
5
4
1
1
0
0
W
W
Port 2 data direction 7 to 0
These bits select input or
output for port 2 pins
3
2
P2 DDR
P2 DDR
3
2
1
1
0
0
W
W
Modes 5 to 7
H'00
H'00
H'00
1
0
P2 DDR
1
0
1
1
0
0
W
W

Advertisement

Table of Contents
loading

This manual is also suitable for:

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

Table of Contents