15
5.4.6
5.4.7
5.4.8
5.4.9
Register indirect addressing ................................................................................................
Based addressing ................................................................................................................
Based indexed addressing ..................................................................................................
Stack addressing .................................................................................................................
116
117
118
118
CHAPTER 6
6.1
6.2
PORT FUNCTIONS ....................................................................................................
Port Functions...................................................................................................................
Port Configuration ............................................................................................................
6.2.1
Port 0 ...................................................................................................................................
6.2.2
Port 1 ...................................................................................................................................
6.2.3
Port 2 (
μ
PD780058 Subseries)............................................................................................
6.2.4
Port 2 (
μ
PD780058Y Subseries) .........................................................................................
6.2.5
Port 3 ...................................................................................................................................
6.2.6
Port 4 ...................................................................................................................................
6.2.7
Port 5 ...................................................................................................................................
6.2.8
Port 6 ...................................................................................................................................
6.2.9
Port 7 ...................................................................................................................................
6.2.10
Port 12 .................................................................................................................................
6.2.11
Port 13 .................................................................................................................................
Port Function Control Registers .....................................................................................
Port Function Operations.................................................................................................
6.4.1
Writing to input/output port...................................................................................................
6.4.2
Reading from input/output port ............................................................................................
6.4.3
Operations on input/output port ...........................................................................................
Selection of Mask Option .................................................................................................
119
119
124
124
126
127
129
131
132
133
134
136
138
139
140
146
146
146
146
147
6.3
6.4
6.5
CHAPTER 7
7.1
7.2
7.3
7.4
CLOCK GENERATOR ................................................................................................
Clock Generator Functions..............................................................................................
Clock Generator Configuration .......................................................................................
Clock Generator Control Register...................................................................................
System Clock Oscillator...................................................................................................
7.4.1
Main system clock oscillator ................................................................................................
7.4.2
Subsystem clock oscillator ..................................................................................................
7.4.3
Divider..................................................................................................................................
7.4.4
When not using subsystem clocks ......................................................................................
Clock Generator Operations ............................................................................................
7.5.1
Main system clock operations .............................................................................................
7.5.2
Subsystem clock operations ................................................................................................
Changing System Clock and CPU Clock Settings.........................................................
7.6.1
Time required for switchover between system clock and CPU clock ..................................
7.6.2
System clock and CPU clock switching procedure..............................................................
149
149
149
151
155
155
156
158
158
159
160
161
162
162
164
7.5
7.6
CHAPTER 8
8.1
8.2
8.3
8.4
8.5
16-BIT TIMER/EVENT COUNTER .............................................................................
Outline of Internal Timer of
μ
PD780058 and 780058Y Subseries .................................
16-Bit Timer/Event Counter Functions ...........................................................................
16-Bit Timer/Event Counter Configuration .....................................................................
16-Bit Timer/Event Counter Control Registers ..............................................................
16-Bit Timer/Event Counter Operations..........................................................................
165
165
167
169
173
183