![](http://datasheet.mmic.net.cn/Renesas-Electronics-America/UPD78F1188AGJ-GAE-AX_datasheet_99859/UPD78F1188AGJ-GAE-AX_13.png)
User’s Manual U18417EJ4V0UD
11
CHAPTER 7 TIMER ARRAY UNIT ..................................................................................................... 244
7.1 Functions of Timer Array Unit ............................................................................................................ 244
7.1.1 Functions of each channel when it operates independently............................................................244
7.1.2 Functions of each channel when it operates with another channel .................................................245
7.1.3 LIN-bus supporting function (channel 7 only)..................................................................................245
7.2 Configuration of Timer Array Unit...................................................................................................... 246
7.3 Registers Controlling Timer Array Unit............................................................................................. 252
7.4 Channel Output (TOmn pin) Control.................................................................................................. 275
7.4.1 TOmn pin output circuit configuration .............................................................................................275
7.4.2 TOmn Pin Output Setting ................................................................................................................276
7.4.3 Cautions on Channel Output Operation ..........................................................................................277
7.4.4 Collective manipulation of TOmn bits..............................................................................................280
7.4.5 Timer Interrupt and TOmn Pin Output at Operation Start ...............................................................281
7.5 Channel Input (TImn Pin) Control....................................................................................................... 282
7.5.1 TImn edge detection circuit .............................................................................................................282
7.6 Basic Function of Timer Array Unit ................................................................................................... 283
7.6.1 Overview of single-operation function and combination operation function ....................................283
7.6.2 Basic rules of combination operation function.................................................................................283
7.6.3 Applicable range of basic rules of combination operation function..................................................284
7.7 Operation of Timer Array Unit as Independent Channel ................................................................ 285
7.7.1 Operation as interval timer/square wave output..............................................................................285
7.7.2 Operation as external event counter ...............................................................................................292
7.7.3 Operation as frequency divider (channel 0 of unit 0 only) ...............................................................295
7.7.4 Operation as input pulse interval measurement..............................................................................299
7.7.5 Operation as input signal high-/low-level width measurement ........................................................303
7.8 Operation of Plural Channels of Timer Array Unit...........................................................................307
7.8.1 Operation as PWM function ............................................................................................................307
7.8.2 Operation as one-shot pulse output function...................................................................................314
7.8.3 Operation as multiple PWM output function ....................................................................................321
CHAPTER 8 REAL-TIME COUNTER .................................................................................................. 329
8.1 Functions of Real-Time Counter ........................................................................................................ 329
8.2 Configuration of Real-Time Counter.................................................................................................. 329
8.3 Registers Controlling Real-Time Counter......................................................................................... 331
8.4 Real-Time Counter Operation ............................................................................................................. 346
8.4.1 Starting operation of real-time counter ............................................................................................346
8.4.2 Shifting to STOP mode after starting operation...............................................................................347
8.4.3 Reading/writing real-time counter ...................................................................................................348
8.4.4 Setting alarm of real-time counter ...................................................................................................350
8.4.5 1 Hz output of real-time counter......................................................................................................351
8.4.6 32.768 kHz output of real-time counter ...........................................................................................351
8.4.7 512 Hz, 16.384 kHz output of real-time counter..............................................................................352
8.4.8 Example of watch error correction of real-time counter...................................................................353
CHAPTER 9 WATCHDOG TIMER ....................................................................................................... 358
9.1 Functions of Watchdog Timer ............................................................................................................ 358
9.2 Configuration of Watchdog Timer...................................................................................................... 359