13
User’s Manual U11377EJ3V0UD
5.3.4
Register addressing .........................................................................................................
92
5.4
Operand Address Addressing .......................................................................................
93
5.4.1
Implied addressing ...........................................................................................................
93
5.4.2
Register addressing .........................................................................................................
94
5.4.3
Direct addressing .............................................................................................................
95
5.4.4
Short direct addressing ...................................................................................................
96
5.4.5
Special-function register (SFR) addressing .................................................................
98
5.4.6
Register indirect addressing ..........................................................................................
99
5.4.7
Based addressing .............................................................................................................
100
5.4.8
Based indexed addressing ..............................................................................................
101
5.4.9
Stack addressing ..............................................................................................................
101
CHAPTER 6 PORT FUNCTIONS ....................................................................................................
102
6.1
Port Functions ..................................................................................................................
102
6.2
Port Configuration ...........................................................................................................
105
6.2.1
Port 0 ..................................................................................................................................
105
6.2.2
Port 1 ..................................................................................................................................
107
6.2.3
Port 2 (
PD780308 Subseries) ........................................................................................
108
6.2.4
Port 2 (
PD780308Y Subseries) ......................................................................................
110
6.2.5
Port 3 ..................................................................................................................................
112
6.2.6
Port 7 ..................................................................................................................................
113
6.2.7
Port 8 ..................................................................................................................................
115
6.2.8
Port 9 ..................................................................................................................................
116
6.2.9
Port 10 ................................................................................................................................
117
6.2.10
Port 11 ................................................................................................................................
118
6.3
Port Function Control Registers ...................................................................................
121
6.4
Port Function Operations ...............................................................................................
126
6.4.1
Writing to I/O port .............................................................................................................
126
6.4.2
Reading from I/O port ......................................................................................................
126
6.4.3
Operations on I/O port .....................................................................................................
126
CHAPTER 7 CLOCK GENERATOR ...............................................................................................
127
7.1
Clock Generator Functions ............................................................................................
127
7.2
Clock Generator Configuration ......................................................................................
127
7.3
Clock Generator Control Register .................................................................................
129
7.4
System Clock Oscillator .................................................................................................
133
7.4.1
Main system clock oscillator ..........................................................................................
133
7.4.2
Subsystem clock oscillator .............................................................................................
134
7.4.3
Scaler ..................................................................................................................................
136
7.4.4
When no subsystem clocks are used ...........................................................................
136
7.5
Clock Generator Operations ..........................................................................................
137
7.5.1
Main system clock operations ........................................................................................
138
7.5.2
Subsystem clock operations ..........................................................................................
139
7.6
Changing System Clock and CPU Clock Settings ......................................................
140
7.6.1
Time required for switchover between system clock and CPU clock ......................
140
7.6.2
System clock and CPU clock switching procedure ....................................................
141