![NEC V850/SC1 Скачать руководство пользователя страница 168](http://html.mh-extra.com/html/nec/v850-sc1/v850-sc1_user-manual_248178168.webp)
CHAPTER 5 PORT FUNCTIONS
User’s Manual U15109EJ3V0UD
166
(1) Function of P9 pins
Port 9 is a 7-bit I/O port for which I/O settings can be controlled in 1-bit units. I/O settings are controlled via the
port 9 mode register (PM9).
In output mode, the values set to each bit are output to port 9 (P9).
When using this port in input mode, the pin statuses can be read by reading P9. Also, the values of P9 (output
latch) can be read by reading P9 while in output mode.
A software pull-up function is not implemented.
When using P9 for control signals in expansion mode, set the pin functions via the memory expansion mode
register (MM).
When a reset is input, the settings are initialized to input mode.
Caution
In the V850/SC1 and V850/SC2, when using port 9 as an I/O port, set the BIC bit of the system
control register (SYC) to 0.
Note that the BIC bit is 0 after system reset.
(2) Control register
(a) Port 9 mode register (PM9)
PM9 can be read/written in 8- or 1-bit units.
After reset:
7FH
R/W
Address: FFFFF032H
7
6
5
4
3
2
1
0
PM9
0
PM96
PM95
PM94
PM93
PM92
PM91
PM90
PM9n
Control of I/O mode (n = 0 to 6)
0
Output mode
1
Input mode