![NEC V850/SC1 User Manual Download Page 171](http://html.mh-extra.com/html/nec/v850-sc1/v850-sc1_user-manual_248178171.webp)
CHAPTER 5 PORT FUNCTIONS
User’s Manual U15109EJ3V0UD
169
(1) Function of P10 pins
Port 10 is an 8-bit I/O port for which I/O settings can be controlled in 1-bit units. I/O settings are controlled via
the port 10 mode register (PM10).
In output mode, the values set to each bit are output to port 10 (P10).
When using this port in input mode, the pin statuses can be read by reading P10. Also, the values of P10 (output
latch) can be read by reading P10 while in output mode.
Pull-up resistors can be connected in 1-bit units when specified via pull-up resistor option register 10 (PU10).
When used as KR0 to KR7 pins, noise is eliminated by the analog noise eliminator.
When used as the A5 to A12 pins in the case of the V850/SC1 and V850/ASC2, this port is set via the memory
address output mode register (MAM).
Clear P10 and the PM10 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 10 mode register (PM10)
PM10 can be read/written in 8- or 1-bit units.
After reset:
FFH
R/W
Address: FFFFF034H
7
6
5
4
3
2
1
0
PM10
PM107
PM106
PM105
PM104
PM103
PM102
PM101
PM100
PM10n
Control of I/O mode (n = 0 to 7)
0
Output mode
1
Input mode
(b) Pull-up resistor option register 10 (PU10)
PU10 can be read/written in 8- or 1-bit units.
After reset:
00H
R/W
Address: FFFFF094H
7
6
5
4
3
2
1
0
PU10
PU107
PU106
PU105
PU104
PU103
PU102
PU101
PU100
PU10n
Control of on-chip pull-up resistor connection (n = 0 to 7)
0
Do not connect
1
Connect