Port Data Register 8 (Pdr8); Port Control Register 8 (Pcr8) - Hitachi H8/3664 Hardware Manual

Table of Contents

Advertisement

9.6.3

Port Data Register 8 (PDR8)

Bit
7
P87
Initial value
0
Read/Write
R/W
PDR8 is an 8-bit register that stores data for port 8 pins P87 to P80. If port 8 is read while PCR8
bits are set to 1, the values stored in PDR8 are read, regardless of the actual pin states. If port 8 is
read while PCR8 bits are cleared to 0, the pin states are read.
Upon reset, PDR8 is initialized to H'00.
9.6.4

Port Control Register 8 (PCR8)

Bit
7
PCR87
Initial value
0
Read/Write
W
PCR8 is an 8-bit register for controlling whether each of the port 8 pins P87 to P80 functions as an
input or output pin. Setting a PCR8 bit to 1 makes the corresponding pin an output pin, while
clearing the bit to 0 makes the pin an input pin.
Upon reset, PCR8 is initialized to H'00.
PCR8 is a write-only register, which is always read as all 1s.
6
5
P86
P85
0
0
R/W
R/W
6
5
PCR86
PCR85
0
0
W
W
4
3
P84
P83
0
0
R/W
R/W
4
3
PCR84
PCR83
0
0
W
W
2
1
P82
P81
0
0
R/W
R/W
2
1
PCR82
PCR81
0
0
W
W
0
P80
0
R/W
0
PCR80
0
W
157

Advertisement

Table of Contents
loading

Table of Contents