Rev. 2.0, 03/02, page x of xxii
9.5.1
9.5.2
9.5.3
Port B..........................................................................................................................109
9.6.1
Port Data Register B (PDRB)...........................................................................110
Port Control Register 8 (PCR8)........................................................................106
Port Data Register 8 (PDR8)............................................................................107
Pin Functions ..................................................................................................107
9.6
Section 10 Timer V ....................................................................................... 111
10.1
Features.......................................................................................................................111
10.2
Input/Output Pins.........................................................................................................112
10.3
Register Descriptions...................................................................................................113
10.3.1 Timer Counter V (TCNTV).............................................................................113
10.3.2 Time Constant Registers A and B (TCORA, TCORB)......................................113
10.3.3 Timer Control Register V0 (TCRV0)...............................................................114
10.3.4 Timer Control/Status Register V (TCSRV) ......................................................116
10.3.5 Timer Control Register V1 (TCRV1)...............................................................117
10.4
Operation.....................................................................................................................118
10.4.1 Timer V Operation ..........................................................................................118
10.5
Timer V Application Examples....................................................................................121
10.5.1 Pulse Output with Arbitrary Duty Cycle...........................................................121
10.5.2 Pulse Output with Arbitrary Pulse Width and Delay from TRGV Input ............122
10.6
Usage Notes.................................................................................................................123
Section 11 Timer W....................................................................................... 125
11.1
Features.......................................................................................................................125
11.2
Input/Output Pins.........................................................................................................127
11.3
Register Descriptions...................................................................................................128
11.3.1 Timer Mode Register W (TMRW)...................................................................129
11.3.2 Timer Control Register W (TCRW).................................................................129
11.3.3 Timer Interrupt Enable Register W (TIERW)...................................................131
11.3.4 Timer Status Register W (TSRW)....................................................................131
11.3.5 Timer I/O Control Register 0 (TIOR0).............................................................133
11.3.6 Timer I/O Control Register 1 (TIOR1).............................................................134
11.3.7 Timer Counter (TCNT)....................................................................................135
11.3.8 General Registers A to D (GRA to GRD).........................................................135
11.4
Operation.....................................................................................................................136
11.4.1 Normal Operation............................................................................................136
11.4.2 PWM Operation..............................................................................................140
11.5
Operation Timing.........................................................................................................144
11.5.1 TCNT Count Timing.......................................................................................144
11.5.2 Output Compare Output Timing ......................................................................144
11.5.3 Input Capture Timing ......................................................................................145
11.5.4 Timing of Counter Clearing by Compare Match...............................................146
11.5.5 Buffer Operation Timing.................................................................................146