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

no-image

h8s-2172

Manufacturer Part Number
h8s-2172
Description
Renesas 16-bit Single-chip Microcomputer H8s Family H8s-2100 Series
Manufacturer
Renesas Electronics Corporation.
Datasheet
8.2
Port 2 is an 8-bit I/O port that also has other functions. The port 2 has the following registers.
• Port 2 data direction register (P2DDR)
• Port 2 data register (P2DR)
• Port 2 register (PORT2)
8.2.1
The individual bits of P2DDR specify input or output for the pins of port 2. P2DDR cannot be
read; if it is, an undefined value will be read.
8.2.2
P2DR stores output data for the port 2 pins.
Rev. 2.00, 03/04, page 226 of 534
Bit
7
6
5
4
3
2
1
0
Bit
7
6
5
4
3
2
1
0
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
R/W
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
Description
When a pin function is specified to a general purpose
I/O, setting this bit to 1 makes the corresponding port 2
pin an output pin, while clearing this bit to 0 makes the
pin an input pin.
Description
Output data for a pin is stored when the pin function is
specified to a general purpose output.

Related parts for h8s-2172