Index-7
6.7 Independent Channel Operation Function of Timer Array Unit ............................................. 488
6.7.1 Operation as interval timer/square wave output ............................................................................. 488
6.7.2 Operation as external event counter .............................................................................................. 494
6.7.3 Operation as frequency divider ....................................................................................................... 499
6.7.4 Operation as input pulse interval measurement ............................................................................. 503
6.7.5 Operation as input signal high-/low-level width measurement ........................................................ 508
6.7.6 Operation as delay counter ............................................................................................................ 513
6.8 Simultaneous Channel Operation Function of Timer Array Unit .......................................... 518
6.8.1 Operation as one-shot pulse output function .................................................................................. 518
6.8.2 Operation as PWM function ............................................................................................................ 526
6.8.3 Operation as multiple PWM output function ................................................................................... 533
6.9 Cautions When Using Timer Array Unit ................................................................................... 542
6.9.1 Cautions When Using Timer output ................................................................................................ 542
CHAPTER 7 TIMER RJ......................................................................................................................... 543
7.1 Overview ...................................................................................................................................... 543
7.2 I/O Pins ........................................................................................................................................ 544
7.3 Registers ..................................................................................................................................... 545
7.3.1 Peripheral enable register 1 (PER1) ............................................................................................... 546
7.3.2 Operation speed mode control register (OSMC) ............................................................................ 547
7.3.3 Clock Select Register (CKSEL) ...................................................................................................... 547
7.3.4 Timer RJ Counter Register 0 (TRJ0), Timer RJ Reload Register ................................................... 548
7.3.5 Timer RJ Control Register 0 (TRJCR0) .......................................................................................... 549
7.3.6 Timer RJ I/O Control Register 0 (TRJIOC0) ................................................................................... 551
7.3.7 Timer RJ Mode Register 0 (TRJMR0) ............................................................................................ 553
7.3.8 Timer RJ Event Pin Select Register 0 (TRJISR0) .......................................................................... 554
7.3.9 Port mode registers 1, 4 (PM1, PM4) ............................................................................................. 555
7.4 Operation ..................................................................................................................................... 556
7.4.1 Reload Register and Counter Rewrite Operation ........................................................................... 556
7.4.2 Timer Mode .................................................................................................................................... 557
7.4.3 Pulse Output Mode ......................................................................................................................... 558
7.4.4 Event Counter Mode ...................................................................................................................... 559
7.4.5 Pulse Width Measurement Mode ................................................................................................... 561
7.4.6 Pulse Period Measurement Mode .................................................................................................. 562
7.4.7 Coordination with Event Link Controller (ELC) ............................................................................... 563
7.4.8 Output Settings for Each Mode ...................................................................................................... 563
7.5 Notes on Timer RJ ...................................................................................................................... 564
7.5.1 Count Operation Start and Stop Control ......................................................................................... 564
7.5.2 Access to Flags (Bits TEDGF and TUNDF in TRJCR0 Register) ................................................... 564
7.5.3 Access to Counter Register ............................................................................................................ 564
7.5.4 When Changing Mode .................................................................................................................... 564