– iv –
8.8.2
8.8.3
8.8.4
8.8.5
8.8.6
CAUTIONS.......................................................................................................................
Operation as Interval Timer (2).......................................................................................
Pulse Width Measurement Operation .............................................................................
Operation as PWM Output ..............................................................................................
Operation as PPG Output ...............................................................................................
Example of Software Triggered One-Shot Pulse Output...............................................
219
221
223
227
231
234
8.9
CHAPTER 9 TIMER/COUNTER 1 ...............................................................................................
9.1
FUNCTIONS ....................................................................................................................
9.2
CONFIGURATION...........................................................................................................
9.3
TIMER/COUNTER 1 CONTROL REGISTERS...........................................................
9.4
TIMER REGISTER 1 (TM1) OPERATION ................................................................
9.4.1
Basic Operation ...............................................................................................................
9.4.2
Clear Operation................................................................................................................
9.5
EXTERNAL EVENT COUNTER FUNCTION .............................................................
9.6
COMPARE REGISTER, CAPTURE/COMPARE REGISTER, AND
CAPTURE REGISTER OPERATION...........................................................................
9.6.1
Compare Operations .......................................................................................................
9.6.2
Capture Operations .........................................................................................................
9.7
EXAMPLES OF USE ....................................................................................................
9.7.1
Operation as Interval Timer (1).......................................................................................
9.7.2
Operation as Interval Timer (2).......................................................................................
9.7.3
Pulse Width Measurement Operation .............................................................................
9.8
CAUTIONS.......................................................................................................................
239
239
241
245
249
249
252
254
257
257
259
263
263
266
268
271
CHAPTER 10 TIMER/COUNTER 2 ..............................................................................................
10.1
FUNCTIONS ....................................................................................................................
10.2
CONFIGURATION...........................................................................................................
10.3
TIMER/COUNTER 2 CONTROL REGISTERS...........................................................
10.4
TIMER REGISTER 2 (TM2) OPERATION ................................................................
10.4.1
Basic Operation ...............................................................................................................
10.4.2
Clear Operation................................................................................................................
10.5
EXTERNAL EVENT COUNTER FUNCTION .............................................................
10.6
ONE-SHOT TIMER FUNCTION ...................................................................................
10.7
COMPARE REGISTER, CAPTURE/COMPARE REGISTER, AND
CAPTURE REGISTER OPERATION...........................................................................
10.7.1
Compare Operations .......................................................................................................
10.7.2
Capture Operations .........................................................................................................
10.8
BASIC OPERATION OF OUTPUT CONTROL CIRCUIT .......................................
10.8.1
Basic Operation ...............................................................................................................
10.8.2
Toggle Output ..................................................................................................................
10.8.3
PWM Output.....................................................................................................................
10.8.4
PPG Output ......................................................................................................................
10.9
EXAMPLES OF USE ....................................................................................................
10.9.1
Operation as Interval Timer (1) .......................................................................................
10.9.2
Operation as Interval Timer (2) .......................................................................................
10.9.3
Pulse Width Measurement Operation .............................................................................
10.9.4
Operation as PWM Output ..............................................................................................
277
277
281
285
290
290
293
295
299
300
300
303
308
310
310
312
319
326
326
329
332
335