h8s-2158 Renesas Electronics Corporation., h8s-2158 Datasheet - Page 268

no-image

h8s-2158

Manufacturer Part Number
h8s-2158
Description
Renesas 16-bit Single-chip Microcomputer H8s Family/h8s/2100 Series
Manufacturer
Renesas Electronics Corporation.
Datasheet
Section 9 I/O Ports
9.3.1
The individual bits of P3DDR specify input or output for the pins of port 3.
9.3.2
P3DR stores output data for the port 3 pins.
Rev. 3.00 Jan 25, 2006 page 216 of 872
REJ09B0286-0300
Bit
7
6
5
4
3
2
1
0
Bit
7
6
5
4
3
2
1
0
Bit Name
P37DDR
P36DDR
P35DDR
P34DDR
P33DDR
P32DDR
P31DDR
P30DDR
Bit Name
P37DR
P36DR
P35DR
P34DR
P33DR
P32DR
P31DR
P30DR
Port 3 Data Direction Register (P3DDR)
Port 3 Data Register (P3DR)
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Initial Value
Initial Value
W
W
W
W
W
W
W
W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Description
In extended mode:
The port functions as the data bus regardless of
the values in these bits.
In single-chip mode:
The corresponding port 3 pins are output ports
when the P3DDR bits are set to 1, and input ports
when cleared to 0.
Description
In extended mode:
If a port 3 read is performed while the P3DDR bits
are set to 1, the P3DR values are read. When the
P3DDR bits are cleared to 0, 1 is read.
In single-chip mode:
P3DR stores output data for the port 3 pins that
are used as the general output port.
If a port 3 read is performed while the P3DDR bits
are set to 1, the P3DR values are read. If a port 3
read is performed while the P3DDR bits are
cleared to 0, the pin states are read.

Related parts for h8s-2158