
vii
11.4.5 Output Compare Buffer Register (OCCPBH0 to OCCPBH5, OCCPBL0 to OCCPBL5) / Output
Compare Register (OCCPH0 to OCCPH5, OCCPL0 to OCCPL5) 227
11.4.6 Compare Control Register (OCSH0 to OCSH5, OCSL0 to OCSL5) ......................................... 229
11.4.7 Compare Mode Control Register (OCMOD) .............................................................................. 234
11.4.8 Input Capture Data Registers (IPCPH0 to IPCPH3, IPCPL0 to IPCPL3) .................................. 236
11.4.9 Input Capture State Control/PPG Output Control Register (ICSH23, ICSL23, PICSH01, PICSL01)
237
11.4.10 16-bit Dead Timer Register (TMRRH0 to TMRRH2, TMRRL0 to TMRRL2) ............................. 244
11.4.11 16-bit Dead Timer Control Register (DTCR0 to DTCR2) ........................................................... 245
11.4.12 Waveform Control Register (SIGCR1, SIGCR2) ....................................................................... 251
11.4.13 A/D Activation Compare Register (ADCOMP0, ADCOMP1, ADCOMP2, ADCOMPC) ............. 254
11.5 Multifunctional Timer Interrupt ........................................................................................................ 256
11.6 Operation of Multifunctional Timer .................................................................................................. 260
11.6.1 Operation of 16-bit Free-run Timer ............................................................................................ 261
11.6.2 Operation of 16-bit Output Compare ......................................................................................... 267
11.6.3 Operation of 16-bit Input Capture .............................................................................................. 277
11.6.4 Waveform Generator Operation ................................................................................................ 279
11.6.4.1 Operation of Timer Mode ........................................................................................................ 283
11.6.4.2 Operation During Dead Time Timer Mode ............................................................................. 285
11.6.4.3 DTTI Pin Control Operation .................................................................................................... 289
11.6.5 A/D Activation Compare Operation ........................................................................................... 291
11.7 Notes on Using Multifunctional Timer ............................................................................................. 292
11.8 Program Example of Multifunctional Timer ..................................................................................... 294
CHAPTER 12 U-TIMER (16-bit Timer for UART Baud Rate Generation) .................... 297
12.1 Overview ......................................................................................................................................... 298
12.2 Description of Registers .................................................................................................................. 299
12.3 Description of Operation ................................................................................................................. 302
CHAPTER 13 UART ........................................................................................................ 303
13.1 Overview ......................................................................................................................................... 304
13.2 Detail Description of Registers ....................................................................................................... 307
13.3 Operation of UART ......................................................................................................................... 313
13.4 Example of Using the UART ........................................................................................................... 319
13.5 Example of Setting Baud Rates and U-TIMER Reload Values ...................................................... 321
CHAPTER 14 8/10-BIT A/D CONVERTER ..................................................................... 323
14.1 Overview ......................................................................................................................................... 324
14.2 Configuration .................................................................................................................................. 325
14.3 Pin ................................................................................................................................................... 328
14.4 Registers ......................................................................................................................................... 330
14.4.1 A/D Channel Control Register (ADCH) ...................................................................................... 331
14.4.2 A/D Mode Setting Register (ADMD) .......................................................................................... 333
14.4.3 A/D Control Status Register (ADCS) ......................................................................................... 336
14.4.4 A/D Data Register (ADCD) ........................................................................................................ 339
14.4.5 Analog Input Control Register (AICR) ....................................................................................... 340
14.5 Interrupt .......................................................................................................................................... 341