
viii
11.5 Sample Application........................................................................................................ 296
11.6 Usage Notes ................................................................................................................... 297
Section 12 8-Bit Timers ................................................................................. 303
12.1 Overview ....................................................................................................................... 303
12.1.1 Features ............................................................................................................ 303
12.1.2 Block Diagram.................................................................................................. 304
12.1.3 Pin Configuration.............................................................................................. 305
12.1.4 Register Configuration...................................................................................... 306
12.2 Register Descriptions ..................................................................................................... 307
12.2.1 Timer Counter (TCNT)..................................................................................... 307
12.2.2 Time Constant Register A (TCORA) ................................................................ 308
12.2.3 Time Constant Register B (TCORB)................................................................. 309
12.2.4 Timer Control Register (TCR) .......................................................................... 310
12.2.5 Timer Control/Status Register (TCSR).............................................................. 314
12.2.6 Serial/Timer Control Register (STCR) .............................................................. 318
12.2.7 System Control Register (SYSCR).................................................................... 319
12.2.8 Timer Connection Register S (TCONRS).......................................................... 320
12.2.9 Input Capture Register (TICR) [TMRX Additional Function] ........................... 321
12.2.10 Time Constant Register C (TCORC) [TMRX Additional Function] ................ 321
12.2.11 Input Capture Registers R and F (TICRR, TICRF) .......................................... 321
12.2.12 Timer Input Select Register (TISR) [TMRY Additional Function] .................. 322
12.2.13 Module Stop Control Register (MSTPCR) ...................................................... 323
12.3 Operation ....................................................................................................................... 324
12.3.1 TCNT Incrementation Timing .......................................................................... 324
12.3.2 Compare-Match Timing.................................................................................... 325
12.3.3 TCNT External Reset Timing ........................................................................... 326
12.3.4 Timing of Overflow Flag (OVF) Setting ........................................................... 327
12.3.5 Operation with Cascaded Connection................................................................ 327
12.4 Interrupt Sources............................................................................................................ 328
12.5 8-Bit Timer Application Example .................................................................................. 329
12.6 Usage Notes ................................................................................................................... 330
12.6.1 Contention between TCNT Write and Clear...................................................... 330
12.6.2 Contention between TCNT Write and Increment .............................................. 331
12.6.3 Contention between TCOR Write and Compare-Match..................................... 332
12.6.4 Contention between Compare-Matches A and B ............................................... 333
12.6.5 Switching of Internal Clocks and TCNT Operation ........................................... 333
Section 13 Timer Connection [H8S/2138 Series] ........................................... 337
13.1 Overview ....................................................................................................................... 337
13.1.1 Features ............................................................................................................ 337
13.1.2 Block Diagram.................................................................................................. 338
13.1.3 Input and Output Pins ....................................................................................... 339