7.6
Changing System Clock and CPU Clock Settings......................................................... 152
7.6.1
7.6.2
Time required for switchover between system clock and CPU clock ................................. 152
System clock and CPU clock switching procedure .............................................................. 153
CHAPTER 8 16-BIT TIMER/EVENT COUNTER .................................................................................. 155
8.1
8.2
8.3
8.4
8.5
Outline of Timers Incorporated into µPD78070A and 78070AY................................... 155
16-bit Timer/Event Counter Functions ............................................................................ 157
16-bit Timer/Event Counter Configuration ...................................................................... 159
16-bit Timer/Event Counter Control Registers ............................................................... 164
16-bit Timer/Event Counter Operations........................................................................... 172
8.5.1
8.5.2
8.5.3
8.5.4
8.5.5
8.5.6
8.5.7
Interval timer operations ........................................................................................................ 172
PWM output operations ......................................................................................................... 174
PPG output operations .......................................................................................................... 177
Pulse width measurement operations ................................................................................... 178
External event counter operation .......................................................................................... 185
Square-wave output operation .............................................................................................. 187
One-shot pulse output operation ........................................................................................... 189
8.6
16-bit Timer/Event Counter Operating Precautions ...................................................... 193
CHAPTER 9 8-BIT TIMER/EVENT COUNTERS 1 AND 2................................................................... 197
9.1
8-bit Timer/Event Counters 1 and 2 Functions .............................................................. 197
9.1.1
9.1.2
8-bit timer/event counter mode ............................................................................................. 197
16-bit timer/event counter mode ........................................................................................... 200
9.2
9.3
9.4
8-bit Timer/Event Counters 1 and 2 Configurations ..................................................... 202
8-bit Timer/Event Counters 1 and 2 Control Registers................................................. 205
8-bit Timer/Event Counters 1 and 2 Operations ............................................................ 210
9.4.1
9.4.2
8-bit timer/event counter mode ............................................................................................. 210
16-bit timer/event counter mode ........................................................................................... 216
9.5
Cautions on 8-bit Timer/Event Counters 1 and 2 .......................................................... 221
CHAPTER 10 8-BIT TIMER/EVENT COUNTERS 5 AND 6................................................................. 223
10.1 8-bit Timer/Event Counters 5 and 6 Functions .............................................................. 223
10.2 8-bit Timer/Event Counters 5 and 6 Configurations ..................................................... 226
10.3 8-bit Timer/Event Counters 5 and 6 Control Registers................................................. 228
10.4 8-bit Timer/Event Counters 5 and 6 Operations ............................................................ 233
10.4.1 Interval timer operations ........................................................................................................ 233
10.4.2 External event counter operation .......................................................................................... 236
10.4.3 Square-wave output ............................................................................................................... 237
10.4.4 PWM output operations ......................................................................................................... 239
10.5 Cautions on 8-bit Timer/Event Counters 5 and 6 .......................................................... 242
CHAPTER 11 WATCH TIMER ............................................................................................................. 245
11.1 Watch Timer Functions...................................................................................................... 245
11.2 Watch Timer Configuration ............................................................................................... 246
11.3 Watch Timer Control Registers ........................................................................................ 247
11.4 Watch Timer Operations .................................................................................................... 250
11.4.1 Watch timer operation............................................................................................................ 250
11.4.2 Interval timer operation .......................................................................................................... 250
18