![](http://datasheet.mmic.net.cn/370000/UPD703215_datasheet_16743812/UPD703215_11.png)
User’s Manual U16890EJ1V0UD
11
CHAPTER 7 16-BIT TIMER/EVENT COUNTER P (TMP) .................................................................206
7.1
Overview................................................................................................................................... 206
7.2
Functions.................................................................................................................................. 206
7.3
Configuration............................................................................................................................ 207
7.4
Registers................................................................................................................................... 209
7.5
Operation.................................................................................................................................. 220
7.5.1
Interval timer mode (TP0MD2 to TP0MD0 bits = 000)..................................................................221
7.5.2
External event count mode (TP0MD2 to TP0MD0 bits = 001)......................................................231
7.5.3
External trigger pulse output mode (TP0MD2 to TP0MD0 bits = 010)..........................................239
7.5.4
One-shot pulse output mode (TP0MD2 to TP0MD0 bits = 011)...................................................251
7.5.5
PWM output mode (TP0MD2 to TP0MD0 bits = 100)...................................................................258
7.5.6
Free-running timer mode (TP0MD2 to TP0MD0 bits = 101).........................................................267
7.5.7
Pulse width measurement mode (TP0MD2 to TP0MD0 bits = 110) .............................................284
7.5.8
Timer output operations................................................................................................................290
7.6
Eliminating Noise on Capture Trigger Input Pin (TIP0a)...................................................... 291
7.7
Cautions.................................................................................................................................... 293
CHAPTER 8 16-BIT TIMER/EVENT COUNTER 0..............................................................................294
8.1
Functions.................................................................................................................................. 294
8.2
Configuration............................................................................................................................ 295
8.3
Registers................................................................................................................................... 300
8.4
Operation.................................................................................................................................. 310
8.4.1
Operation as interval timer ...........................................................................................................310
8.4.2
PPG output operation...................................................................................................................313
8.4.3
Pulse width measurement ............................................................................................................317
8.4.4
Operation as external event counter.............................................................................................326
8.4.5
Square-wave output operation......................................................................................................329
8.4.6
One-shot pulse output operation ..................................................................................................332
8.4.7
Cautions .......................................................................................................................................335
CHAPTER 9 8-BIT TIMER/EVENT COUNTER 5................................................................................339
9.1
Functions.................................................................................................................................. 339
9.2
Configuration............................................................................................................................ 340
9.3
Registers................................................................................................................................... 343
9.4
Operation.................................................................................................................................. 346
9.4.1
Operation as interval timer ...........................................................................................................346
9.4.2
Operation as external event counter.............................................................................................348
9.4.3
Square-wave output operation......................................................................................................349
9.4.4
8-bit PWM output operation..........................................................................................................351
9.4.5
Operation as interval timer (16 bits)..............................................................................................354
9.4.6
Operation as external event counter (16 bits)...............................................................................356
9.4.7
Square-wave output operation (16-bit resolution).........................................................................357
9.4.8
Cautions .......................................................................................................................................358
CHAPTER 10 8-BIT TIMER H..............................................................................................................359
10.1 Functions.................................................................................................................................. 359
10.2 Configuration............................................................................................................................ 359
10.3 Registers................................................................................................................................... 362