
User’s Manual U16541EJ4V0UD
12
6.5.2
Registers..................................................................................................................................222
6.5.3
Usage ......................................................................................................................................226
CHAPTER 7 16-BIT TIMER/EVENT COUNTER P (TMP) ................................................................ 227
7.1
Overview................................................................................................................................ 227
7.2
Functions............................................................................................................................... 227
7.3
Configuration ........................................................................................................................ 228
7.4
Registers ............................................................................................................................... 230
7.5
Operation............................................................................................................................... 242
7.5.1
Interval timer mode (TPnMD2 to TPnMD0 bits = 000) ............................................................. 243
7.5.2
External event count mode (TPnMD2 to TPnMD0 bits = 001) ................................................. 253
7.5.3
External trigger pulse output mode (TPnMD2 to TPnMD0 bits = 010) .....................................261
7.5.4
One-shot pulse output mode (TPnMD2 to TPnMD0 bits = 011)............................................... 273
7.5.5
PWM output mode (TPnMD2 to TPnMD0 bits = 100) .............................................................. 280
7.5.6
Free-running timer mode (TPnMD2 to TPnMD0 bits = 101) ....................................................289
7.5.7
Pulse width measurement mode (TPnMD2 to TPnMD0 bits = 110).........................................306
7.5.8
Timer output operations ...........................................................................................................312
7.6
Selector Function ................................................................................................................. 313
7.7
Cautions ................................................................................................................................ 315
CHAPTER 8 16-BIT TIMER/EVENT COUNTER Q (TMQ)................................................................ 316
8.1
Overview................................................................................................................................ 316
8.2
Functions............................................................................................................................... 316
8.3
Configuration ........................................................................................................................ 317
8.4
Registers ............................................................................................................................... 320
8.5
Operation............................................................................................................................... 336
8.5.1
Interval timer mode (TQ0MD2 to TQ0MD0 bits = 000) ............................................................ 337
8.5.2
External event count mode (TQ0MD2 to TQ0MD0 bits = 001) ................................................ 346
8.5.3
External trigger pulse output mode (TQ0MD2 to TQ0MD0 bits = 010) ....................................355
8.5.4
One-shot pulse output mode (TQ0MD2 to TQ0MD0 bits = 011).............................................. 368
8.5.5
PWM output mode (TQ0MD2 to TQ0MD0 bits = 100) ............................................................. 377
8.5.6
Free-running timer mode (TQ0MD2 to TQ0MD0 bits = 101) ...................................................388
8.5.7
Pulse width measurement mode (TQ0MD2 to TQ0MD0 bits = 110)........................................408
8.5.8
Timer output operations ...........................................................................................................414
8.6
Selector Function ................................................................................................................. 414
8.7
Cautions ................................................................................................................................ 415
CHAPTER 9 16-BIT INTERVAL TIMER M (TMM) ............................................................................ 416
9.1
Overview................................................................................................................................ 416
9.2
Configuration ........................................................................................................................ 417
9.3
Register ................................................................................................................................. 418
9.4
Operation............................................................................................................................... 419
9.4.1
Interval timer mode ..................................................................................................................419
9.4.2
Cautions...................................................................................................................................423
CHAPTER 10 WATCH TIMER FUNCTIONS ...................................................................................... 424
10.1
Functions............................................................................................................................... 424