276CHAPTER 14 A/D CONVERTERA /D ConversionADCRINTADANIn ANIn ANIm ANImANIn ANIn ANIm ANImADM Rewrite(Start of ANIn Conversion)ADM Rewrite(Start of ANIm Conversion)ADIF is set but ANImconversion has not ended(6) Interrupt request flag (ADIF)The interrupt request flag (ADIF) is not cleared even if the A/D converter mode register (ADM) is changed.Caution is therefore required since, if a change of analog input pin is performed during A/D conversion, theA/D conversion result and ADIF for the analog input before the change may be set just before the ADM rewrite.If ADIF is read immediately after the ADM rewrite, ADIF will be set regardless of whether A/D conversion ofthe analog input after the change has been completed.When the A/D conversion is stopped and then resumed, clear the ADIF before it is resumed.Figure 14-11. A/D Conversion End Interrupt Request Generation Timing