
User’s Manual U17790EJ2V0UD
11
6.5.1
Overview ................................................................................................................................. 237
6.5.2
Registers ................................................................................................................................. 237
6.5.3
Usage ...................................................................................................................................... 241
CHAPTER 7 16-BIT TIMER/EVENT COUNTER P (TMP) .................................................................242
7.1
Overview.................................................................................................................................242
7.2
Functions ...............................................................................................................................242
7.3
Configuration .........................................................................................................................243
7.4
Registers ................................................................................................................................245
7.5
Operation................................................................................................................................257
7.5.1
Interval timer mode (TPnMD2 to TPnMD0 bits = 000)............................................................. 258
7.5.2
External event count mode (TPnMD2 to TPnMD0 bits = 001) ................................................. 268
7.5.3
External trigger pulse output mode (TPnMD2 to TPnMD0 bits = 010)..................................... 276
7.5.4
One-shot pulse output mode (TPnMD2 to TPnMD0 bits = 011) .............................................. 288
7.5.5
PWM output mode (TPnMD2 to TPnMD0 bits = 100).............................................................. 295
7.5.6
Free-running timer mode (TPnMD2 to TPnMD0 bits = 101) .................................................... 304
7.5.7
Pulse width measurement mode (TPnMD2 to TPnMD0 bits = 110) ........................................ 321
7.5.8
Timer output operations........................................................................................................... 327
7.6
Selector Function ..................................................................................................................328
7.7
Cautions .................................................................................................................................330
CHAPTER 8 16-BIT TIMER/EVENT COUNTER Q (TMQ) ................................................................331
8.1
Overview.................................................................................................................................331
8.2
Functions ...............................................................................................................................331
8.3
Configuration .........................................................................................................................332
8.4
Registers ................................................................................................................................335
8.5
Operation................................................................................................................................351
8.5.1
Interval timer mode (TQ0MD2 to TQ0MD0 bits = 000) ............................................................ 352
8.5.2
External event count mode (TQ0MD2 to TQ0MD0 bits = 001) ................................................ 361
8.5.3
External trigger pulse output mode (TQ0MD2 to TQ0MD0 bits = 010) .................................... 370
8.5.4
One-shot pulse output mode (TQ0MD2 to TQ0MD0 bits = 011) ............................................. 383
8.5.5
PWM output mode (TQ0MD2 to TQ0MD0 bits = 100) ............................................................. 392
8.5.6
Free-running timer mode (TQ0MD2 to TQ0MD0 bits = 101) ................................................... 403
8.5.7
Pulse width measurement mode (TQ0MD2 to TQ0MD0 bits = 110)........................................ 423
8.5.8
Timer output operations........................................................................................................... 429
8.6
Selector Function ..................................................................................................................429
8.7
Cautions .................................................................................................................................430
CHAPTER 9 16-BIT INTERVAL TIMER M (TMM).............................................................................431
9.1
Overview.................................................................................................................................431
9.2
Configuration .........................................................................................................................432
9.3
Register ..................................................................................................................................433
9.4
Operation................................................................................................................................434
9.4.1
Interval timer mode.................................................................................................................. 434
9.4.2
Cautions .................................................................................................................................. 438
CHAPTER 10 WATCH TIMER FUNCTIONS .......................................................................................439
10.1
Functions ...............................................................................................................................439
10.2
Configuration .........................................................................................................................440