English
Language : 

HD64F3039F18 Datasheet, PDF (168/710 Pages) Renesas Technology Corp – Renesas 16-Bit Single-Chip Microcomputer H8 Family / H8/300H Series
Section 7 I/O Ports
Port 2 Data Register (P2DR)
P2DR is an 8-bit readable/writable register that stores data for pins P27 to P20.
Bit
7
6
5
4
3
2
1
0
P2 7
P2 6
P2 5
P2 4
P2 3
P2 2
P2 1
P2 0
Initial value
0
0
0
0
0
0
0
0
Read/Write
R/W
R/W R/W
R/W
R/W
R/W
R/W
R/W
Port 2 data 7 to 0
These bits store data for port 2 pins
When a bit in P2DDR is set to 1, if port 2 is read the value of the corresponding P2DR bit is
returned directly, regardless of the actual state of the pin. When a bit in P2DDR is cleared to 0, if
port 2 is read the corresponding pin level is read.
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 Control Register (P2PCR)
P2PCR is an 8-bit readable/writable register that controls the MOS input pull-up transistors in port
2.
Bit
Initial value
Read/Write
7
6
5
4
3
2
1
0
P27PCR P26PCR P25PCR P24PCR P23PCR P22PCR P21PCR P20PCR
0
0
0
0
0
0
0
0
R/W
R/W
R/W
R/W
R/W
R/W
R/W R/W
Port 2 input pull-up control 7 to 0
These bits control input pull-up
transistors built into port 2
When a P2DDR bit is cleared to 0 (selecting generic input) in modes 7 to 5, if the corresponding
bit from P27PCR to P20PCR is set to 1, the input pull-up transistor is turned on.
P2PCR is initialized to H'00 by a reset and in hardware standby mode. In software standby mode it
retains its previous setting.
Rev.3.00 Mar. 26, 2007 Page 144 of 682
REJ09B0353-0300