![NEC V850/SC1 Скачать руководство пользователя страница 151](http://html.mh-extra.com/html/nec/v850-sc1/v850-sc1_user-manual_248178151.webp)
CHAPTER 5 PORT FUNCTIONS
User’s Manual U15109EJ3V0UD
149
5.2.3
Port 2
Port 2 is an 8-bit I/O port for which I/O settings can be controlled in 1-bit units.
Bits 0 and 2 are selectable as normal outputs or N-ch open-drain outputs.
After reset:
00H
R/W
Address: FFFFF004H
7
6
5
4
3
2
1
0
P2
P27
P26
P25
P24
P23
P22
P21
P20
P2n
Control of output data (in output mode) (n = 0 to 7)
0
Outputs 0
1
Outputs 1
Remark
In input mode:
When P2 is read, the pin levels at that time are read. Writing to P2 writes the values
to that port. This does not affect the input pins.
In output mode: When P2 is read, the values of P2 are read. Writing to P2 writes the values to that
port, and those values are immediately output.
Port 2 includes the following alternate functions.
Table 5-4. Port 2 Alternate Function Pins
Pin Name
Alternate Function
I/O
PULL
Note 1
Remark
P20
SI2/SDA1
Selectable as N-ch open-drain output
P21
SO2
–
P22
SCK2/SCK1
Selectable as N-ch open-drain output
P23
TI90
P24
TI91
P25
TO90
P26
IERX0
Note 2
Port 2
P27
IETX0
Note 2
I/O
No
–
Notes 1.
Software pull-up function
2.
Only for the V850/SC2