182
7.6.2
Register Descriptions
Table 7.8 summarizes the registers of port 5.
Table 7.8
Port 5 Registers
Initial Value
Address
*
Name
Abbreviation
R/W
Modes 1 to 4 Modes 5 to 7
H'EE004
Port 5 data direction register
P5DDR
W
H'FF
H'F0
H'FFFD4 Port 5 data register
P5DR
R/W
H'F0
H'F0
H'EE03F Port 5 input pull-up MOS control
register
P5PCR
R/W
H'F0
H'F0
Note:
*
Lower 20 bits of the address in advanced mode
Port 5 Data Direction Register (P5DDR): P5DDR is an 8-bit write-only register that can select
input or output for each pin in port 5.
Bits 7 to 4 are reserved. They are fixed at 1, and cannot be modified.
Bit
Modes
1 to 4
Initial value
Read/Write
Initial value
Read/Write
Modes
5 to 7
7
—
1
—
1
—
6
—
1
—
1
—
5
—
1
—
1
—
4
—
1
—
1
—
3
P5 DDR
1
—
0
W
3
2
P5 DDR
1
—
0
W
2
1
P5 DDR
1
—
0
W
1
0
P5 DDR
1
—
0
W
0
Reserved bits
Port 5 data direction 3 to 0
These bits select input or
output for port 5 pins
•
Modes 1 to 4 (Expanded Modes with On-Chip ROM Disabled)
P5DDR values are fixed at 1. Port 5 functions as an address bus output.
•
Mode 5 (Expanded Modes with On-Chip ROM Enabled)
Following a reset, port 5 is an input port. A pin in port 5 becomes an address output pin if the
corresponding P5DDR bit is set to 1, and an input port if this bit is cleared to 0.
•
Modes 6 and 7 (Single-Chip Mode)
Port 5 functions as an input/output port. A pin in port 5 becomes an output port if the
corresponding P5DDR bit is set to 1, and an input port if this bit is cleared to 0.
In modes 1 to 4, P5DDR bits are always read as 1, and cannot be modified.
Содержание H8/3060
Страница 10: ......
Страница 16: ......
Страница 114: ...66 ...
Страница 132: ...84 ...
Страница 144: ...96 ...
Страница 170: ...122 ...
Страница 212: ...164 ...
Страница 268: ...220 ...
Страница 332: ...284 ...
Страница 396: ...348 ...
Страница 494: ...446 ...
Страница 698: ...650 ...
Страница 729: ...681 H8 3062F ZTAT or H8 3062F ZTAT R mask version Ports 1 2 5 LED 600 Ω Figure 22 5 Sample LED Circuit ...
Страница 748: ...700 H8 3064F ZTAT B mask version Ports 1 2 5 LED 600 Ω Figure 22 8 Sample LED Circuit ...
Страница 777: ...729 H8 3062F ZTAT B mask version Ports 1 2 5 LED 600 Ω Figure 22 14 Sample LED Circuit ...
Страница 810: ...762 ...
Страница 994: ...946 ...