CHAPTER 4 PORT FUNCTIONS
Preliminary User’s Manual U15905EJ1V0UD
133
(2) Registers
(a) Port register 9 (P9)
Port register 9 (P9) is a 16-bit register that controls reading a pin level and writing an output level. This
register can be read or written in 8-bit or 1-bit units.
If the higher 8 bits of the P9 register is used as P9H and the lower 8 bits as P9L, however, P9H and P9L
can be manipulated in 8-bit or 1-bit units.
P915
Outputs 0.
Outputs 1.
P9n
0
1
Controls output data (in output mode) (n = 0 to 15)
P9
P914
P913
P912
P911
P910
P99
P98
After reset: Undefined
R/W
Address:
FFFFF412H, FFFFF413H
P97
P96
P95
P94
P93
P92
P91
P90
8
9
10
11
12
13
14
15
Remarks 1.
In input mode: When port 9 (P9) is read, the pin level at that time is read. When written, the
data written to P9 is written. The input pin is not affected.
In output mode: When port 9 (P9) is read, the value of P9 is read. When a value is written to P9,
it is immediately output.
2.
After reset, an undefined value (pin input level) is read from P9 in the input mode. When P9 is
read in the output mode, 00H (value of the output latch) is read.
(b) Port mode register 9 (PM9)
This is a 16-bit register that specifies the input or output mode.
This register can be read or written only in 16-bit units.
If the higher 8 bits of the PM9 register is used as PM9H and the lower 8 bits as PM9L, however, PM9H and
PM9L can be manipulated in 8-bit or 1-bit units.
PM97
Output mode
Input mode
PM9n
0
1
Controls input/output mode (n = 0 to 15)
PM96
PM95
PM94
PM93
PM92
PM91
PM90
After reset:
FFFFH R/W
Address:
FFFFF432H, FFFFF433H
PM915
PM9
PM914
PM913
PM912
PM911
PM910
PM99
PM98
8
9
10
11
12
13
14
15
Содержание V850ES/SA2 UPD703201
Страница 2: ...Preliminary User s Manual U15905EJ1V0UD 2 MEMO ...
Страница 284: ... 4 6 7 6 7 8 9 9 6 Note 1 Note 2 0 0 9 9 6 1 1 0 1 9 0 0 0 6 7 0 0 0 0 0 0 0 1 1 1 0 0 0 0 3 1 6 7 6 7 ...
Страница 285: ... 6 7 ...
Страница 516: ...Preliminary User s Manual U15905EJ1V0UD 516 MEMO ...