Register Configuration - Hitachi H8S/2646 Hardware Manual

Hitachi 16-bit single-chip microcomputer h8s/2646 series
Table of Contents

Advertisement

9.2.2

Register Configuration

Table 9-2 shows the port 1 register configuration.
Table 9-2
Port 1 Registers
Name
Port 1 data direction register
Port 1 data register
Port 1 register
Note: * Lower 16 bits of the address.
Port 1 Data Direction Register (P1DDR)
Bit
:
7
P17DDR P16DDR P15DDR P14DDR P13DDR P12DDR P11DDR P10DDR
Initial value :
0
R/W
:
W
P1DDR is an 8-bit write-only register, the individual bits of which specify input or output for the
pins of port 1. P1DDR cannot be read; if it is, an undefined value will be read.
Setting a P1DDR bit to 1 makes the corresponding port 1 pin an output pin, while clearing the bit
to 0 makes the pin an input pin.
P1DDR is initialized to H'00 by a reset, and in hardware standby mode. It retains its prior state in
software standby mode.
Port 1 Data Register (P1DR)
Bit
:
7
P17DR
Initial value :
0
R/W
:
R/W
P1DR is an 8-bit readable/writable register that stores output data for the port 1 pins (P17 to P10).
P1DR is initialized to H'00 by a reset, and in hardware standby mode. It retains its prior state in
software standby mode.
222
Abbreviation
P1DDR
P1DR
PORT1
6
5
0
0
W
W
6
5
P16DR
P15DR
P14DR
0
0
R/W
R/W
R/W
Initial Value
W
H'00
R/W
H'00
R
Undefined
4
3
0
0
W
W
4
3
P13DR
P12DR
0
0
R/W
R/W
R/W
Address*
H'FE30
H'FF00
H'FFB0
2
1
0
0
W
W
W
2
1
P11DR
P10DR
0
0
R/W
R/W
0
0
0
0

Advertisement

Table of Contents
loading

Table of Contents