![NEC V850/SC1 Скачать руководство пользователя страница 178](http://html.mh-extra.com/html/nec/v850-sc1/v850-sc1_user-manual_248178178.webp)
CHAPTER 5 PORT FUNCTIONS
User’s Manual U15109EJ3V0UD
176
5.2.11 Port 12
Port 12 is an 8-bit I/O port for which I/O settings can be controlled in 1-bit units.
P12 can be read/written in 8- or 1-bit units.
When using this port as the SCK5, SI5, SO5, SCK6, SI6, and SO6 pins, set via port alternate-function control
register 2 (PAC2).
After reset:
00H
R/W
Address: FFFFF018H
7
6
5
4
3
2
1
0
P12
P127
P126
P125
P124
P123
P122
P121
P120
P12n
Control of output data (in output mode) (n = 0 to 7)
0
Outputs 0
1
Outputs 1
Remark
In input mode:
When P12 is read, the pin levels at that time are read. Writing to P12 writes the
values to that port. This does not affect the input pins.
In output mode: When P12 is read, the values of P12 are read. Writing to P12 writes the values to
that port, and those values are immediately output.
Port 12 includes the following alternate functions.
Table 5-12. Port 12 Alternate Function Pins
Pin Name
Alternate Function
I/O
PULL
Note
Remark
P120
SCK5
P121
SI5
P122
SO5
P123
SCK6
P124
SI6
P125
SO6
P126
TO10
Port 12
P127
TO11
I/O
No
−
Note
Software pull-up function