
18
User’s Manual U14046EJ3V0UD
8.3
Registers to Control 16-Bit Timer/Event Counter 0 ........................................................... 188
8.4
Operation of 16-Bit Timer/Event Counter 0 ........................................................................ 194
8.4.1
Interval timer operation .............................................................................................................. 194
8.4.2
External event counter operation ............................................................................................... 197
8.4.3
Pulse width measurement operations ........................................................................................ 199
8.4.4
Square-wave output operation ................................................................................................... 206
8.4.5
PPG output operation ................................................................................................................ 207
8.5
Program List .......................................................................................................................... 209
8.5.1
Interval timer .............................................................................................................................. 210
8.5.2
Pulse width measurement by free-running counter and one capture register ...........................
211
8.5.3
Two pulse widths measurement by free-running counter .......................................................... 212
8.5.4
Pulse width measurement by restart .......................................................................................... 214
8.5.5
PPG output ................................................................................................................................ 215
8.6
Cautions Related to 16-Bit Timer/Event Counter 0 ............................................................ 216
CHAPTER 9 8-BIT TIMER/EVENT COUNTERS 50, 51 ................................................................ 219
9.1
Functions of 8-Bit Timer/Event Counters 50, 51 ................................................................ 219
9.2
Configuration of 8-Bit Timer/Event Counters 50, 51 .......................................................... 221
9.3
Registers to Control 8-Bit Timer/Event Counters 50, 51 ................................................... 222
9.4
Operation of 8-Bit Timer/Event Counters 50, 51 ................................................................ 227
9.4.1
8-bit interval timer operation ...................................................................................................... 227
9.4.2
External event counter operation ............................................................................................... 231
9.4.3
Square-wave output (8-bit resolution) operation ........................................................................ 232
9.4.4
8-bit PWM output operation ....................................................................................................... 233
9.4.5
Interval timer (16-bit) operations ................................................................................................ 237
9.5
Program List .......................................................................................................................... 238
9.5.1
Interval timer (8-bit) .................................................................................................................... 238
9.5.2
External event counter ............................................................................................................... 239
9.5.3
Interval timer (16-bit) .................................................................................................................. 240
9.6
Cautions Related to 8-Bit Timer/Event Counters 50, 51 .................................................... 241
CHAPTER 10 WATCH TIMER .......................................................................................................... 242
10.1 Watch Timer Functions ........................................................................................................ 242
10.2 Watch Timer Configuration .................................................................................................. 243
10.3 Register to Control Watch Timer ......................................................................................... 244
10.4 Watch Timer Operations ...................................................................................................... 245
10.4.1 Watch timer operation ................................................................................................................ 245
10.4.2 Interval timer operation .............................................................................................................. 245
CHAPTER 11 WATCHDOG TIMER .................................................................................................. 247
11.1 Watchdog Timer Functions .................................................................................................. 247
11.2 Watchdog Timer Configuration ........................................................................................... 248
11.3 Registers to Control Watchdog Timer ................................................................................ 248
11.4 Watchdog Timer Operations ................................................................................................ 250
11.4.1 Watchdog timer operation .......................................................................................................... 250
11.4.2 Interval timer operation ............................................................................................................... 251