Preliminary User’s Manual U16228EJ1V0UD
11
5.4.2
Subsystem clock oscillator ........................................................................................................... 130
5.4.3
When subsystem clock is not used .............................................................................................. 133
5.4.4
Ring-OSC oscillator...................................................................................................................... 133
5.4.5
Prescaler ...................................................................................................................................... 133
5.5
Clock Generator Operation ..................................................................................................... 133
5.6
Time Required to Switch Between Ring-OSC Clock and X1 Input Clock ........................... 140
5.7
Changing System Clock and CPU Clock Settings ................................................................ 141
5.7.1
Time required for switching between system clock and CPU clock.............................................. 141
5.8
Clock Switching Flowchart and Register Setting ................................................................. 142
5.8.1
Switching from Ring-OSC clock to X1 input clock ........................................................................ 142
5.8.2
Switching from X1 input clock to Ring-OSC clock ........................................................................ 143
5.8.3
Switching from X1 input clock to subsystem clock ....................................................................... 144
5.8.4
Switching from subsystem clock to X1 input clock ....................................................................... 145
5.8.5
Register settings .......................................................................................................................... 146
CHAPTER 6 16-BIT TIMER/EVENT COUNTERS 00 AND 01......................................................... 147
6.1
Functions of 16-Bit Timer/Event Counters 00 and 01........................................................... 147
6.2
Configuration of 16-Bit Timer/Event Counters 00 and 01 .................................................... 148
6.3
Registers Controlling 16-Bit Timer/Event Counters 00 and 01............................................ 152
6.4
Operation of 16-Bit Timer/Event Counters 00 and 01 ........................................................... 163
6.4.1
Interval timer operation................................................................................................................. 163
6.4.2
PPG output operations ................................................................................................................. 165
6.4.3
Pulse width measurement operations .......................................................................................... 167
6.4.4
External event counter operation ................................................................................................. 174
6.4.5
Square-wave output operation ..................................................................................................... 176
6.4.6
One-shot pulse output operation .................................................................................................. 177
6.5
Cautions for 16-Bit Timer/Event Counters 00 and 01 ........................................................... 182
CHAPTER 7 8-BIT TIMER/EVENT COUNTERS 50 AND 51........................................................... 186
7.1
Functions of 8-Bit Timer/Event Counters 50 and 51............................................................. 186
7.2
Configuration of 8-Bit Timer/Event Counters 50 and 51 ...................................................... 188
7.3
Registers Controlling 8-Bit Timer/Event Counters 50 and 51.............................................. 189
7.4
Operations of 8-Bit Timer/Event Counters 50 and 51 ........................................................... 195
7.4.1
Operation as interval timer ........................................................................................................... 195
7.4.2
Operation as external event counter ............................................................................................ 197
7.4.3
Square-wave output operation ..................................................................................................... 198
7.4.4
PWM output operation.................................................................................................................. 200
7.5
Cautions for 8-Bit Timer/Event Counters 50 and 51 ............................................................. 202
CHAPTER 8 8-BIT TIMERS H0 AND H1........................................................................................... 203
8.1
Functions of 8-Bit Timers H0 and H1 ..................................................................................... 203
8.2
Configuration of 8-Bit Timers H0 and H1............................................................................... 203
8.3
Registers Controlling 8-Bit Timers H0 and H1 ...................................................................... 205
8.4
Operation of 8-Bit Timers H0 and H1 ..................................................................................... 208
8.4.1
Operation as interval timer ........................................................................................................... 208