CHAPTER 13 A/D CONVERTERUser’s Manual U16896EJ2V0UD36613.3 ConfigurationThe A/D converter consists of the following hardware.Figure 13-1. Block Diagram of A/D ConverterANI0ANI1ANI2ANI3ANI4ANI5ANI6ANI7AVREF0AVSSINTADADCS bit3ADS2 ADS1 ADS0EGA1 EGA0 TRG ADTMD FR0 ADHS1 ADHS0 ADCS2ADCS ADMD FR2 FR1Sample & hold circuitAV SSVoltage comparatorControllerEdgedetectorADTRGINTTM010ADCR/ADCRHregisterPFTregisterADS register ADM registerPFEN PFCMPFMregisterInternal busSAR registerComparator Tap selectorSelectorSelectorTable 13-1. Registers of A/D Converter Used by SoftwareItem ConfigurationRegisters A/D conversion result register (ADCR)A/D conversion result register H (ADCRH): Only higher 8 bits can be readPower fail comparison threshold register (PFT)A/D converter mode register (ADM)Analog input channel specification register (ADS)Power fail comparison mode register (PFM)