EasyManua.ls Logo

Renesas H8 Series - Page 245

Renesas H8 Series
697 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Section 8 I/O Ports
Rev. 7.00 Mar 10, 2005 page 203 of 652
REJ09B0042-0700
Port Data Register 3 (PDR3)
Bit
Initial value
Read/Write
7
P3
0
R/W
6
P3
0
R/W
5
P3
0
R/W
4
P3
0
R/W
3
P3
0
R/W
0
P3
0
0
R/W
2
P3
0
R/W
1
P3
0
R/W
215476 3
PDR3 is an 8-bit register that stores data for port 3 pins P3
7
to P3
0
. If port 3 is read while PCR3
bits are set to 1, the values stored in PDR3 are read, regardless of the actual pin states. If port 3 is
read while PCR3 bits are cleared to 0, the pin states are read.
Upon reset, PDR3 is initialized to H'00.
Port Control Register 3 (PCR3)
Bit
Initial value
Read/Write
7
PCR3
0
W
6
PCR3
0
W
5
PCR3
0
W
4
PCR3
0
W
3
PCR3
0
W
0
PCR3
0
0
W
2
PCR3
0
W
1
PCR3
0
W
2154 376
PCR3 is an 8-bit register for controlling whether each of the port 3 pins P3
7
to P3
0
functions as an
input pin or output pin. Setting a PCR3 bit to 1 makes the corresponding pin an output pin, while
clearing the bit to 0 makes the pin an input pin. The settings in PCR3 and in PDR3 are valid only
when the corresponding pin is designated in PMR3 as a general I/O pin.
Upon reset, PCR3 is initialized to H'00.
PCR3 is a write-only register, which is always read as all 1s.

Table of Contents

Other manuals for Renesas H8 Series

Related product manuals