Preliminary User’s Manual U16895EJ1V0UD
11
7.1
Overview ................................................................................................................................... 182
7.2
Functions .................................................................................................................................. 182
7.3
Configuration............................................................................................................................ 183
7.4
Registers................................................................................................................................... 185
7.5
Operation .................................................................................................................................. 196
7.5.1
Interval timer mode (TP0MD2 to TP0MD0 bits = 000)..................................................................197
7.5.2
External event count mode (TP0MD2 to TP0MD0 bits = 001)......................................................207
7.5.3
External trigger pulse output mode (TP0MD2 to TP0MD0 bits = 010)..........................................215
7.5.4
One-shot pulse output mode (TP0MD2 to TP0MD0 bits = 011) ...................................................227
7.5.5
PWM output mode (TP0MD2 to TP0MD0 bits = 100)...................................................................234
7.5.6
Free-running timer mode (TP0MD2 to TP0MD0 bits = 101) .........................................................243
7.5.7
Pulse width measurement mode (TP0MD2 to TP0MD0 bits = 110) .............................................260
7.5.8
Timer output operations................................................................................................................266
7.6
Eliminating Noise on Capture Trigger Input Pin (TIP0a)...................................................... 267
7.7
Cautions.................................................................................................................................... 269
CHAPTER 8 16-BIT TIMER/EVENT COUNTER 0..............................................................................270
8.1
Functions .................................................................................................................................. 270
8.2
Configuration............................................................................................................................ 270
8.3
Registers................................................................................................................................... 275
8.4
Operation .................................................................................................................................. 283
8.4.1
Operation as interval timer ...........................................................................................................283
8.4.2
PPG output operation ...................................................................................................................286
8.4.3
Pulse width measurement ............................................................................................................290
8.4.4
Operation as external event counter.............................................................................................301
8.4.5
Square-wave output operation......................................................................................................304
8.4.6
One-shot pulse output operation ..................................................................................................307
8.4.7
Cautions .......................................................................................................................................313
CHAPTER 9 8-BIT TIMER/EVENT COUNTER 5................................................................................318
9.1
Functions .................................................................................................................................. 318
9.2
Configuration............................................................................................................................ 319
9.3
Registers................................................................................................................................... 322
9.4
Operation .................................................................................................................................. 325
9.4.1
Operation as interval timer ...........................................................................................................325
9.4.2
Operation as external event counter.............................................................................................327
9.4.3
Square-wave output operation......................................................................................................328
9.4.4
8-bit PWM output operation ..........................................................................................................330
9.4.5
Operation as interval timer (16 bits)..............................................................................................333
9.4.6
Operation as external event counter (16 bits)...............................................................................335
9.4.7
Square-wave output operation (16-bit resolution).........................................................................336
9.4.8
Cautions .......................................................................................................................................337
CHAPTER 10 8-BIT TIMER H ..............................................................................................................338
10.1
Functions .................................................................................................................................. 338
10.2
Configuration............................................................................................................................ 338
10.3
Registers................................................................................................................................... 341