![NEC V850/SC1 Скачать руководство пользователя страница 163](http://html.mh-extra.com/html/nec/v850-sc1/v850-sc1_user-manual_248178163.webp)
CHAPTER 5 PORT FUNCTIONS
User’s Manual U15109EJ3V0UD
161
(1) Function of P6 pins
Port 6 is a 6-bit I/O port for which I/O settings can be controlled in 1-bit units. I/O settings are controlled via the
port 6 mode register (PM6).
In output mode, the values set to each bit are output to port 6 (P6).
When using this port in input mode, the pin statuses can be read by reading P6. Also, the values of P6 (output
latch) can be read by reading P6 while in output mode.
A software pull-up function is not implemented.
When using the alternate-function A16 to A21 pins, set the pin functions via the memory expansion mode
register (MM). This does not affect the PM6 register.
When a reset is input, the settings are initialized to input mode.
(2) Control register
(a) Port 6 mode register (PM6)
PM6 can be read/written in 8- or 1-bit units.
After reset:
3FH
R/W
Address: FFFFF02CH
7
6
5
4
3
2
1
0
PM6
0
0
PM65
PM64
PM63
PM62
PM61
PM60
PM6n
Control of I/O mode (n = 0 to 5)
0
Output mode
1
Input mode