Part Number: EK-TM4C1294XL
It would seem the 8 digital comparators in each ADC module must be assigned to a sequencer order to align the step to ANIx conversion input source data, contrary of Fig.15-2 and datasheet text. Tivaware version 2.1.0.12573 and 2.1.1.71 have no ability to properly configure the digital comparator with anyone of the modules 8 comparators relative to AINx analog source.
Yet when an existing FIFO steps AINx is OR'd to an relative comparator the FIFO of those steps remains in overflow. Even when ADCComparatorConfigure() and ADCRegionSet() have been configured there is no way to assign AINx conversion data to anyone of 8 digital comparators without calling ADCSequenceStepConfigure() in yet another sequencer. Without doing the latter the OR'd step with ADC_OMP_n pushes conversion data into the FIFO causing the overflow condition reported above.
Why does digital comparators analog source require it to be OR'd to a relative AINx of existing steps matching the analog signal? Fig.15-2 indicates sequencer FIFO as being an option, not the path for digital comparators data. That makes ADCSequenceStepConfigure() an option to include digital comparators, not the explicit method to configure them to an AINx source as the only means to do so.
ADCsequenceStepConfigure() states to logical OR one of the digital comparator selects (\b ADC_CTL_CMP0 through \b ADC_CTL_CMP7). Again that causes perpetual FIFO overflow and can't be right according to Fig.15-2 and statements in Operational modes (15.3.7.2) suggesting the AD converters data bypasses the FIFO completely. Why is ADCSequenceStepConfigure() the only way to (bind) the AD converters AINx analog signal pathway to any one of 8 digital comparators?
15.3.7 Digital Comparator Unit:
An ADC is commonly used to sample an external signal and to monitor its value to ensure that it
remains in a given range. To automate this monitoring procedure and reduce the amount of processor
overhead that is required, each module provides eight digital comparators.
