Rev. 1.00, 05/04, page 122 of 544
7.9 Port
9
Port 9 is an 8-bit I/O port. Port 9 pins also function as the interrupt input pins, IIC_0 I/O pin,
subclock input pin, and system clock (
φ
) output pin. P97 is an NMOS push-pull output. SDA0 is
an NMOS open-drain output, and has direct bus drive capability. Port 9 has the following
registers.
•
Port 9 data direction register (P9DDR)
•
Port 9 data register (P9DR)
7.9.1
Port 9 Data Direction Register (P9DDR)
P9DDR specifies input or output for the pins of port 9 on a bit-by-bit basis.
Bit Bit
Name
Initial
Value
R/W Description
7 P97DDR
0 W
6 P96DDR
0 W
5 P95DDR
0 W
4 P94DDR
0 W
3 P93DDR
0 W
2 P92DDR
0 W
1 P91DDR
0 W
0 P90DDR
0 W
When the corresponding P9DDR bits are set to 1, pin
P96 functions as the
φ
output pin and pins P97 and
P95 to P90 become output ports. When P9DDR bits
are cleared to 0, the corresponding pins become input
ports.
7.9.2
Port 9 Data Register (P9DR)
P9DR stores output data for the port 9 pins.
Bit Bit
Name
Initial
Value R/W
Description
7 P97DR
0
R/W
6 P96DR
Undefined
*
R
5 P95DR
0
R/W
4 P94DR
0
R/W
3 P93DR
0
R/W
2 P92DR
0
R/W
1 P91DR
0
R/W
0 P90DR
0
R/W
With the exception of P96, if a port 9 read is performed
while P9DDR bits are set to 1, the P9DR values are
read directly, regardless of the actual pin states. If a
port 9 read is performed while P9DDR bits are cleared
to 0, the pin states are read.
For P96, the pin state is always read.
Note:
*
The initial value of bit 6 is determined according to the P96 pin state.
Содержание H8S/2111B
Страница 2: ...Rev 1 00 05 04 page ii of xxxiv...
Страница 8: ...Rev 1 00 05 04 page viii of xxxiv...
Страница 22: ...Rev 1 00 05 04 page xxii of xxxiv...
Страница 30: ...Rev 1 00 05 04 page xxx of xxxiv...
Страница 84: ...Rev 1 00 05 04 page 50 of 544...
Страница 100: ...Rev 1 00 05 04 page 66 of 544...
Страница 126: ...Rev 1 00 05 04 page 92 of 544...
Страница 180: ...Rev 1 00 05 04 page 146 of 544...
Страница 216: ...Rev 1 00 05 04 page 182 of 544...
Страница 254: ...Rev 1 00 05 04 page 220 of 544...
Страница 268: ...Rev 1 00 05 04 page 234 of 544...
Страница 382: ...Rev 1 00 05 04 page 348 of 544...
Страница 462: ...Rev 1 00 05 04 page 428 of 544...
Страница 464: ...Rev 1 00 05 04 page 430 of 544...
Страница 488: ...Rev 1 00 05 04 page 454 of 544...
Страница 496: ...Rev 1 00 05 04 page 462 of 544...
Страница 574: ...Rev 1 00 05 04 page 540 of 544...
Страница 581: ......
Страница 582: ...H8S 2111B Hardware Manual...