![NEC V850/SC1 User Manual Download Page 191](http://html.mh-extra.com/html/nec/v850-sc1/v850-sc1_user-manual_248178191.webp)
CHAPTER 5 PORT FUNCTIONS
User’s Manual U15109EJ3V0UD
189
(1) Function of P17 pins
Port 17 is a 7-bit port for which I/O settings can be controlled in 1-bit units. I/O settings are controlled via the port
17 mode register (PM17).
In output mode, the values set to each bit are output to port 17 (P17).
When using this port in input mode, the pin statuses can be read by reading P17. Also, the values of P17 (output
latch) can be read by reading P17 while in output mode.
When using this port as the VM45 pin, set via the VM45 control register (VM45C). In this case, be sure to set
P176 and PM176 to 0.
When a reset is input, the settings are initialized to input mode.
(2) Control register
(a) Port 17 mode register (PM17)
PM17 can be read/written in 8- or 1-bit units.
After reset:
7FH
R/W
Address: FFFFF058H
7
6
5
4
3
2
1
0
PM17
0
PM176
PM175
PM174
PM173
PM172
PM171
PM170
PM17n
Control of I/O mode (n = 0 to 6)
0
Output mode
1
Input mode