• ADHWTSn active selects SC1n.• if neither is active, the off condition is selectedNoteSelecting more than one ADHWTSn prior to a conversioncompletion will result in unknown results. To avoid this,select only one ADHWTSn prior to a conversioncompletion.• Following the transfer of the result to the data registers when continuous conversionis enabled, that is, when SC3[ADCO] = 1.If continuous conversions are enabled, a new conversion is automatically initiated afterthe completion of the current conversion. In software triggered operation, that is, whenSC2[ADTRG] = 0, continuous conversions begin after SC1A is written and continueuntil aborted. In hardware triggered operation, that is, when SC2[ADTRG] = 1 and oneADHWTSn event has occurred, continuous conversions begin after a hardware triggerevent and continue until aborted.If hardware averaging is enabled, a new conversion is automatically initiated after thecompletion of the current conversion until the correct number of conversions arecompleted. In software triggered operation, conversions begin after SC1A is written. Inhardware triggered operation, conversions begin after a hardware trigger. If continuousconversions are also enabled, a new set of conversions to be averaged are initiatedfollowing the last of the selected number of conversions.23.5.4.2 Completing conversionsA conversion is completed when the result of the conversion is transferred into the dataresult registers, Rn. If the compare functions are disabled, this is indicated by setting ofSC1n[COCO]. If hardware averaging is enabled, the respective SC1n[COCO] sets only ifthe last of the selected number of conversions is completed. If the compare function isenabled, the respective SC1n[COCO] sets and conversion result data is transferred only ifthe compare condition is true. If both hardware averaging and compare functions areenabled, then the respective SC1n[COCO] sets only if the last of the selected number ofconversions is completed and the compare condition is true. An interrupt is generated ifthe respective SC1n[AIEN] is high at the time that the respective SC1n[COCO] is set.Chapter 23 Analog-to-Digital Converter (ADC)KL27 Sub-Family Reference Manual , Rev. 5, 01/2016Freescale Semiconductor, Inc. 367