
User’s Manual U17553EJ4V0UD
10
6.2 Configuration of Clock Generator ............................................................................................ 125
6.3 Registers Controlling Clock Generator.................................................................................... 127
6.4 System Clock Oscillator ............................................................................................................ 136
6.4.1 X1 oscillator......................................................................................................................................136
6.4.2 XT1 oscillator....................................................................................................................................136
6.4.3 When subsystem clock is not used ..................................................................................................139
6.4.4 Internal high-speed oscillator............................................................................................................139
6.4.5 Internal low-speed oscillator .............................................................................................................139
6.4.6 Prescaler ..........................................................................................................................................139
6.5 Clock Generator Operation ....................................................................................................... 140
6.6 Controlling Clock........................................................................................................................ 144
6.6.1 Controlling high-speed system clock ................................................................................................144
6.6.2 Example of controlling internal high-speed oscillation clock .............................................................147
6.6.3 Example of controlling subsystem clock ...........................................................................................149
6.6.4 Controlling internal low-speed oscillation clock ................................................................................151
6.6.5 Clocks supplied to CPU and peripheral hardware ............................................................................151
6.6.6 CPU clock status transition diagram.................................................................................................152
6.6.7 Condition before changing CPU clock and processing after changing CPU clock ...........................157
6.6.8 Time required for switchover of CPU clock and main system clock .................................................158
6.6.9 Conditions before clock oscillation is stopped ..................................................................................159
CHAPTER 7 16-BIT TIMER/EVENT COUNTERS 00 TO 03 ........................................................... 160
7.1 Functions of 16-Bit Timer/Event Counters 00 to 03................................................................ 160
7.2 Configuration of 16-Bit Timer/Event Counters 00 to 03 ......................................................... 161
7.3 Registers Controlling 16-Bit Timer/Event Counters 00 to 03................................................. 170
7.4 Operation of 16-Bit Timer/Event Counters 00 to 03 ................................................................ 191
7.4.1 Interval timer operation.....................................................................................................................191
7.4.2 PPG output operations .....................................................................................................................194
7.4.3 Pulse width measurement operations ..............................................................................................197
7.4.4 External event counter operation......................................................................................................205
7.4.5 Square-wave output operation .........................................................................................................208
7.4.6 One-shot pulse output operation ......................................................................................................210
7.5 Special Use of TM0n .................................................................................................................. 215
7.5.1 Rewriting CR01n during TM0n operation .........................................................................................215
7.5.2 Setting LVS0n and LVR0n ...............................................................................................................215
7.6 Cautions for 16-Bit Timer/Event Counters 00 to 03 ................................................................ 217
CHAPTER 8 8-BIT TIMER/EVENT COUNTERS 50 AND 51........................................................... 221
8.1 Functions of 8-Bit Timer/Event Counters 50 and 51............................................................... 221
8.2 Configuration of 8-Bit Timer/Event Counters 50 and 51 ........................................................ 223
8.3 Registers Controlling 8-Bit Timer/Event Counters 50 and 51................................................ 225
8.4 Operations of 8-Bit Timer/Event Counters 50 and 51 ............................................................. 230
8.4.1 Operation as interval timer ...............................................................................................................230
8.4.2 Operation as external event counter ................................................................................................232
8.4.3 Square-wave output operation .........................................................................................................233
8.4.4 PWM output operation......................................................................................................................234
8.5 Cautions for 8-Bit Timer/Event Counters 50 and 51 ............................................................... 238