12.4 Operation ........................................................................................................................... 166
12.4.1 Timer V Operation................................................................................................ 166
12.5 Timer V Application Examples ......................................................................................... 169
12.5.1 Pulse Output with Arbitrary Duty Cycle............................................................... 169
12.5.2 Pulse Output with Arbitrary Pulse Width and Delay from TRGV Input .............. 170
12.6 Usage Notes ....................................................................................................................... 171
Section 13 Timer Z............................................................................................ 173
13.1 Features.............................................................................................................................. 173
13.2 Input/Output Pins............................................................................................................... 178
13.3 Register Descriptions......................................................................................................... 179
13.3.1 Timer Start Register (TSTR) ................................................................................ 180
13.3.2 Timer Mode Register (TMDR)............................................................................. 180
13.3.3 Timer PWM Mode Register (TPMR) ................................................................... 181
13.3.4 Timer Function Control Register (TFCR) ............................................................ 182
13.3.5 Timer Output Master Enable Register (TOER) .................................................... 185
13.3.6 Timer Output Control Register (TOCR)............................................................... 186
13.3.7 Timer Counter (TCNT)......................................................................................... 187
13.3.8 General Registers A, B, C, and D (GRA, GRB, GRC, and GRD)........................ 188
13.3.9 Timer Control Register (TCR).............................................................................. 189
13.3.10 Timer I/O Control Register (TIORA and TIORC) ............................................... 190
13.3.11 Timer Status Register (TSR)................................................................................. 192
13.3.12 Timer Interrupt Enable Register (TIER)............................................................... 194
13.3.13 PWM Mode Output Level Control Register (POCR) ........................................... 195
13.3.14 Interface with CPU ............................................................................................... 196
13.4 Operation ........................................................................................................................... 197
13.4.1 Counter Operation ................................................................................................ 197
13.4.2 Waveform Output by Compare Match.................................................................. 201
13.4.3 Input Capture Function ......................................................................................... 204
13.4.4 Synchronous Operation......................................................................................... 207
13.4.5 PWM Mode .......................................................................................................... 209
13.4.6 Reset Synchronous PWM Mode........................................................................... 215
13.4.7 Complementary PWM Mode................................................................................ 219
13.4.8 Buffer Operation................................................................................................... 229
13.4.9 Timer Z Output Timing ........................................................................................ 236
13.5 Interrupts............................................................................................................................ 239
13.5.1 Status Flag Set Timing.......................................................................................... 239
13.5.2 Status Flag Clearing Timing ................................................................................. 241
13.6 Usage Notes ....................................................................................................................... 242
Rev. 2.00 Sep. 23, 2005 Page xiv of xxx