Port 2; Overview; Register Configuration And Description - Renesas H8 Series Hardware Manual

8-bit single-chip microcomputer
Hide thumbs Also See for H8 Series:
Table of Contents

Advertisement

8.3

Port 2

8.3.1

Overview

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

Register Configuration and Description

Table 8.5 shows the port 2 register configuration.
Table 8.5
Port 2 Registers
Name
Port data register 2
Port control register 2
Port Data Register 2 (PDR2)
Bit
0 *
Initial value
Read/Write
Note:
* Bits 7 to 3 are reserved; they are always read as 0 and cannot be modified.
PDR2 is an 8-bit register that stores data for port 2 pins P2
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'00.
Port 2
Figure 8.2 Port 2 Pin Configuration
Abbr.
PDR2
PCR2
7
6
5
0 *
0 *
P2 /TXD
2
P2 /RXD
1
P2 /SCK
0
3
R/W
Initial Value
R/W
H'00
W
H'00
4
3
0 *
0 *
R/W
to P2
. If port 2 is read while PCR2
2
0
Rev. 6.00 Sep 12, 2006 page 177 of 526
Section 8 I/O Ports
Address
H'FFD5
H'FFE5
2
1
P2
P2
P2
2
1
0
0
R/W
R/W
REJ09B0326-0600
0
0
0

Advertisement

Table of Contents
loading

Table of Contents