Hitachi H8/3022 Hardware Manual page 172

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

Advertisement

Port 9 Data Direction Register (P9DDR): P9DDR is an 8-bit write-only register that can select
input or output for each pin in port 9.
Bit
Initial value
Read/Write
A pin in port 9 becomes an output pin if the corresponding P9DDR bit is set to 1, and an input pin
if this bit is cleared to 0.
P9DDR is a write-only register. Its value cannot be read. All bits return 1 when read.
P9DDR is initialized to H'C0 by a reset and in hardware standby mode. In software standby mode
it retains its previous setting. If a P9DDR bit is set to 1, the corresponding pin maintains its output
state in software standby mode.
Port 9 Data Register (P9DR): P9DR is an 8-bit readable/writable register that stores output data
for pins P9
to P9
.
5
0
Bit
Initial value
Read/Write
When a bit in P9DDR is set to 1, if port 9 is read the value of the corresponding P9DR bit is
returned. When a bit in P9DDR is cleared to 0, if port 9 is read the corresponding pin level is read.
Bits 7 and 6 are reserved. They cannot be modified and are always read as 1.
P9DR is initialized to H'C0 by a reset and in hardware standby mode. In software standby mode it
retains its previous setting.
7.9.3 Pin Functions
The port 9 pins are also used for SCI input and output (TxD, RxD, SCK), and for IRQ
input. Table 7-14 describes the selection of pin functions.
160
7
6
P9 DDR
1
1
Reserved bits
7
6
1
1
Reserved bits
5
4
P9 DDR
P9 DDR
5
4
0
0
W
W
Port 9 data direction 5 to 0
These bits select input or
output for port 9 pins
5
4
P9
P9
5
4
0
0
R/W
R/W
Port 9 data 5 to 0
These bits store data
for port 9 pins
3
2
P9 DDR
P9 DDR
3
2
0
0
W
W
3
2
P9
P9
3
2
0
0
R/W
R/W
1
0
P9 DDR
1
0
0
0
W
W
1
0
P9
P9
1
0
0
0
R/W
R/W
and IRQ
5
4

Advertisement

Table of Contents
loading

This manual is also suitable for:

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

Table of Contents