Port 2; Port 2 Data Direction Register (P2Ddr); Port 2 Data Register (P2Dr) - Renesas H8S/2368 Series Hardware Manual

16-bit single-chip microcomputer
Table of Contents

Advertisement

9.2

Port 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)
9.2.1
Port 2 Data Direction Register (P2DDR)
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.
Bit
Bit Name
Initial Value
7
P27DDR
0
6
P26DDR
0
5
P25DDR
0
4
P24DDR
0
3
P23DDR
0
2
P22DDR
0
1
P21DDR
0
0
P20DDR
0
9.2.2
Port 2 Data Register (P2DR)
P2DR stores output data for the port 2 pins.
Bit
Bit Name
Initial Value
7
P27DR
0
6
P26DR
0
5
P25DR
0
4
P24DR
0
3
P23DR
0
2
P22DR
0
1
P21DR
0
0
P20DR
0
R/W
Description
W
When a pin function is specified to a general purpose
I/O, setting this bit to 1 makes the corresponding port
W
1 pin an output pin, while clearing this bit to 0 makes
W
the pin an input pin.
W
W
W
W
W
R/W
Description
R/W
Output data for a pin is stored when the pin function
is specified to a general purpose I/O.
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Rev. 2.00, 05/03, page 313 of 820

Advertisement

Table of Contents
loading

This manual is also suitable for:

H8s seriesH8s/2300 series

Table of Contents