CHAPTER 14 PORT FUNCTION
User’s Manual U13850EJ4V0UM
393
14.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.
Figure 14-25. Ports 4 and 5 (P4 and P5)
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
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 the P4 and P5 registers are read, the pin levels at that time are read. Writing
to P4 and P5 writes the values to those registers. This does not affect the input pins.
In output mode: When the P4 and P5 registers are read, their values are read. Writing to P4 and P5
writes the values to those registers, and those values are immediately output.
Ports 4 and 5 include the following alternate functions.
Table 14-6. Alternate Function Pins of Ports 4 and 5
Pin Name
Alternate Function
I/O
PULL
Note
Remark
Port 4
P40
AD0
I/O
No
−
P41
AD1
P42
AD2
P43
AD3
P44
AD4
P45
AD5
P46
AD6
P47
AD7
Port 5
P50
AD8
I/O
No
−
P51
AD9
P52
AD10
P53
AD11
P54
AD12
P55
AD13
P56
AD14
P57
AD15
Note
Software pull-up function
Содержание MPD703030A
Страница 2: ...User s Manual U13850EJ4V0UM 2 MEMO ...
Страница 514: ...User s Manual U13850EJ4V0UM 514 MEMO ...