CHAPTER 4 PORT FUNCTIONS
User’s Manual U16896EJ2V0UD
92
(1) Port 9 register (P9)
0 is output
1 is output
P9n
0
1
Control of output data (in output mode) (n = 0, 1, 6 to 9, 13 to 15)
After reset: 00H (output latch) R/W Address: P9 FFFFF412H,
P9L FFFFF412H, P9H FFFFF413H
P915
P9 (P9H
Note
)
P914
P913
0
0
0
P99
P98
P97
P96
0
0
0
0
P91
P90
8
9
10
11
12
13
14
15
(P9L)
Note
When reading from or writing to bits 8 to 15 of the P9 register in 8-bit or 1-bit units,
specify these bits as bits 0 to 7 of the P9H register.
Remark
The P9 register can be read or written in 16-bit units.
However, when the higher 8 bits and the lower 8 bits of the P9 register are used as
the P9H register and as the P9L register, respectively, these registers can be read or
written in 8-bit or 1-bit units.
(2) Port 9 mode register (PM9)
PM97
Output mode
Input mode
PM9n
0
1
Control of I/O mode (n = 0, 1, 6 to 9, 13 to 15)
PM96
1
1
1
1
PM91
PM90
After reset: FFFFH R/W Address: PM9 FFFFF432H,
PM9L FFFFF432H, PM9H FFFFF433H
PM915
PM9 (PM9H
Note
)
PM914
PM913
1
1
1
PM99
PM98
8
9
10
11
12
13
14
15
(PM9L)
Note
When reading from or writing to bits 8 to 15 of the PM9 register in 8-bit or 1-bit units,
specify these bits as bits 0 to 7 of the PM9H register.
Remark
The PM9 register can be read or written in 16-bit units.
However, when the higher 8 bits and the lower 8 bits of the PM9 register are used as
the PM9H register and as the PM9L register, respectively, this register can be read or
written in 8-bit or 1-bit units.