![NEC V850/SC1 Скачать руководство пользователя страница 146](http://html.mh-extra.com/html/nec/v850-sc1/v850-sc1_user-manual_248178146.webp)
CHAPTER 5 PORT FUNCTIONS
User’s Manual U15109EJ3V0UD
144
5.2.2
Port 1
Port 1 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: FFFFF002H
7
6
5
4
3
2
1
0
P1
P17
P16
P15
P14
P13
P12
P11
P10
P1n
Control of output data (in output mode) (n = 0 to 7)
0
Outputs 0
1
Outputs 1
Remark
In input mode:
When P1 is read, the pin levels at that time are read. Writing to P1 writes the values
to that port. This does not affect the input pins.
In output mode: When P1 is read, the values of P1 are read. Writing to P1 writes the values to that
port, and those values are immediately output.
Port 1 includes the following alternate functions.
Table 5-3. Port 1 Alternate Function Pins
Pin Name
Alternate Function
I/O
PULL
Note
Remark
P10
SI0/SDA0
Selectable as N-ch open-drain output
P11
SO0
–
P12
SCK0/SCL0
Selectable as N-ch open-drain output
P13
SI4/RXD0
P14
SO4/TXD0
P15
SCK4/ASCK0
P16
–
Port 1
P17
TI5/TO5
I/O
No
−
Note
Software pull-up function