Preliminary User’s Manual U17260EJ3V1UD
11
6.1
Functions of Clock Generator .............................................................................................. 134
6.2
Configuration of Clock Generator........................................................................................ 135
6.3
Registers Controlling Clock Generator ............................................................................... 137
6.4 System
Clock
Oscillator........................................................................................................ 146
6.4.1 X1
oscillator .............................................................................................................................146
6.4.2 XT1
oscillator ...........................................................................................................................146
6.4.3 When
subsystem
clock is not used ..........................................................................................149
6.4.4 Internal
high-speed oscillator ...................................................................................................149
6.4.5 Internal
low-speed oscillator.....................................................................................................149
6.4.6 Prescaler..................................................................................................................................149
6.5
Clock Generator Operation ................................................................................................... 150
6.6 Controlling
Clock ................................................................................................................... 153
6.6.1 Controlling
high-speed system clock........................................................................................153
6.6.2
Example of controlling internal high-speed oscillation clock.....................................................156
6.6.3 Example
of
controlling subsystem clock...................................................................................158
6.6.4
Example of controlling internal low-speed oscillation clock ......................................................160
6.6.5
Clocks supplied to CPU and peripheral hardware....................................................................160
6.6.6
CPU clock status transition diagram ........................................................................................161
6.6.7 Condition
before changing CPU clock and processing after changing CPU clock ...................166
6.6.8
Time required for switchover of CPU clock and main system clock .........................................167
6.6.9
Conditions before clock oscillation is stopped..........................................................................168
6.6.10 Peripheral
hardware and source clocks ...................................................................................169
CHAPTER 7 16-BIT TIMER/EVENT COUNTERS 00 AND 01 ........................................................ 170
7.1
Functions of 16-Bit Timer/Event Counters 00 and 01 ........................................................ 170
7.2
Configuration of 16-Bit Timer/Event Counters 00 and 01.................................................. 171
7.3
Registers Controlling 16-Bit Timer/Event Counters 00 and 01 ......................................... 176
7.4
Operation of 16-Bit Timer/Event Counters 00 and 01 ........................................................ 188
7.4.1 Interval
timer operation ............................................................................................................188
7.4.2 Square
wave
output operation .................................................................................................191
7.4.3 External
event
counter operation .............................................................................................194
7.4.4
Operation in clear & start mode entered by TI00n pin valid edge input....................................197
7.4.5 Free-running
timer operation....................................................................................................213
7.4.6 PPG
output operation...............................................................................................................222
7.4.7 One-shot
pulse output operation ..............................................................................................225
7.4.8
Pulse width measurement operation ........................................................................................230
7.5 Special
Use
of
TM0n .............................................................................................................. 239
7.5.1
Rewriting CR01n during TM0n operation .................................................................................239
7.5.2 Setting
LVS0n and LVR0n .......................................................................................................239
7.6
Cautions for 16-Bit Timer/Event Counters 00 and 01......................................................... 241
CHAPTER 8 8-BIT TIMER/EVENT COUNTERS 50 AND 51 .......................................................... 245
8.1
Functions of 8-Bit Timer/Event Counters 50 and 51 .......................................................... 245
8.2
Configuration of 8-Bit Timer/Event Counters 50 and 51.................................................... 245
8.3
Registers Controlling 8-Bit Timer/Event Counters 50 and 51 ........................................... 248
8.4
Operations of 8-Bit Timer/Event Counters 50 and 51 ........................................................ 253
8.4.1 Operation
as
interval timer .......................................................................................................253
8.4.2
Operation as external event counter ........................................................................................255