![](http://datasheet.mmic.net.cn/Renesas-Electronics-America/UPD78F1146AF1-AN1-A_datasheet_99855/UPD78F1146AF1-AN1-A_12.png)
User’s Manual U17854EJ9V0UD
10
5.4 System Clock Oscillator ............................................................................................................ 156
5.4.1 X1 oscillator.....................................................................................................................................156
5.4.2 XT1 oscillator ..................................................................................................................................156
5.4.3 Internal high-speed oscillator ..........................................................................................................159
5.4.4 Internal low-speed oscillator............................................................................................................159
5.4.5 Prescaler .........................................................................................................................................159
5.5 Clock Generator Operation ....................................................................................................... 160
5.6 Controlling Clock........................................................................................................................ 164
5.6.1 Example of controlling high-speed system clock .............................................................................164
5.6.2 Example of controlling internal high-speed oscillation clock............................................................167
5.6.3 Example of controlling subsystem clock..........................................................................................169
5.6.4 Example of controlling internal low-speed oscillation clock .............................................................171
5.6.5 CPU clock status transition diagram................................................................................................172
5.6.6 Condition before changing CPU clock and processing after changing CPU clock ..........................177
5.6.7 Time required for switchover of CPU clock and main system clock ................................................179
5.6.8 Conditions before clock oscillation is stopped .................................................................................180
CHAPTER 6 TIMER ARRAY UNIT...................................................................................................... 181
6.1 Functions of Timer Array Unit................................................................................................... 181
6.1.1 Functions of each channel when it operates independently ............................................................181
6.1.2 Functions of each channel when it operates with another channel .................................................182
6.1.3 LIN-bus supporting function (channel 7 only) ..................................................................................182
6.2 Configuration of Timer Array Unit ............................................................................................ 183
6.3 Registers Controlling Timer Array Unit.................................................................................... 188
6.4 Channel Output (TO0n pin) Control.......................................................................................... 209
6.4.1 TO0n pin output circuit configuration...............................................................................................209
6.4.2 TO0n Pin Output Setting .................................................................................................................210
6.4.3 Cautions on Channel Output Operation ..........................................................................................210
6.4.4 Collective manipulation of TO0n bits ...............................................................................................214
6.4.5 Timer Interrupt and TO0n Pin Output at Operation Start.................................................................215
6.5 Channel Input (TI0n Pin) Control .............................................................................................. 216
6.5.1 TI0n edge detection circuit ..............................................................................................................216
6.6 Basic Function of Timer Array Unit .......................................................................................... 217
6.6.1 Overview of single-operation function and combination-operation function.....................................217
6.6.2 Basic rules of combination-operation function.................................................................................217
6.6.3 Applicable range of basic rules of combination-operation function..................................................218
6.7 Operation of Timer Array Unit as Independent Channel ........................................................ 219
6.7.1 Operation as interval timer/square wave output ..............................................................................219
6.7.2 Operation as external event counter ...............................................................................................225
6.7.3 Operation as frequency divider (channel 0 only) .............................................................................228
6.7.4 Operation as input pulse interval measurement ..............................................................................232
6.7.5 Operation as input signal high-/low-level width measurement.........................................................236
6.8 Operation of Plural Channels of Timer Array Unit .................................................................. 240
6.8.1 Operation as PWM function ............................................................................................................240
6.8.2 Operation as one-shot pulse output function...................................................................................247
6.8.3 Operation as multiple PWM output function ....................................................................................254