16
CHAPTER 7 CLOCK GENERATOR .................................................................................................... 165
7.1
Clock Generator Functions ................................................................................................ 165
7.2
Clock Generator Configuration.......................................................................................... 166
7.3
Clock Generator Control Register..................................................................................... 167
7.4
System Clock Oscillator ..................................................................................................... 171
7.4.1
Main system clock oscillator ..................................................................................................... 171
7.4.2
Subsystem clock oscillator........................................................................................................ 172
7.4.3
Divider ........................................................................................................................................ 174
7.4.4
When no subsystem clocks are used ...................................................................................... 174
7.5
Clock Generator Operations .............................................................................................. 175
7.5.1
Main system clock operations .................................................................................................. 176
7.5.2
Subsystem clock operations ..................................................................................................... 177
7.6
Changing System Clock and CPU Clock Settings.......................................................... 178
7.6.1
Time required for switchover between system clock and CPU clock..................................... 178
7.6.2
System clock and CPU clock switching procedure ................................................................. 179
CHAPTER 8 16-BIT TIMER/EVENT COUNTER.................................................................................. 181
8.1
Outline of Timers Incorporated into
μ
PD78078, 78078Y Subseries............................. 181
8.2
16-Bit Timer/Event Counter Functions ............................................................................. 183
8.3
16-Bit Timer/Event Counter Configuration ...................................................................... 185
8.4
16-Bit Timer/Event Counter Control Registers ............................................................... 190
8.5
16-Bit Timer/Event Counter Operations ........................................................................... 198
8.5.1
Interval timer operations ........................................................................................................... 198
8.5.2
PWM output operations ............................................................................................................ 200
8.5.3
PPG output operations.............................................................................................................. 203
8.5.4
Pulse width measurement operations ...................................................................................... 204
8.5.5
External event counter operation ............................................................................................. 211
8.5.6
Square-wave output operation ................................................................................................. 213
8.5.7
One-shot pulse output operation .............................................................................................. 215
8.6
16-Bit Timer/Event Counter Operating Precautions....................................................... 219
CHAPTER 9 8-BIT TIMER/EVENT COUNTERS 1 AND 2................................................................... 223
9.1
8-Bit Timer/Event Counters 1 and 2 Functions............................................................... 223
9.1.1
8-bit timer/event counter mode................................................................................................. 223
9.1.2
16-bit timer/event counter mode............................................................................................... 226
9.2
8-Bit Timer/Event Counters 1 and 2 Configurations ...................................................... 228
9.3
8-Bit Timer/Event Counters 1 and 2 Control Registers ................................................. 231
9.4
8-Bit Timer/Event Counters 1 and 2 Operations ............................................................. 236
9.4.1
8-bit timer/event counter mode................................................................................................. 236
9.4.2
16-bit timer/event counter mode............................................................................................... 242
9.5
8-Bit Timer/Event Counters 1 and 2 Precautions ........................................................... 246