viii
13.5 Explanation of Operation of 16-bit Free-run Timer ......................................................................... 229
13.6 Explanation of Operation of Input Capture ..................................................................................... 231
13.7 Precautions when Using 16-bit I/O Timer ....................................................................................... 233
13.8 Program Example of 16-bit I/O Timer .... ......................................................................................... 234
CHAPTER 14 16-BIT RELOAD TIMER ........................................................................... 237
14.1 Overview of the 16-bit Reload Timer .............................................................................................. 238
14.2 Block Diagram of 16-bit Reload Timer .................................................................... ...... ....... ..... . ..... 240
14.3 Configuration of 16-bit Reload Timer ..................................... ......................................................... 242
14.3.1 Timer Control Status Registers (High) (TMCSR:H) ................................................................... 245
14.3.2 Timer Control Status Registers (Low) (TMCSR: L) ................. .................................................. 247
14.3.3 16-bit Timer Registers (TMR) .................................................................................. .................. 249
14.3.4 16-bit Reload Registers (TMRLR) .................................... ......................................................... 250
14.4 Interrupts of 16-bit Reload Timer .................. .................................................................................. 251
14.5 Explanation of Operation of 16-bit Reload Timer ............................................. ............................... 252
14.5.1 Operation in Internal Clock Mode ............................................................... ............................... 254
14.5.2 Operation in Event Count Mode ................................. ............................................................... 259
14.6 Precautions when Using 16-bit Reload Timer ................................................................................ 262
14.7 Sample Program of 16-bit Reload Timer ........................................................................................ 263
CHAPTER 15 WATCH TIMER ........................................................................................ 267
15.1 Overview of Watch Timer ............................................................................................................... 268
15.2 Block Diagram of Watch Timer .............. ......................................................................................... 270
15.3 Configuration of Watch Timer ....................... .................................................................................. 272
15.3.1 Watch Timer Control Register (WTC) ........................................................................................ 273
15.4 Watch Timer Interrupt ................................... .................................................................................. 275
15.5 Explanation of Operation of Watch Timer .............................. ......................................................... 276
15.6 Program Example of Watch Timer .......................................................................... ........................ 278
CHAPTER 16 8-/16-BIT PPG TIMER .............................................................................. 281
16.1 Overview of 8-/16-bit PPG Timer .................................................. .................................................. 282
16.2 Block Diagram of 8-/16-bit PPG Timer ........................................................................................... 285
16.2.1 Block Diagram for 8-/16-bit PPG Timer C ............................................ ..................................... 286
16.2.2 Block Diagram of 8-/16-bit PPG Timer D ................................................................................... 288
16.3 Configuration of 8-/16-bit PPG Timer ............................................................................................. 290
16.3.1 PPGC Operation Mode Control Register (PPGCC) .................................................................. 292
16.3.2 PPGD Operation Mode Control Register (PPGCD) .................................................................. 294
16.3.3 PPGC/D Count Clock Select Register (PPGCD) ....................................................................... 296
16.3.4 PPG Reload Registers (PRLLC/PRLHC, PRLLD/PRLHD) ........................................................ 298
16.4 Interrupts of 8-/16-bit PPG Timer .................................................................................. .................. 299
16.5 Explanation of Operation of 8-/16-bit PPG Timer ........................................................................... 300
16.5.1 8-bit PPG Output 2-channel Independent Operation Mode ....................................................... 301
16.5.2 16-bit PPG Output Operation Mode . ......................................................................................... 304
16.5.3 8+8-bit PPG Output Operation Mode ................... ..................................................................... 307
16.6 Precautions when Using 8-/16-bit PPG Timer ................................................................................ 310