![NEC V850/SC1 Скачать руководство пользователя страница 159](http://html.mh-extra.com/html/nec/v850-sc1/v850-sc1_user-manual_248178159.webp)
CHAPTER 5 PORT FUNCTIONS
User’s Manual U15109EJ3V0UD
157
5.2.5 Ports 4 and 5
Ports 4 and 5 are 8-bit I/O ports for which I/O settings can be controlled in 1-bit units.
After reset:
00H
R/W
Address: FFFFF008H, FFFFF00AH
7
6
5
4
3
2
1
0
Pn
Pn7
Pn6
Pn5
Pn4
Pn3
Pn2
Pn1
Pn0
(n = 4, 5)
Pnx
Control of output data (in output mode) (n = 4, 5, x = 0 to 7)
0
Outputs 0
1
Outputs 1
Remark
In input mode:
When P4 and P5 are read, the pin levels at that time are read. Writing to P4 and P5
writes the values to those ports. This does not affect the input pins.
In output mode: When P4 and P5 are read, their values are read. Writing to P4 and P5 writes the
values to those ports, and those values are immediately output.
Ports 4 and 5 include the following alternate functions.
Table 5-6. Alternate Function Pins of Ports 4 and 5
Pin Name
Alternate Function
I/O
PULL
Note
Remark
P40
AD0
P41
AD1
P42
AD2
P43
AD3
P44
AD4
P45
AD5
P46
AD6
Port 4
P47
AD7
I/O
No
−
P50
AD8
P51
AD9
P52
AD10
P53
AD11
P54
AD12
P55
AD13
P56
AD14
Port 5
P57
AD15
I/O
No
−
Note
Software pull-up function