20 User’s Manual U16702EE3V2UD00
Figure 7-7: TMPn Dedicated I/O Control Register 0 (TPnIOC0) Format .................................... 264
Figure 7-8: TMPn Dedicated I/O Control Register 1 (TPnIOC1) Format .................................... 265
Figure 7-9: TMPn Dedicated I/O Control Register 2 (TPnIOC2) Format .................................... 266
Figure 7-10: TMPn Option Register 0 (TPnOPT0) Format ........................................................... 267
Figure 7-11: Selector Operation Control Register 0 (SELCNT0) Format ...................................... 268
Figure 7-12: TIPnm Pin Noise Elimination Control Register n (PnmNFC) Format ....................... 269
Figure 7-13: Flowchart of Basic Operation for Anytime Write........................................................ 271
Figure 7-14: Timing Diagram for Anytime Write............................................................................. 272
Figure 7-15: Flowchart of Basic Operation for Reload................................................................... 273
Figure 7-16: Timing Chart for Reload ............................................................................................ 274
Figure 7-17: Flowchart of Basic Operation in Interval Timer Mode................................................ 275
Figure 7-18: Basic Operation Timing in Interval Timer Mode (1/2) ................................................ 276
Figure 7-19: Flowchart of Basic Operation in External Event Counter Mode ................................ 278
Figure 7-20: Basic Operation Timing in External Event Counter Mode (1/2)................................. 279
Figure 7-21: Flowchart of Basic Operation in External Trigger Pulse Output Mode ...................... 282
Figure 7-22: Basic Operation Timing in External Trigger Pulse Output Mode
(TPnOE0 = 1, TPnOE1 = 1, TPnOL0 = 0, TPnOL1 = 0) ........................................... 283
Figure 7-23: Flowchart of Basic Operation in One-Shot Pulse Mode ............................................ 285
Figure 7-24: Timing of Basic Operation in One-Shot Pulse Mode
(TPnOE0 = 1, TPnOE1 = 1, TPnOL0 = 0, TPnOL1 = 0) ........................................... 286
Figure 7-25: Flowchart of Basic Operation in PWM Mode (1/2) .................................................... 287
Figure 7-26: Basic Operation Timing in PWM Mode (1/2) ............................................................. 289
Figure 7-27: Flowchart of Basic Operation in Free-Running Mode................................................ 292
Figure 7-28: Basic Operation Timing in Free-Running Mode (TPnCCS1 = 0, TPnCCS0 = 0)
(TPnOE0 = 1, TPnOE1 = 1, TPnOL0 = 0, TPnOL1 = 0) ........................................... 293
Figure 7-29: Basic Operation Timing in Free-Running Mode (TPnCCS1 = 1, TPnCCS0 = 1)
(TPnOE0 = 1, TPnOE1 = 1, TPnOL0 = 0, TPnOL1 = 0) ........................................... 294
Figure 7-30: Basic Operation Timing in Free-Running Mode (TPnCCS1 = 1, TPnCCS0 = 0)
(TPnOE0 = 1, TPnOE1 = 1, TPnOL0 = 0, TPnOL1 = 0) ........................................... 295
Figure 7-31: Basic Operation Timing in Free-Running Mode (TPnCCS1 = 0, TPnCCS0 = 1)
(TPnOE0 = 1, TPnOE1 = 1, TPnOL0 = 0, TPnOL1 = 0) ........................................... 296
Figure 7-32: Flowchart of Basic Operation in Pulse Width Measurement Mode ........................... 297
Figure 7-33: Basic Operation Timing in Pulse Width Measurement Mode
(TPnOE0 = 0, TPnOE1 = 0, TPnOL0 = 0, TPnOL1 = 0) ........................................... 298
Figure 7-34: Tuned Operation Image (TMP2, TMP3, TMQ0) ........................................................ 301
Figure 7-35: Basic Operation Timing of Tuned PWM Function (TMP2, TMP3, TMQ0)................. 302
Figure 8-1: Block Diagram of Timer Q ......................................................................................... 305
Figure 8-2: Capture/Compare Register 0 (TQnCCR0) Format ................................................... 306
Figure 8-3: Capture/Compare Register 1 (TQnCCR1) Format ................................................... 307
Figure 8-4: Capture/Compare Register 2 (TQnCCR2) Format ................................................... 308
Figure 8-5: Capture/Compare Register 3 (TQnCCR3) Format ................................................... 309
Figure 8-6: Timer Read Buffer Register (TQnCNT) Format ........................................................ 310
Figure 8-7: Timer Qn Control Register 0 (TQnCTL0) Format ..................................................... 311
Figure 8-8: Timer Q Control Register 1 (TQnCTL1) Format (1/2) ............................................... 312
Figure 8-9: Timer Q Dedicated I/O Control Register 0 (TQnIOC0) Format ................................ 314
Figure 8-10: Timer Q Dedicated I/O Control Register 1 (TQnIOC1) Format ................................ 315
Figure 8-11: Timer Q Dedicated I/O Control Register 2 (TQnIOC2) Format ................................ 316
Figure 8-12: Timer Q Option Register 0 (TQnOPT0) Format ....................................................... 317
Figure 8-13: TIQnm Pin Noise Elimination Control Register n (QnmNFC) Format ....................... 318
Figure 8-14: Flowchart of Basic Operation for Anytime Write........................................................ 320
Figure 8-15: Timing Chart of Any Time Write ................................................................................ 321
Figure 8-16: Flowchart of Basic Operation for Reload................................................................... 322
Figure 8-17: Timing Chart of Reload..............................................................................................323
Figure 8-18: Flowchart of Basic Operation in Interval Timer Mode................................................ 324
Figure 8-19: Basic Operation Timing in Interval Timer Mode (1/2) ................................................ 325
Figure 8-20: Flowchart of Basic Operation in External Event Counter Mode ................................ 328
Figure 8-21: Basic Operation Timing in External Event Counter Mode (1/2)................................. 329
Figure 8-22: Flowchart of Basic Operation in External Trigger Pulse Output Mode ...................... 332