14
CHAPTER 4
4.1
4.2
PIN FUNCTION (
μ
PD780058Y Subseries)................................................................
Pin Function List...............................................................................................................
Description of Pin Functions ...........................................................................................
4.2.1
P00 to P05, P07 (Port 0) .....................................................................................................
4.2.2
P10 to P17 (Port 1) ..............................................................................................................
4.2.3
P20 to P27 (Port 2) ..............................................................................................................
4.2.4
P30 to P37 (Port 3) ..............................................................................................................
4.2.5
P40 to P47 (Port 4) ..............................................................................................................
4.2.6
P50 to P57 (Port 5) ..............................................................................................................
4.2.7
P60 to P67 (Port 6) ..............................................................................................................
4.2.8
P70 to P72 (Port 7) ..............................................................................................................
4.2.9
P120 to P127 (Port 12) ........................................................................................................
4.2.10
P130 and P131 (Port 13) .....................................................................................................
4.2.11
AV
REF0
..................................................................................................................................
4.2.12
AV
REF1
..................................................................................................................................
4.2.13
AV
SS
.....................................................................................................................................
4.2.14
RESET.................................................................................................................................
4.2.15
X1 and X2 ............................................................................................................................
4.2.16
XT1 and XT2 .......................................................................................................................
4.2.17
V
DD0
, V
DD1
............................................................................................................................
4.2.18
V
SS0
, V
SS1
.............................................................................................................................
4.2.19
V
PP
(Flash memory version only).........................................................................................
4.2.20
IC (Mask ROM version only)................................................................................................
Input/Output Circuits and Recommended Connection of Unused Pins......................
67
67
71
71
72
72
73
74
74
74
75
75
76
76
76
76
76
76
76
76
77
77
77
78
4.3
CHAPTER 5
5.1
CPU ARCHITECTURE................................................................................................
Memory Spaces.................................................................................................................
5.1.1
Internal program memory space..........................................................................................
5.1.2
Internal data memory space ................................................................................................
5.1.3
Special Function Register (SFR) area .................................................................................
5.1.4
External memory space .......................................................................................................
5.1.5
Data memory addressing ....................................................................................................
Processor Registers .........................................................................................................
5.2.1
Control registers ..................................................................................................................
5.2.2
General registers .................................................................................................................
5.2.3
Special Function Register (SFR) .........................................................................................
Instruction Address Addressing .....................................................................................
5.3.1
Relative addressing .............................................................................................................
5.3.2
Immediate addressing .........................................................................................................
5.3.3
Table indirect addressing .....................................................................................................
5.3.4
Register addressing.............................................................................................................
Operand Address Addressing .........................................................................................
5.4.1
Implied addressing ..............................................................................................................
5.4.2
Register addressing.............................................................................................................
5.4.3
Direct addressing.................................................................................................................
5.4.4
Short direct addressing........................................................................................................
5.4.5
Special-Function Register (SFR) addressing ......................................................................
83
83
89
91
91
91
91
98
98
101
102
106
106
107
108
109
110
110
111
112
113
115
5.2
5.3
5.4