![NEC V850/SA1 mPD703015 Скачать руководство пользователя страница 334](http://html.mh-extra.com/html/nec/v850-sa1-mpd703015/v850-sa1-mpd703015_preliminary-users-manual_249279334.webp)
CHAPTER 14 PORT FUNCTION
334
(1) Function of P1 pins
Port 1 is a 6-bit I/O port for which I/O settings can be controlled bitwise. I/O settings are controlled via the port 1
mode register (PM1).
During output mode, the values set to each bit are output to the port register (P1). The port 1 function register
(PF1) can be used to specify whether P10 to P12, P14, and P15 are normal outputs or N-ch open-drain outputs.
When using this port in input mode, the pin statuses can be read by reading the P1 register. Also, the P1
register (output latch) values can be read by reading the P1 register while in output mode.
A pull-up resistance can be connected bitwise when specified via the pull-up resistance option register 1 (PU1).
Clear (to “0”) the P1 register and the PM1 register when using alternate-function pins as outputs. The 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 registers
(a) Port 1 mode register (PM1)
Read and write in 8-bit units and bitwise are enabled.
Figure 14-7. Format of Port 1 Mode Register (PM1)
After reset:
3FH
R/W
Address: FFFFF022H
7
6
5
4
3
2
1
0
PM1
0
0
PM15
PM14
PM13
PM12
PM11
PM10
PM1n
Control of I/O Mode
0
Output mode
1
Input mode
Содержание V850/SA1 mPD703015
Страница 2: ...2 MEMO ...
Страница 100: ...100 MEMO ...
Страница 144: ...144 MEMO ...
Страница 200: ...200 MEMO ...
Страница 328: ...328 MEMO ...
Страница 356: ...356 MEMO ...
Страница 358: ...358 MEMO ...
Страница 368: ...368 MEMO ...
Страница 374: ...374 MEMO ...
Страница 382: ...382 MEMO ...