169
7.2
Port 1
7.2.1
Overview
Port 1 is an 8-bit input/output port also used for address output, with the pin configuration shown
in figure 7.1. The pin functions differ according to the operating mode. In modes 1 to 4 (expanded
modes with on-chip ROM disabled), they are address bus output pins (A
7
to A
0
).
In mode 5 (expanded modes with on-chip ROM enabled), settings in the port 1 data direction
register (P1DDR) can designate pins for address bus output (A
7
to A
0
) or generic input. In modes 6
and 7 (single-chip mode), port 1 is a generic input/output port.
Pins in port 1 can drive one TTL load and a 90-pF capacitive load. They can also drive an LED or
a darlington transistor pair.
Port 1
P1 /A
P1 /A
P1 /A
P1 /A
P1 /A
P1 /A
P1 /A
P1 /A
7
6
5
4
3
2
1
0
7
6
5
4
3
2
1
0
P1 (input/output)
P1 (input/output)
P1 (input/output)
P1 (input/output)
P1 (input/output)
P1 (input/output)
P1 (input/output)
P1 (input/output)
7
6
5
4
3
2
1
0
A (output)
A (output)
A (output)
A (output)
A (output)
A (output)
A (output)
A (output)
7
6
5
4
3
2
1
0
Port 1 pins
Modes 6 and 7
Modes 1 to 4
P1 (input)/A (output)
P1 (input)/A (output)
P1 (input)/A (output)
P1 (input)/A (output)
P1 (input)/A (output)
P1 (input)/A (output)
P1 (input)/A (output)
P1 (input)/A (output)
7
6
5
4
3
2
1
0
Mode 5
7
6
5
4
3
2
1
0
Figure 7.1 Port 1 Pin Configuration
7.2.2
Register Descriptions
Table 7.2 summarizes the registers of port 1.
Table 7.2
Port 1 Registers
Initial Value
Address
*
Name
Abbreviation R/W
Modes 1 to 4
Modes 5 to 7
H'EE000
Port 1 data direction register
P1DDR
W
H'FF
H'00
H'FFFD0
Port 1 data register
P1DR
R/W
H'00
H'00
Note:
*
Lower 20 bits of the address in advanced mode
Содержание 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 ...