Renesas F-ZTAT H8 Series Hardware Manual page 210

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

Advertisement

8. I/O Ports
Port Control Register 2 (PCR2)
Bit
PCR2
Initial value
Read/Write
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 in PDR2 are valid only
when the corresponding pin is designated in PMR2 as a general I/O pin.
Upon reset, PCR2 is initialized to H'00.
PCR2 is a write-only register. All bits are read as 1.
Port Mode Register 2 (PMR2)
PMR2 is an 8-bit read/write register, controlling the selection of pin functions for pins P2
and P4
, controlling the PMOS on/off option for pins P3
3
Upon reset, PMR2 is initialized to H'C0.
Note: * P2
pin function switching and the P3
1
are not provided in the H8/3854 Group.
H8/3857 Group
Bit
Initial value
Read/Write
H8/3854 Group
Bit
Initial value
Read/Write
In the H8/3854 Group, bits 2 and 1 are reserved, and must always be cleared to 0.
Rev.3.00 Jul. 19, 2007 page 184 of 532
REJ09B0397-0300
7
6
5
PCR2
PCR2
7
6
0
0
0
W
W
W
7
6
5
1
1
0
R/W
7
6
5
1
1
0
4
3
PCR2
PCR2
5
4
3
0
0
W
W
/SO
*.
2
1
/SO
pin are H8/3857 Group functions only, and
2
1
4
3
IRQ0
0
0
R/W
R/W
4
3
IRQ0
0
0
R/W
2
1
PCR2
PCR2
PCR2
2
1
0
0
W
W
to P2
functions as an
7
0
, P2
0
2
1
POF1
UD
0
0
R/W
R/W
2
1
0
0
0
0
0
W
*,
1
0
IRQ4
0
R/W
0
IRQ4
0
R/W

Advertisement

Table of Contents
loading

Table of Contents