![](http://datasheet.mmic.net.cn/190000/UPD70F3271YGF-JBT-A_datasheet_14990901/UPD70F3271YGF-JBT-A_11.png)
User’s Manual U16541EJ5V1UD
11
6.4.2
Clock output function ............................................................................................................... 219
6.5
PLL Function..........................................................................................................................220
6.5.1
Overview ................................................................................................................................. 220
6.5.2
Registers ................................................................................................................................. 220
6.5.3
Usage ...................................................................................................................................... 223
CHAPTER 7 16-BIT TIMER/EVENT COUNTER P (TMP) .................................................................224
7.1
Overview.................................................................................................................................224
7.2
Functions ...............................................................................................................................224
7.3
Configuration .........................................................................................................................225
7.4
Registers ................................................................................................................................227
7.5
Timer Output Operations......................................................................................................240
7.6
Operation................................................................................................................................241
7.6.1
Interval timer mode (TPnMD2 to TPnMD0 bits = 000)............................................................. 248
7.6.2
External event count mode (TPnMD2 to TPnMD0 bits = 001) ................................................. 260
7.6.3
External trigger pulse output mode (TPnMD2 to TPnMD0 bits = 010)..................................... 269
7.6.4
One-shot pulse output mode (TPnMD2 to TPnMD0 bits = 011) .............................................. 281
7.6.5
PWM output mode (TPnMD2 to TPnMD0 bits = 100).............................................................. 288
7.6.6
Free-running timer mode (TPnMD2 to TPnMD0 bits = 101) .................................................... 297
7.6.7
Pulse width measurement mode (TPnMD2 to TPnMD0 bits = 110) ........................................ 315
7.7
Selector Function ..................................................................................................................321
CHAPTER 8 16-BIT TIMER/EVENT COUNTER Q (TMQ) ................................................................323
8.1
Overview.................................................................................................................................323
8.2
Functions ...............................................................................................................................323
8.3
Configuration .........................................................................................................................324
8.4
Registers ................................................................................................................................327
8.5
Timer output operations .......................................................................................................343
8.6
Operation................................................................................................................................344
8.6.1
Interval timer mode (TQ0MD2 to TQ0MD0 bits = 000) ............................................................ 351
8.6.2
External event count mode (TQ0MD2 to TQ0MD0 bits = 001) ................................................ 362
8.6.3
External trigger pulse output mode (TQ0MD2 to TQ0MD0 bits = 010) .................................... 372
8.6.4
One-shot pulse output mode (TQ0MD2 to TQ0MD0 bits = 011) ............................................. 385
8.6.5
PWM output mode (TQ0MD2 to TQ0MD0 bits = 100) ............................................................. 394
8.6.6
Free-running timer mode (TQ0MD2 to TQ0MD0 bits = 101) ................................................... 405
8.6.7
Pulse width measurement mode (TQ0MD2 to TQ0MD0 bits = 110)........................................ 426
8.7
Selector Function ..................................................................................................................431
CHAPTER 9 16-BIT INTERVAL TIMER M (TMM).............................................................................432
9.1
Overview.................................................................................................................................432
9.2
Configuration .........................................................................................................................433
9.3
Register ..................................................................................................................................434
9.4
Operation................................................................................................................................435
9.4.1
Interval timer mode.................................................................................................................. 435
9.4.2
Cautions .................................................................................................................................. 439