Renesas F-ZTAT H8 Series Hardware Manual page 282

Hide thumbs Also See for F-ZTAT H8 Series:
Table of Contents

Advertisement

Section 9 I/O Ports
In modes 5 to 7, P2DDR is a write-only register. Its value cannot be read. All bits return 1 when
read.
P2DDR is initialized to H'00 by a reset and in hardware standby mode. In software standby mode
it retains its previous setting. If a P2DDR bit is set to 1, the corresponding pin maintains its output
state in software standby mode.
Port 2 Data Register (P2DR)
P2DR is an 8-bit readable/writable register that stores output data for pins P2
in P2DDR is set to 1, if port 2 is read the value of the corresponding P2DR bit is returned. When a
bit in P2DDR is cleared to 0, if port 2 is read the corresponding pin level is read.
Bit
7
P2
7
Initial value
0
Read/Write
R/W
P2DR is initialized to H'00 by a reset and in hardware standby mode. In software standby mode it
retains its previous setting.
Port 2 Input Pull-Up MOS Control Register (P2PCR)
P2PCR is an 8-bit readable/writable register that controls the MOS input pull-up transistors in port
2.
Bit
7
P2 PCR
7
Initial value
0
Read/Write
R/W
In modes 5 to 7, when a P2DDR bit is cleared to 0 (selecting generic input), if the corresponding
bit from P2
PCR to P2
7
Rev. 3.00 Mar 21, 2006 page 254 of 814
REJ09B0302-0300
6
5
P2
P2
6
5
0
0
R/W
R/W
Port 2 data 7 to 0
These bits store data for port 2 pins
6
5
P2 PCR
P2 PCR
6
5
0
0
R/W
R/W
Port 2 input pull-up MOS control 7 to 0
These bits control input pull-up
transistors built into port 2
PCR is set to 1, the input pull-up MOS is turned on.
0
4
3
P2
P2
4
3
0
0
R/W
R/W
4
3
P2 PCR
P2 PCR
P2 PCR
4
3
0
0
R/W
R/W
to P2
. When a bit
7
0
2
1
P2
P2
P2
2
1
0
0
R/W
R/W
R/W
2
1
P2 PCR
P2 PCR
2
1
0
0
0
R/W
R/W
R/W
0
0
0
0
0

Advertisement

Table of Contents
loading

Table of Contents