![](http://datasheet.mmic.net.cn/Renesas-Electronics-America/UPD78F1156AGC-GAD-AX_datasheet_99856/UPD78F1156AGC-GAD-AX_12.png)
User’s Manual U17893EJ8V0UD
10
CHAPTER 5 CLOCK GENERATOR .................................................................................................... 151
5.1 Functions of Clock Generator................................................................................................... 151
5.2 Configuration of Clock Generator ............................................................................................ 152
5.3 Registers Controlling Clock Generator.................................................................................... 154
5.4 System Clock Oscillator ............................................................................................................ 168
5.4.1 X1 oscillator.....................................................................................................................................168
5.4.2 XT1 oscillator ..................................................................................................................................168
5.4.3 Internal high-speed oscillator ..........................................................................................................171
5.4.4 Internal low-speed oscillator............................................................................................................171
5.4.5 Prescaler .........................................................................................................................................171
5.5 Clock Generator Operation ....................................................................................................... 172
5.6 Controlling Clock........................................................................................................................ 176
5.6.1 Example of controlling high-speed system clock .............................................................................176
5.6.2 Example of controlling internal high-speed oscillation clock............................................................179
5.6.3 Example of controlling subsystem clock..........................................................................................181
5.6.4 Example of controlling internal low-speed oscillation clock .............................................................183
5.6.5 CPU clock status transition diagram................................................................................................184
5.6.6 Condition before changing CPU clock and processing after changing CPU clock ..........................189
5.6.7 Time required for switchover of CPU clock and main system clock ................................................191
5.6.8 Conditions before clock oscillation is stopped .................................................................................192
CHAPTER 6 TIMER ARRAY UNIT...................................................................................................... 193
6.1 Functions of Timer Array Unit................................................................................................... 193
6.1.1 Functions of each channel when it operates independently ............................................................193
6.1.2 Functions of each channel when it operates with another channel .................................................194
6.1.3 LIN-bus supporting function (channel 7 only) ..................................................................................194
6.2 Configuration of Timer Array Unit ............................................................................................ 195
6.3 Registers Controlling Timer Array Unit.................................................................................... 200
6.4 Channel Output (TO0n pin) Control.......................................................................................... 221
6.4.1 TO0n pin output circuit configuration...............................................................................................221
6.4.2 TO0n Pin Output Setting .................................................................................................................222
6.4.3 Cautions on Channel Output Operation ..........................................................................................222
6.4.4 Collective manipulation of TO0n bits ...............................................................................................226
6.4.5 Timer Interrupt and TO0n Pin Output at Operation Start.................................................................227
6.5 Channel Input (TI0n Pin) Control .............................................................................................. 228
6.5.1 TI0n edge detection circuit ..............................................................................................................228
6.6 Basic Function of Timer Array Unit .......................................................................................... 229
6.6.1 Overview of single-operation function and combination-operation function.....................................229
6.6.2 Basic rules of combination-operation function.................................................................................229
6.6.3 Applicable range of basic rules of combination-operation function..................................................230
6.7 Operation of Timer Array Unit as Independent Channel ........................................................ 231
6.7.1 Operation as interval timer/square wave output ..............................................................................231
6.7.2 Operation as external event counter ...............................................................................................237
6.7.3 Operation as frequency divider (channel 0 only) .............................................................................240
6.7.4 Operation as input pulse interval measurement ..............................................................................244
6.7.5 Operation as input signal high-/low-level width measurement.........................................................248
6.8 Operation of Plural Channels of Timer Array Unit .................................................................. 252
6.8.1 Operation as PWM function ............................................................................................................252