viii
11.2.4 Output Compare Registers AR and AF (OCRAR, OCRAF)............................... 303
11.2.5 Output Compare Register DM (OCRDM)........................................................... 304
11.2.6 Timer Interrupt Enable Register (TIER).............................................................. 304
11.2.7 Timer Control/Status Register (TCSR)................................................................ 306
11.2.8 Timer Control Register (TCR) ............................................................................. 309
11.2.9 Timer Output Compare Control Register (TOCR) .............................................. 311
11.2.10 Module Stop Control Register (MSTPCR).......................................................... 313
11.3 Operation ........................................................................................................................... 314
11.3.1 FRC Increment Timing ........................................................................................ 314
11.3.2 Output Compare Output Timing.......................................................................... 315
11.3.3 FRC Clear Timing................................................................................................ 316
11.3.4 Input Capture Input Timing.................................................................................. 316
11.3.5 Timing of Input Capture Flag (ICF) Setting ........................................................ 318
11.3.6 Setting of Output Compare Flags A and B (OCFA, OCFB)................................ 319
11.3.7 Setting of FRC Overflow Flag (OVF).................................................................. 320
11.3.8 Automatic Addition of OCRA and OCRAR/OCRAF.......................................... 320
11.3.9 ICRD and OCRDM Mask Signal Generation...................................................... 321
11.4 Interrupts............................................................................................................................ 322
11.5 Sample Application ........................................................................................................... 322
11.6 Usage Notes....................................................................................................................... 323
Section 12 8-Bit Timers
..................................................................................................... 329
12.1 Overview............................................................................................................................ 329
12.1.1 Features ................................................................................................................ 329
12.1.2 Block Diagram...................................................................................................... 330
12.1.3 Pin Configuration................................................................................................. 331
12.1.4 Register Configuration ......................................................................................... 332
12.2 Register Descriptions......................................................................................................... 333
12.2.1 Timer Counter (TCNT)........................................................................................ 333
12.2.2 Time Constant Register A (TCORA)................................................................... 334
12.2.3 Time Constant Register B (TCORB) ................................................................... 335
12.2.4 Timer Control Register (TCR) ............................................................................. 335
12.2.5 Timer Control/Status Register (TCSR)................................................................ 339
12.2.6 Serial/Timer Control Register (STCR) ................................................................ 342
12.2.7 System Control Register (SYSCR)...................................................................... 343
12.2.8 Timer Connection Register S (TCONRS)............................................................ 343
12.2.9 Input Capture Register (TICR) [TMRX Additional Function]............................ 344
12.2.10 Time Constant Register C (TCORC) [TMRX Additional Function]................... 344
12.2.11 Input Capture Registers R and F (TICRR, TICRF)
[TMRX Additional Functions]............................................................................. 345
12.2.12 Timer Input Select Register (TISR) [TMRY Additional Function]..................... 345
12.2.13 Module Stop Control Register (MSTPCR).......................................................... 346
12.3 Operation ........................................................................................................................... 347