v
9.3.4
Interrupts............................................................................................................................ 206
Sample Application............................................................................................................ 206
Application Notes.............................................................................................................. 207
9.6.1
Contention between TCNT Write and Clear ....................................................... 207
9.6.2
Contention between TCNT Write and Increment ................................................ 208
9.6.3
Contention between TCOR Write and Compare-Match ...................................... 209
9.6.4
Contention between Compare-Match A and Compare-Match B.......................... 210
9.6.5
Increment Caused by Changing of Internal Clock Source.................................... 210
Setting of Overflow Flag (OVF)........................................................................... 205
9.4
9.5
9.6
Section 10 PWM Timers
.................................................................................................... 213
10.1
Overview............................................................................................................................ 213
10.1.1 Features................................................................................................................. 213
10.1.2 Block Diagram...................................................................................................... 214
10.1.3 Input and Output Pins........................................................................................... 214
10.1.4 Register Configuration.......................................................................................... 215
10.2
Register Descriptions......................................................................................................... 215
10.2.1 Timer Counter (TCNT)......................................................................................... 215
10.2.2 Duty Register (DTR) ............................................................................................ 216
10.2.3 Timer Control Register (TCR).............................................................................. 217
10.3
Operation............................................................................................................................ 219
10.3.1 Timer Incrementation............................................................................................ 219
10.3.2 PWM Operation.................................................................................................... 220
10.4
Application Notes.............................................................................................................. 221
Section 11 Watchdog Timer
.............................................................................................. 223
11.1
Overview............................................................................................................................ 223
11.1.1 Features................................................................................................................. 223
11.1.2 Block Diagram...................................................................................................... 224
11.1.3 Register Configuration.......................................................................................... 224
11.2
Register Descriptions......................................................................................................... 225
11.2.1 Timer Counter (TCNT)......................................................................................... 225
11.2.2 Timer Control/Status Register (TCSR) ................................................................ 225
11.2.3 System Control Register (SYSCR)....................................................................... 227
11.2.4 Register Access..................................................................................................... 228
11.3
Operation............................................................................................................................ 229
11.3.1 Watchdog Timer Mode......................................................................................... 229
11.3.2 Interval Timer Mode............................................................................................. 230
11.3.3 Setting the Overflow Flag..................................................................................... 230
11.4
Application Notes.............................................................................................................. 231
11.4.1 Contention between TCNT Write and Increment................................................. 231
11.4.2 Changing the Clock Select Bits (CKS2 to CKS0)................................................ 231
11.4.3 Recovery from Software Standby Mode .............................................................. 231