Port 2; Port 2 Data Direction Register (P2Ddr) - Renesas H8S/2437 Hardware Manual

Renesas 16-bit single-chip microcomputer h8s family / h8s / 2600 series
Table of Contents

Advertisement

7.3

Port 2

Port 2 is an 8-bit I/O port. Port 2 pins also function as address bus pins, address/data multiplex bus
pins, and TPU I/O pins. Pin functions change according to the operating mode.
Port 2 has the following registers.

• Port 2 data direction register (P2DDR)

• Port 2 data register (P2DR)
• Port 2 register (PORT2)
• Port 2 pull-up MOS control register (P2PCR)
7.3.1
Port 2 Data Direction Register (P2DDR)
The individual bits in P2DDR specify input or output for the pins of port 2. The read value is
undefined.
Bit
Bit Name
7
P27DDR
6
P26DDR
5
P25DDR
4
P24DDR
3
P23DDR
2
P22DDR
1
P21DDR
0
P20DDR
Initial Value R/W
0
W
0
W
0
W
0
W
0
W
0
W
0
W
0
W
Description
In normal extended mode
The corresponding port 2 pin is an address output
when a P2DDR bit is set to 1, and an input port
when cleared to 0.
In multiplex extended mode
Operation is not affected.
In single-chip mode
While a general I/O port function is selected, the
corresponding port 2 pin is an output port when a
P2DDR bit is set to 1, and an input port when
cleared to 0.
Rev. 1.00, 09/03, page 143 of 704

Advertisement

Table of Contents
loading

Table of Contents