![](http://datasheet.mmic.net.cn/Renesas-Electronics-America/UPD78F1168AGF-GAS-AX_datasheet_99857/UPD78F1168AGF-GAS-AX_13.png)
User’s Manual U17894EJ9V0UD
11
7.2
Configuration of Timer Array Unit........................................................................................231
7.3
Registers Controlling Timer Array Unit ...............................................................................236
7.4
Channel Output (TO0n pin) Control .....................................................................................257
7.4.1
TO0n pin output circuit configuration........................................................................................257
7.4.2
TO0n pin output setting ............................................................................................................258
7.4.3
Cautions on channel output operation......................................................................................258
7.4.4
Collective manipulation of TO0n bits ........................................................................................262
7.4.5
Timer interrupt and TO0n pin output at count operation start ...................................................263
7.5
Channel Input (TI0n Pin) Control..........................................................................................264
7.5.1
TI0n edge detector ...................................................................................................................264
7.6
Basic Function of Timer Array Unit .....................................................................................265
7.6.1
Overview of single-operation function and combination operation function ..............................265
7.6.2
Basic rules of combination operation function ..........................................................................265
7.6.3
Applicable range of basic rules of combination operation function ...........................................266
7.7
Operation of Timer Array Unit as Independent Channel ...................................................267
7.7.1
Operation as interval timer/square wave output .......................................................................267
7.7.2
Operation as external event counter ........................................................................................273
7.7.3
Operation as frequency divider (channel 0 only) ......................................................................276
7.7.4
Operation as input pulse interval measurement .......................................................................280
7.7.5
Operation as input signal high-/low-level width measurement..................................................284
7.8
Operation of Plural Channels of Timer Array Unit..............................................................288
7.8.1
Operation as PWM function......................................................................................................288
7.8.2
Operation as one-shot pulse output function ............................................................................295
7.8.3
Operation as multiple PWM output function .............................................................................302
CHAPTER 8 REAL-TIME COUNTER..................................................................................................309
8.1
Functions of Real-Time Counter ..........................................................................................309
8.2
Configuration of Real-Time Counter ....................................................................................309
8.3
Registers Controlling Real-Time Counter ...........................................................................311
8.4
Real-Time Counter Operation ...............................................................................................326
8.4.1
Starting operation of real-time counter .....................................................................................326
8.4.2
Shifting to STOP mode after starting operation ........................................................................327
8.4.3
Reading/writing real-time counter.............................................................................................328
8.4.4
Setting alarm of real-time counter ............................................................................................330
8.4.5
1 Hz output of real-time counter ...............................................................................................331
8.4.6
32.768 kHz output of real-time counter ....................................................................................331
8.4.7
512 Hz, 16.384 kHz output of real-time counter .......................................................................331
8.4.8
Example of watch error correction of real-time counter ............................................................332
CHAPTER 9 WATCHDOG TIMER ......................................................................................................337
9.1
Functions of Watchdog Timer ..............................................................................................337
9.2
Configuration of Watchdog Timer........................................................................................338
9.3
Register Controlling Watchdog Timer .................................................................................339
9.4
Operation of Watchdog Timer ..............................................................................................340
9.4.1
Controlling operation of watchdog timer ...................................................................................340
9.4.2
Setting overflow time of watchdog timer ...................................................................................341
9.4.3
Setting window open period of watchdog timer ........................................................................342
9.4.4
Setting watchdog timer interval interrupt ..................................................................................343