Dear Forum,
I am new on the TM4C platform and I have a question regarding the ADC configuration. I have inherited a hardware project where a TM4C123GH6PM MCU controls 5 H-Bridges for brushless DC motor control. So far I have managed to drive the bridges for forward/reverse/stop controls using the PWM outputs of the TM4C123. I am now in the proecess of writing the current monitoring code where I read the voltages from the on board sense resistors and throttle back the PWM's when an overcurrent condition happens. In addition to these I also have 2 brake drivers and a battery level detector that was designed in for monitoring through ADC's.
I was planning to do this by monitoring relevant ADC inputs either by comparator triggered interrupts or polling and taking the necessary action on the ISR's or in the main loop. After reading through the datasheet and the tivaware library user guides several times though I get the impression that individual inputs are not open to inspection. What I understand is that the sequencers act as an aggragate of similar or identical sensor groups with a single comparator trigger on a collection of values collected from various sources without transparent view on the exact data source (analog input channel). Am I correct in my understanding or am I missing some crucial step perhaps specific to multiplexed ADC's?
Say for example I configure Sequencer 0 to collect data from inputs AIN0 through AIN7. Is there any way to know which is the source of the converted data made ready in the FIFO?
(Please excuse the naivete of the question, the board space is already cluttered and I am trying to avoid a major hardware overhaul to incorparate additonal ADC's)
Regards,
Engin
Edit1@20.06.2016 10:30 UTC, rephrased the wording of the question, removed unnecessary commentary