9.2 Register Descriptions ......................................................................................................... 192
9.2.1 Timer Counter (TCNT)......................................................................................... 192
9.2.2 Time Constant Registers A and B (TCORA and TCORB).................................. 192
9.2.3 Timer Control Register (TCR).............................................................................. 193
9.2.4 Timer Control/Status Register (TCSR) ................................................................ 196
9.2.5 Serial/Timer Control Register (STCR)................................................................. 198
9.3 Operation............................................................................................................................ 199
9.3.1 TCNT Increment Timing...................................................................................... 199
9.3.2 Compare-Match Timing........................................................................................ 201
9.3.3 External Reset of TCNT ....................................................................................... 203
9.3.4 Setting of TCSR Overflow Flag (OVF)................................................................ 203
9.4 Interrupts............................................................................................................................ 204
9.5 Sample Application............................................................................................................ 204
9.6 Application Notes .............................................................................................................. 205
9.6.1 Contention between TCNT Write and Clear ........................................................ 205
9.6.2 Contention between TCNT Write and Increment................................................. 206
9.6.3 Contention between TCOR Write and Compare-Match ...................................... 207
9.6.4 Contention between Compare-Match A and Compare-Match B.......................... 208
9.6.5 Increment Caused by Changing of Internal Clock Source.................................... 208
Section 10 PWM Timers.................................................................................................... 211
10.1 Overview............................................................................................................................ 211
10.1.1 Features................................................................................................................. 211
10.1.2 Block Diagram...................................................................................................... 212
10.1.3 Input and Output Pins ........................................................................................... 212
10.1.4 Register Configuration.......................................................................................... 213
10.2 Register Descriptions ......................................................................................................... 213
10.2.1 Timer Counter (TCNT)......................................................................................... 213
10.2.2 Duty Register (DTR) ............................................................................................ 214
10.2.3 Timer Control Register (TCR).............................................................................. 215
10.3 Operation............................................................................................................................ 217
10.3.1 Timer Increment.................................................................................................... 217
10.3.2 PWM Operation.................................................................................................... 218
10.4 Application Notes .............................................................................................................. 219
Section 11 Watchdog Timer.............................................................................................. 221
11.1 Overview............................................................................................................................ 221
11.1.1 Features................................................................................................................. 221
11.1.2 Block Diagram...................................................................................................... 222
11.1.3 Output Pin............................................................................................................. 222
11.1.4 Register Configuration.......................................................................................... 223
11.2 Register Descriptions ......................................................................................................... 223
11.2.1 Timer Counter (TCNT)......................................................................................... 223
v