English
Language : 

HD6473032F16 Datasheet, PDF (280/847 Pages) Renesas Technology Corp – Hardware Manual Renesas 16-Bit Single-Chip Microcomputer H8 Family/H8/300H Series
Section 9 I/O Ports
9.2.2 Register Configuration
Table 9.2 summarizes the registers of port 1.
Table 9.2 Port 1 Registers
Address* Name
H'FFC0
Port 1 data direction
register
H'FFC2
Port 1 data register
Note: * Lower 16 bits of the address.
Abbreviation R/W
P1DDR
W
P1DR
R/W
Initial Value
Modes 1 to 4 Modes 5 to 7
H'FF
H'00
H'00
H'00
Port 1 Data Direction Register (P1DDR)
P1DDR is an 8-bit write-only register that can select input or output for each pin in port 1.
Bit
7
6
5
4
3
2
1
0
P17DDR P16DDR P15DDR P14DDR P13DDR P12DDR P11DDR P10DDR
Modes Initial value 1
1
1
1
1
1
1
1
1 to 4 Read/Write —
—
—
—
—
—
—
—
Modes Initial value 0
0
0
0
0
0
0
0
5 to 7 Read/Write W
W
W
W
W
W
W
W
Port 1 data direction 7 to 0
These bits select input or
output for port 1 pins
• Modes 1 to 4 (Expanded Modes with On-Chip ROM Disabled)
P1DDR values are fixed at 1 and cannot be modified. Port 1 functions as an address bus.
• Modes 5 and 6 (Expanded Modes with On-Chip ROM Enabled)
A pin in port 1 becomes an address output pin if the corresponding P1DDR bit is set to 1, and a
generic input pin if this bit is cleared to 0.
• Mode 7 (Single-Chip Mode)
Port 1 functions as an input/output port. A pin in port 1 becomes an output pin if the
corresponding P1DDR bit is set to 1, and an input pin if this bit is cleared to 0.
In modes 5 to 7, P1DDR is a write-only register. Its value cannot be read. All bits return 1 when
read.
Rev. 3.00 Mar 21, 2006 page 250 of 814
REJ09B0302-0300