Port 2; Overview; Register Configuration And Description; Port Data Register 2 (Pdr2) - Hitachi H8/3664 Hardware Manual

Table of Contents

Advertisement

9.3

Port 2

9.3.1

Overview

Port 2 is a 3-bit I/O port, configured as shown in figure 9.2.
9.3.2

Register Configuration and Description

Table 9.3 shows the port 2 register configuration.
Table 9.3
Port 2 Registers
Name
Port data register 2
Port control register 2
9.3.3

Port Data Register 2 (PDR2)

Bit
7
Initial value
1*
Read/Write
Note: * Bits 7 to 3 are reserved; they are always read as 1 and cannot be modified.
PDR2 is an 8-bit register that stores data for port 2 pins P22 to P20. If port 2 is read while PCR2
bits are set to 1, the values stored in PDR2 are read, regardless of the actual pin states. If port 2 is
read while PCR2 bits are cleared to 0, the pin states are read.
Upon reset, PDR2 is initialized to H'F8.
146
Port 2
Figure 9.2 Port 2 Pin Configuration
Abbrev.
PDR2
PCR2
6
5
1*
1*
P22/TXD
P21/RXD
P20/SCK3
R/W
Initial Value
R/W
H'F8
W
H'00
4
3
1*
1*
Address
H'FFD5
H'FFE5
2
1
P22
P21
0
0
R/W
R/W
0
P20
0
R/W

Advertisement

Table of Contents
loading

Table of Contents