18
7.4.2
7.4.3
7.4.4
Clock Generator Operations ................................................................................................. 165
7.5.1
Main system clock operations ...................................................................................................... 166
7.5.2
Subsystem clock operations ........................................................................................................ 167
Changing System Clock and CPU Clock Settings.............................................................. 167
7.6.1
Time required for switchover between system clock and CPU clock ........................................... 167
7.6.2
System clock and CPU clock switching procedure ...................................................................... 169
Subsystem clock oscillator ........................................................................................................... 162
Scaler ........................................................................................................................................... 164
When no subsystem clocks are used........................................................................................... 164
7.5
7.6
CHAPTER 8 16-BIT TIMER/EVENT COUNTER................................................................................... 171
8.1
8.2
8.3
8.4
8.5
Overview of the
μ
PD78058F and 78058FY Subseries On-Chip Timers............................. 171
16-Bit Timer/Event Counter Functions ................................................................................ 173
16-Bit Timer/Event Counter Configuration .......................................................................... 174
16-Bit Timer/Event Counter Control Registers ................................................................... 178
16-Bit Timer/Event Counter Operations............................................................................... 187
8.5.1
Interval timer operations............................................................................................................... 187
8.5.2
PWM output operations................................................................................................................ 189
8.5.3
PPG output operation................................................................................................................... 192
8.5.4
Pulse width measurement operations .......................................................................................... 193
8.5.5
External event counter operation ................................................................................................. 200
8.5.6
Square-wave output operation ..................................................................................................... 202
8.5.7
One-shot pulse output operation .................................................................................................. 204
16-Bit Timer/Event Counter Operating Precautions ........................................................... 208
8.6
CHAPTER 9 8-BIT TIMER/EVENT COUNTERS .................................................................................. 211
9.1
8-Bit Timer/Event Counter Function .................................................................................... 211
9.1.1
8-bit timer/event counter mode .................................................................................................... 211
9.1.2
16-bit timer/event counter mode .................................................................................................. 214
8-Bit Timer/Event Counter Configuration ............................................................................ 216
8-Bit Timer/Event Counter Control Registers ..................................................................... 220
8-Bit Timer/Event Counter Operation................................................................................... 225
9.4.1
8-bit timer/event counter mode .................................................................................................... 225
9.4.2
16-bit timer/event counter mode .................................................................................................. 230
Cautions on 8-Bit Timer/Event Counters............................................................................. 236
9.2
9.3
9.4
9.5
CHAPTER 10 WATCH TIMER .............................................................................................................. 239
10.1
10.2
10.3
10.4
Watch Timer Functions ....................................................................................................... 239
Watch Timer Configuration................................................................................................. 240
Watch Timer Control Registers .......................................................................................... 240
Watch Timer Operations ..................................................................................................... 244
10.4.1
Watch timer operation ............................................................................................................. 244
10.4.2
Interval timer operation............................................................................................................ 244