vii
9.1.2
9.1.3
9.1.4
Register Descriptions......................................................................................................... 286
9.2.1
Timer Control Register (TCR) ............................................................................. 286
9.2.2
Timer Mode Register (TMDR)............................................................................ 291
9.2.3
Timer I/O Control Register (TIOR) ..................................................................... 293
9.2.4
Timer Interrupt Enable Register (TIER).............................................................. 310
9.2.5
Timer Status Register (TSR)................................................................................ 313
9.2.6
Timer Counter (TCNT)........................................................................................ 316
9.2.7
Timer General Register (TGR) ............................................................................ 317
9.2.8
Timer Start Register (TSTR)................................................................................ 318
9.2.9
Timer Synchro Register (TSYR).......................................................................... 319
9.2.10 Module Stop Control Register (MSTPCR).......................................................... 320
Interface to Bus Master...................................................................................................... 321
9.3.1
16-Bit Registers.................................................................................................... 321
9.3.2
8-Bit Registers...................................................................................................... 321
Operation ........................................................................................................................... 323
9.4.1
Overview.............................................................................................................. 323
9.4.2
Basic Functions.................................................................................................... 324
9.4.3
Synchronous Operation........................................................................................ 330
9.4.4
Buffer Operation .................................................................................................. 332
9.4.5
Cascaded Operation.............................................................................................. 336
9.4.6
PWM Modes ........................................................................................................ 338
9.4.7
Phase Counting Mode .......................................................................................... 343
Interrupts............................................................................................................................ 349
9.5.1
Interrupt Sources and Priorities............................................................................ 349
9.5.2
DTC Activation.................................................................................................... 351
9.5.3
A/D Converter Activation.................................................................................... 351
Operation Timing .............................................................................................................. 352
9.6.1
Input/Output Timing ............................................................................................ 352
9.6.2
Interrupt Signal Timing........................................................................................ 356
Usage Notes....................................................................................................................... 360
Block Diagram...................................................................................................... 281
Pin Configuration ................................................................................................. 282
Register Configuration......................................................................................... 284
9.2
9.3
9.4
9.5
9.6
9.7
Section 10 8-Bit Timers
..................................................................................................... 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 Counters 0 and 1 (TCNT0, TCNT1).......................................................... 374
10.2.2 Time Constant Registers A0 and A1 (TCORA0, TCORA1)............................... 374