Section 8 I/O Ports
Rev. 6.00 Aug 04, 2006 page 226 of 680
REJ09B0145-0600
8.5
Port 4
8.5.1
Overview
Port 4 is a 3-bit I/O port and 1-bit input port, configured as shown in figure 8.4.
P4
P4
P4
P4
/
IRQ
0
/TXD
32
/RXD
32
/SCK
32
3
2
1
0
Port 4
Figure 8.4 Port 4 Pin Configuration
8.5.2
Register Configuration and Description
Table 8.11 shows the port 4 register configuration.
Table 8.11 Port 4 Registers
Name
Abbr.
R/W
Initial Value
Address
Port data register 4
PDR4
R/W
H'F8
H'FFD7
Port control register 4
PCR4
W
H'F8
H'FFE7
1. Port Data Register 4 (PDR4)
Bit
Initial value
Read/Write
7
—
1
—
6
—
1
—
5
—
1
—
4
—
1
—
3
P4
1
R
0
P4
0
R/W
2
P4
0
R/W
1
P4
0
R/W
3
2
1
0
PDR4 is an 8-bit register that stores data for port 4 pins P4
2
to P4
0
. If port 4 is read while PCR4
bits are set to 1, the values stored in PDR4 are read, regardless of the actual pin states. If port 4 is
read while PCR4 bits are cleared to 0, the pin states are read.
Upon reset, PDR4 is initialized to H'F8.
Summary of Contents for H8/38342
Page 8: ...Rev 6 00 Aug 04 2006 page vi of xxxvi...
Page 12: ...Rev 6 00 Aug 04 2006 page x of xxxvi...
Page 38: ...Rev 6 00 Aug 04 2006 page xxxvi of xxxvi...
Page 76: ...Section 1 Overview Rev 6 00 Aug 04 2006 page 38 of 680 REJ09B0145 0600...
Page 240: ...Section 7 RAM Rev 6 00 Aug 04 2006 page 202 of 680 REJ09B0145 0600...
Page 468: ...Section 12 A D Converter Rev 6 00 Aug 04 2006 page 430 of 680 REJ09B0145 0600...
Page 580: ...Section 15 Electrical Characteristics Rev 6 00 Aug 04 2006 page 542 of 680 REJ09B0145 0600...