CHAPTER 7 16-BIT TIMER/EVENT COUNTER P (TMP) .................................................................206
7.1
7.2
7.3
7.4
7.5
Overview ................................................................................................................................... 206
Functions.................................................................................................................................. 206
Configuration............................................................................................................................ 207
Registers................................................................................................................................... 209
Operation .................................................................................................................................. 220
7.5.1
7.5.2
7.5.3
7.5.4
7.5.5
7.5.6
7.5.7
7.5.8
Interval timer mode (TP0MD2 to TP0MD0 bits = 000)..................................................................221
External event count mode (TP0MD2 to TP0MD0 bits = 001)......................................................231
External trigger pulse output mode (TP0MD2 to TP0MD0 bits = 010)..........................................239
One-shot pulse output mode (TP0MD2 to TP0MD0 bits = 011) ...................................................251
PWM output mode (TP0MD2 to TP0MD0 bits = 100)...................................................................258
Free-running timer mode (TP0MD2 to TP0MD0 bits = 101).........................................................267
Pulse width measurement mode (TP0MD2 to TP0MD0 bits = 110) .............................................284
Timer output operations................................................................................................................290
7.6
7.7
Eliminating Noise on Capture Trigger Input Pin (TIP0a)...................................................... 291
Cautions.................................................................................................................................... 293
CHAPTER 8 16-BIT TIMER/EVENT COUNTER 0..............................................................................294
8.1
8.2
8.3
8.4
Functions.................................................................................................................................. 294
Configuration............................................................................................................................ 295
Registers................................................................................................................................... 300
Operation .................................................................................................................................. 310
8.4.1
8.4.2
8.4.3
8.4.4
8.4.5
8.4.6
8.4.7
Operation as interval timer ...........................................................................................................310
PPG output operation...................................................................................................................313
Pulse width measurement ............................................................................................................317
Operation as external event counter.............................................................................................326
Square-wave output operation......................................................................................................329
One-shot pulse output operation ..................................................................................................332
Cautions .......................................................................................................................................335
CHAPTER 9 8-BIT TIMER/EVENT COUNTER 5................................................................................339
9.1
9.2
9.3
9.4
Functions.................................................................................................................................. 339
Configuration............................................................................................................................ 340
Registers................................................................................................................................... 343
Operation .................................................................................................................................. 346
9.4.1
9.4.2
9.4.3
9.4.4
9.4.5
9.4.6
9.4.7
9.4.8
Operation as interval timer ...........................................................................................................346
Operation as external event counter.............................................................................................348
Square-wave output operation......................................................................................................349
8-bit PWM output operation..........................................................................................................351
Operation as interval timer (16 bits)..............................................................................................354
Operation as external event counter (16 bits)...............................................................................356
Square-wave output operation (16-bit resolution).........................................................................357
Cautions .......................................................................................................................................358
CHAPTER 10 8-BIT TIMER H ..............................................................................................................359
10.1 Functions.................................................................................................................................. 359
10.2 Configuration............................................................................................................................ 359
10.3 Registers................................................................................................................................... 362
11
User’s Manual U16890EJ1V0UD