H8S2110B RENESAS [Renesas Technology Corp], H8S2110B Datasheet - Page 135

no-image

H8S2110B

Manufacturer Part Number
H8S2110B
Description
Renesas 16-Bit Single-Chip Microcomputer Renesas H8S Family/H8S/2100 Series
Manufacturer
RENESAS [Renesas Technology Corp]
Datasheet
7.3
Port 2 is an 8-bit I/O port. Port 2 has an on-chip input pull-up MOS function that can be controlled
by software. Port 2 has the following registers.
7.3.1
P2DDR specifies input or output for the pins of port 2 on a bit-by-bit basis.
7.3.2
P2DR stores output data for port 2.
Bit
7
6
5
4
3
2
1
0
Bit
7
6
5
4
3
2
1
0
Port 2 data direction register (P2DDR)
Port 2 data register (P2DR)
Port 2 pull-up MOS control register (P2PCR)
Bit Name
P27DDR
P26DDR
P25DDR
P24DDR
P23DDR
P22DDR
P21DDR
P20DDR
Bit Name
P27DR
P26DR
P25DR
P24DR
P23DR
P22DR
P21DR
P20DR
Port 2
Port 2 Data Direction Register (P2DDR)
Port 2 Data Register (P2DR)
Initial Value
0
0
0
0
0
0
0
0
Initial Value
0
0
0
0
0
0
0
0
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
The corresponding port 2 pins are output ports
when P2DDR bits are set to 1, and input ports
when P2DDR bits are cleared to 0.
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.
Description
Description
Rev. 2.00 Mar 21, 2006 page 97 of 518
Section 7 I/O Ports
REJ09B0299-0200

Related parts for H8S2110B