
User’s Manual U19780EJ2V0UD
10
5.6.1 Example of controlling high-speed system clock............................................................................148
5.6.2 Example of controlling internal high-speed oscillation clock...........................................................151
5.6.3 Example of controlling subsystem clock.........................................................................................154
5.6.4 Example of controlling internal low-speed oscillation clock ............................................................156
5.6.5 Clocks supplied to CPU and peripheral hardware..........................................................................157
5.6.6 CPU clock status transition diagram ..............................................................................................158
5.6.7 Condition before changing CPU clock and processing after changing CPU clock .........................164
5.6.8 Time required for switchover of CPU clock and main system clock ...............................................166
5.6.9 Conditions before clock oscillation is stopped ................................................................................168
5.6.10 Peripheral hardware and source clocks .......................................................................................169
CHAPTER 6 16-BIT TIMER/EVENT COUNTER 00 ........................................................................... 170
6.1 Functions of 16-Bit Timer/Event Counter 00 ........................................................................... 170
6.2 Configuration of 16-Bit Timer/Event Counter 00..................................................................... 171
6.3 Registers Controlling 16-Bit Timer/Event Counter 00 ............................................................ 177
6.4 Operation of 16-Bit Timer/Event Counter 00 ........................................................................... 185
6.4.1 Interval timer operation ..................................................................................................................185
6.4.2 Square wave output operation .......................................................................................................188
6.4.3 External event counter operation ...................................................................................................191
6.4.4 Operation in clear & start mode entered by TI000 pin valid edge input..........................................195
6.4.5 Free-running timer operation..........................................................................................................209
6.4.6 PPG output operation.....................................................................................................................218
6.4.7 One-shot pulse output operation ....................................................................................................221
6.4.8 Pulse width measurement operation ..............................................................................................226
6.5 Special Use of TM00................................................................................................................... 234
6.5.1 Rewriting CR010 during TM00 operation .......................................................................................234
6.5.2 Setting LVS00 and LVR00 .............................................................................................................234
6.6 Cautions for 16-Bit Timer/Event Counter 00............................................................................ 236
CHAPTER 7 8-BIT TIMER/EVENT COUNTERS 50 AND 51........................................................... 241
7.1 Functions of 8-Bit Timer/Event Counters 50 and 51............................................................... 241
7.2 Configuration of 8-Bit Timer/Event Counters 50 and 51 ........................................................ 241
7.3 Registers Controlling 8-Bit Timer/Event Counters 50 and 51................................................ 244
7.4 Operations of 8-Bit Timer/Event Counters 50 and 51 ............................................................. 250
7.4.1 Operation as interval timer .............................................................................................................250
7.4.2 Operation as external event counter ..............................................................................................252
7.4.3 Square-wave output operation .......................................................................................................253
7.4.4 PWM output operation ...................................................................................................................254
7.5 Cautions for 8-Bit Timer/Event Counters 50 and 51 ............................................................... 258
CHAPTER 8 8-BIT TIMERS H0 AND H1 .......................................................................................... 259
8.1 Functions of 8-Bit Timers H0 and H1 ....................................................................................... 259
8.2 Configuration of 8-Bit Timers H0 and H1 ................................................................................. 259
8.3 Registers Controlling 8-Bit Timers H0 and H1 ........................................................................ 263
8.4 Operation of 8-Bit Timers H0 and H1........................................................................................ 269
8.4.1 Operation as interval timer/square-wave output.............................................................................269
8.4.2 Operation as PWM output ..............................................................................................................272