h8s-2646 Renesas Electronics Corporation., h8s-2646 Datasheet - Page 261

no-image

h8s-2646

Manufacturer Part Number
h8s-2646
Description
Renesas 16-bit Single-chip Microcomputer H8s Family/h8s/2600 Series
Manufacturer
Renesas Electronics Corporation.
Datasheet
Port 2 Data Direction Register (P2DDR)
P2DDR is an 8-bit write-only register that specifies whether individual bits are input or output for
each of the pins in port 2. It is not possible to read it. An undefined value is returned if an attempt
is made to read it.
Setting one of the bits of P2DDR to 1 sets the corresponding pin in port 2 to output, and clearing
the bit to 0 sets the corresponding pin to input.
P2DDR is initialized to H'00 if a reset occurs and in the hardware standby mode. The previous
values are retained by P2DDR in the software standby mode.
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).
P2DR is initialized to H'00 if a reset occurs and in the hardware standby mode. The previous
values are retained in the software standby mode.
Port 2 Register (PORT2)
Note: * Determined by state of pins P27 to P20.
PORT2 is an 8-bit read-only register. It is not possible to write to it. It reflects the states of the
pins. Always write output data from the port 2 pins (P27 to P20) to P2DR.
Bit
Initial value :
R/W
Bit
Initial value :
R/W
Bit
Initial value :
R/W
:
:
:
:
:
:
P27DDR P26DDR P25DDR P24DDR P23DDR P22DDR P21DDR P20DDR
P27DR
R/W
P27
— *
W
R
7
0
7
0
7
P26DR
R/W
P26
— *
W
R
6
0
6
0
6
P25DR
R/W
P25
— *
W
R
5
0
5
0
5
P24DR
R/W
P24
— *
W
R
4
0
4
0
4
Rev. 5.00 Sep 22, 2005 page 235 of 1136
P23DR
R/W
P23
— *
W
R
3
0
3
0
3
P22DR
R/W
P22
— *
W
R
2
0
2
0
2
Section 9 I/O Ports
REJ09B0257-0500
P21DR
R/W
P21
— *
W
R
1
0
1
0
1
P20DR
R/W
P20
— *
W
R
0
0
0
0
0

Related parts for h8s-2646