10.3.7 A/D test register (ADTES) ............................................................................................................ 252
10.3.8 Registers controlling port function of analog input pins ................................................................ 252
10.4 A/D Converter Conversion Operations .................................................................................. 253
10.5 Input Voltage and Conversion Results .................................................................................. 255
10.6 A/D Converter Operation Modes ............................................................................................. 256
10.7 A/D Converter Setup Flowchart .............................................................................................. 257
10.7.1 Setting up A/D conversion of voltages on ANI0 to ANI6 ............................................................... 257
10.7.2 Setting up A/D conversion of the internal reference voltage (16-pin products only) ..................... 258
10.8 How to Read A/D Converter Characteristics Table ............................................................... 259
10.8.1 Resolution .................................................................................................................................... 259
10.8.2 Overall error ................................................................................................................................. 259
10.8.3 Quantization error ......................................................................................................................... 259
10.8.4 Zero-scale error ............................................................................................................................ 260
10.8.5 Full-scale error ............................................................................................................................. 260
10.8.6 Integral linearity error ................................................................................................................... 260
10.8.7 Differential linearity error .............................................................................................................. 260
10.8.8 Conversion time ........................................................................................................................... 261
10.8.9 Sampling time ............................................................................................................................... 261
10.9 Cautions for A/D Converter ..................................................................................................... 262
10.9.1 Operating current in STOP mode ................................................................................................. 262
10.9.2 Input range of ANI0 to ANI6 pins .................................................................................................. 262
10.9.3 Conflicting operations ................................................................................................................... 262
10.9.4 Noise countermeasures ............................................................................................................... 262
10.9.5 Analog input (ANIn) pins............................................................................................................... 263
10.9.6 Input impedance of analog input (ANIn) pins ................................................................................ 263
10.9.7 Interrupt request flag (ADIF) ......................................................................................................... 264
10.9.8 Conversion results just after A/D conversion start ........................................................................ 264
10.9.9 A/D conversion result register (ADCRH, ADCRL) read operation ................................................ 264
10.9.10 Internal equivalent circuit ............................................................................................................ 264
10.9.11 Starting the A/D converter .......................................................................................................... 264
CHAPTER 11 COMPARATOR .............................................................................................................. 265
11.1 Comparator Functions ............................................................................................................. 265
11.2 Comparator Configuration ...................................................................................................... 265
11.3 Registers Controlling the Comparator ................................................................................... 267
11.3.1 Peripheral Enable Register 0 (PER0) ........................................................................................... 267
11.3.2 Comparator Mode Setting Register (COMPMDR) ........................................................................ 268
11.3.3 Comparator Filter Control Register (COMPFIR) ........................................................................... 269
11.3.4 Comparator Output Control Register (COMPOCR) ...................................................................... 270
11.3.5 Registers Controlling Port Functions of Comparator I/O Pins ....................................................... 270
11.4 Comparator Operation ............................................................................................................. 271