h8s-2138 Renesas Electronics Corporation., h8s-2138 Datasheet - Page 258

no-image

h8s-2138

Manufacturer Part Number
h8s-2138
Description
Renesas 16-bit Single-chip Microcomputer H8s Family/h8s/2100 Series
Manufacturer
Renesas Electronics Corporation.
Datasheet
Section 8 I/O Ports
Port 2 Data Register (P2DR)
P2DR is an 8-bit readable/writable register that stores output data for the port 2 pins (P27 to P20).
If a port 2 read is performed while P2DDR bits are set to 1, the P2DR values are read directly,
regardless of the actual pin states. If a port 2 read is performed while P2DDR bits are cleared to 0,
the pin states are read.
P2DR is initialized to H'00 by a reset and in hardware standby mode. It retains its prior state in
software standby mode.
Port 2 MOS Pull-Up Control Register (P2PCR)
P2PCR is an 8-bit readable/writable register that controls the port 2 on-chip MOS input pull-ups
on a bit-by-bit basis.
In modes 2 and 3, the MOS input pull-up is turned on when a P2PCR bit is set to 1 while the
corresponding P2DDR bit is cleared to 0 (input port setting).
P2PCR is initialized to H'00 by a reset and in hardware standby mode. It retains its prior state in
software standby mode.
Rev. 4.00 Jun 06, 2006 page 204 of 1004
REJ09B0301-0400
Bit
Initial value
R/W
Bit
Initial value
R/W
Modes 2 and 3 (EXPE = 0)
The corresponding port 2 pins are output ports or PWM outputs when P2DDR bits are set to 1,
and input ports when cleared to 0.
P27 can be used as an on-chip supporting module output pin regardless of the P27DDR setting.
P27PCR
P27DR
R/W
R/W
7
0
7
0
P26PCR
P26DR
R/W
R/W
6
0
6
0
P25PCR
P25DR
R/W
R/W
5
0
5
0
P24PCR
P24DR
R/W
R/W
4
0
4
0
P23PCR
P23DR
R/W
R/W
3
0
3
0
P22PCR
P22DR
R/W
R/W
2
0
2
0
P21PCR
P21DR
R/W
R/W
1
0
1
0
P20PCR
P20DR
R/W
R/W
0
0
0
0

Related parts for h8s-2138