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

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
Port 5 Data Direction Register (P5DDR)
P5DDR is an 8-bit write-only register, the individual bits of which specify input or output for the
pins of port 5. P5DDR cannot be read; if it is, an undefined value will be returned. Bits 7 to 3 are
reserved.
Setting a P5DDR bit to 1 makes the corresponding port 5 pin an output pin, while clearing the bit
to 0 makes the pin an input pin.
P5DDR is initialized to H'F8 by a reset and in hardware standby mode. It retains its prior state in
software standby mode. As SCI0 is initialized, the pin states are determined by the IIC0 ICCR,
P5DDR, and P5DR specifications.
Port 5 Data Register (P5DR)
P5DR is an 8-bit readable/writable register that stores output data for the port 5 pins (P52 to P50).
If a port 5 read is performed while P5DDR bits are set to 1, the P5DR values are read directly,
regardless of the actual pin states. If a port 5 read is performed while P5DDR bits are cleared to 0,
the pin states are read.
Bits 7 to 3 are reserved; they cannot be modified and are always read as 1.
P5DR is initialized to H'F8 by a reset and in hardware standby mode. It retains its prior state in
software standby mode.
Bit
Initial value
Read/Write
Bit
Initial value
Read/Write
7
1
7
1
6
1
6
1
5
1
5
1
4
1
4
1
Rev. 4.00 Jun 06, 2006 page 219 of 1004
3
1
3
1
P52DDR
P52DR
R/W
W
2
0
2
0
P51DDR
P51DR
Section 8 I/O Ports
R/W
REJ09B0301-0400
W
1
0
1
0
P50DDR
P50DR
R/W
W
0
0
0
0

Related parts for h8s-2138