![NEC V850/SC1 User Manual Download Page 188](http://html.mh-extra.com/html/nec/v850-sc1/v850-sc1_user-manual_248178188.webp)
CHAPTER 5 PORT FUNCTIONS
User’s Manual U15109EJ3V0UD
186
(1) Function of P15 pins
Port 15 is an 8-bit port for which I/O settings can be controlled in 1-bit units. I/O settings are controlled via the
port 15 mode register (PM15).
In output mode, the values set to each bit are output to port 15 (P15).
When using this port in input mode, the pin statuses can be read by reading P15. Also, the values of P15 (output
latch) can be read by reading P15 while in output mode.
Clear P15 and the PM15 register to 0 when using alternate-function pins as outputs. The logical sum (ORed
result) of the port output and the alternate-function pin is output from the pins.
When a reset is input, the settings are initialized to input mode.
(2) Control register
(a) Port 15 mode register (PM15)
PM15 can be read/written in 8- or 1-bit units.
After reset:
FFH
R/W
Address: FFFFF03EH
7
6
5
4
3
2
1
0
PM15
PM157
PM156
PM155
PM154
PM153
PM152
PM151
PM150
PM15n
Control of I/O mode (n = 0 to 7)
0
Output mode
1
Input mode