Renesas H8/3847R Series Hardware Manual page 252

8-bit single-chip microcomputer super low power
Table of Contents

Advertisement

Section 8 I/O Ports
1. Port Data Register 2 (PDR2)
Bit
7
P2
Initial value
0
Read/Write
R/W
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.
2. Port Control Register 2 (PCR2)
Bit
7
PCR2
Initial value
0
Read/Write
W
PCR2 is an 8-bit register for controlling whether each of the port 2 pins P2
input pin or output pin. Setting a PCR2 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 PCR2 and PDR2 are valid only
when the corresponding pin is designated in PMR1 as a general I/O pin.
Upon reset, PCR2 is initialized to H'00.
PCR2 is a write-only register, which is always read as all 1s.
3. Port Mode Register 2 (PMR2)
• H8/3847R Group, H8/3847S Group
Bit
7
Initial value
1
Read/Write
PMR2 is an 8-bit read/write register that controls the selection of pin functions for port 2 pins P2
P2
, and P2
, and the PMOS on/off state for the P2
1
3
Upon reset, PMR2 is initialized to H'D8.
Rev. 6.00 Aug 04, 2006 page 214 of 680
REJ09B0145-0600
6
5
P2
P2
7
6
5
0
0
R/W
R/W
6
5
PCR2
PCR2
7
6
0
0
W
W
6
5
POF1
1
0
R/W
4
3
P2
P2
4
3
0
0
R/W
R/W
to P2
7
0
4
3
PCR2
PCR2
5
4
3
0
0
W
W
4
3
1
1
/SO
pin.
2
1
2
1
P2
P2
2
1
0
0
R/W
R/W
. If port 2 is read while PCR2
2
1
PCR2
PCR2
2
1
0
0
W
W
to P2
functions as an
7
0
2
1
SO1
SI1
0
0
R/W
R/W
0
P2
0
0
R/W
0
PCR2
0
0
W
0
SCK1
0
R/W
,
0

Advertisement

Table of Contents
loading

Table of Contents