![NEC V850/SC1 Скачать руководство пользователя страница 185](http://html.mh-extra.com/html/nec/v850-sc1/v850-sc1_user-manual_248178185.webp)
CHAPTER 5 PORT FUNCTIONS
User’s Manual U15109EJ3V0UD
183
(1) Function of P14 pins
Port 14 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 14 mode register (PM14).
In output mode, the values set to each bit are output to port 14 (P14).
When using this port in input mode, the pin statuses can be read by reading P14. Also, the values of P14 (output
latch) can be read by reading P14 while in output mode.
Clear P14 and the PM14 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 14 mode register (PM14)
PM14 can be read/written in 8- or 1-bit units.
After reset:
FFH
R/W
Address: FFFFF03CH
7
6
5
4
3
2
1
0
PM14
PM147
PM146
PM145
PM144
PM143
PM142
PM141
PM140
PM14n
Control of I/O mode (n = 0 to 7)
0
Output mode
1
Input mode