
vii
Section 9 8-Bit Timers ..................................................................................................... 347
9.1 Overview............................................................................................................................ 347
9.1.1 Features ................................................................................................................ 347
9.1.2 Block Diagram...................................................................................................... 348
9.1.3 Pin Configuration ................................................................................................. 349
9.1.4 Register Configuration ......................................................................................... 349
9.2 Register Descriptions......................................................................................................... 350
9.2.1 Timer Counters 0 and 1 (TCNT0, TCNT1).......................................................... 350
9.2.2 Time Constant Registers A0 and A1 (TCORA0, TCORA1)............................... 350
9.2.3 Time Constant Registers B0 and B1 (TCORB0, TCORB1)................................ 351
9.2.4 Time Control Registers 0 and 1 (TCR0, TCR1) .................................................. 351
9.2.5 Timer Control/Status Registers 0 and 1 (TCSR0, TCSR1).................................. 353
9.2.6 Module Stop Control Register (MSTPCR).......................................................... 356
9.3 Operation ........................................................................................................................... 357
9.3.1 TCNT Incrementation Timing.............................................................................. 357
9.3.2 Compare Match Timing ....................................................................................... 358
9.3.3 Timing of TCNT External Reset.......................................................................... 360
9.3.4 Timing of Overflow Flag (OVF) Setting.............................................................. 360
9.3.5 Operation with Cascaded Connection.................................................................. 361
9.4 Interrupts............................................................................................................................ 362
9.4.1 Interrupt Sources and DTC Activation................................................................. 362
9.4.2 A/D Converter Activation.................................................................................... 362
9.5 Sample Application ........................................................................................................... 363
9.6 Usage Notes....................................................................................................................... 364
9.6.1 Contention between TCNT Write and Clear........................................................ 364
9.6.2 Contention between TCNT Write and Increment ................................................ 365
9.6.3 Contention between TCOR Write and Compare Match ...................................... 366
9.6.4 Contention between Compare Matches A and B ................................................. 367
9.6.5 Switching of Internal Clocks and TCNT Operation............................................. 367
9.6.6 Interrupts and Module Stop Mode........................................................................ 369
Section 10 Watchdog Timer ............................................................................................. 371
10.1 Overview............................................................................................................................ 371
10.1.1 Features ................................................................................................................ 371
10.1.2 Block Diagram...................................................................................................... 372
10.1.3 Pin Configuration ................................................................................................. 373
10.1.4 Register Configuration ......................................................................................... 373
10.2 Register Descriptions......................................................................................................... 374
10.2.1 Timer Counter (TCNT)........................................................................................ 374
10.2.2 Timer Control/Status Register (TCSR)................................................................ 374
10.2.3 Reset Control/Status Register (RSTCSR)............................................................ 376
10.2.4 Notes on Register Access..................................................................................... 377
10.3 Operation ........................................................................................................................... 379