User's Manual

Table Of Contents
25.2.1 Timer Control Register (TCR) .................................................................................................669
25.2.2 Timer Mode Register (TMDR) .................................................................................................673
25.2.3 Timer I/O Control Register (TIORH, TIORL, TIOR) ..............................................................674
25.2.4 Timer Interrupt Enable Register (TIER) ..................................................................................682
25.2.5 Timer Status Register (TSR) ....................................................................................................683
25.2.6 Timer Counter (TCNT) ............................................................................................................686
25.2.7 Timer General Register A (TGRA), Timer General Register B (TGRB),
Timer General Register C (TGRC), Timer General Register D (TGRD) ................................686
25.2.8 Timer Start Register (TSTR) ....................................................................................................687
25.2.9 Timer Synchronous Register (TSYR) ......................................................................................688
25.2.10 Noise Filter Control Register (NFCR) ......................................................................................689
25.3 Operation ...........................................................................................................................................691
25.3.1 Basic Functions .........................................................................................................................691
25.3.2 Synchronous Operation ............................................................................................................697
25.3.3 Buffer Operation .......................................................................................................................699
25.3.4 Cascaded Operation ..................................................................................................................702
25.3.5 PWM Modes .............................................................................................................................704
25.3.6 Phase Counting Mode ...............................................................................................................709
25.3.6.1 Phase Counting Mode Application Example ..................................................................714
25.3.7 Noise Filters ..............................................................................................................................715
25.4 Interrupt Sources ................................................................................................................................716
25.5 DTC Activation .................................................................................................................................717
25.6 DMAC Activation .............................................................................................................................717
25.7 A/D Converter Activation .................................................................................................................717
25.8 Operation Timing ..............................................................................................................................718
25.8.1 Input/Output Timing .................................................................................................................718
25.8.2 Interrupt Signal Timing ............................................................................................................722
25.9 Usage Notes .......................................................................................................................................724
25.9.1 Module Stop Function Setting ..................................................................................................724
25.9.2 Input Clock Restrictions ...........................................................................................................724
25.9.3 Notes on Cycle Setting .............................................................................................................724
25.9.4 Conflict between TPUm.TCNT Write and Clear Operations ...................................................725
25.9.5 Conflict between TPUm.TCNT Write and Increment Operations ...........................................725
25.9.6 Conflict between TPUm.TGRy Write and Compare Match ....................................................726
25.9.7 Conflict between Buffer Register Write and Compare Match .................................................726
25.9.8 Conflict between TPUm.TGRy Read and Input Capture .........................................................727
25.9.9 Conflict between TPUm.TGRy Write and Input Capture ........................................................727
25.9.10 Conflict between Buffer Register Write and Input Capture .....................................................728
25.9.11 TCNT Simultaneous Input Capture in Cascade Operation ......................................................728
25.9.12 Conflict between Overflow/Underflow and Counter Clearing .................................................729
25.9.13 Conflict between TPUm.TCNT Write and Overflow/Underflow ............................................730