This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

The end judgment of the AD conversion on TMS570LS2125

Guru 16780 points
Other Parts Discussed in Thread: HALCOGEN

Hello,

I think that there are two end flag of the AD conversion for each group.

1. ADEVINTFLG.EV END, ADG1INTFLG.G1 END, ADG2INTFLG.G2 END
2. ADEVSR.EV END, ADG1SR.G1 END, ADG2SR.G2 END

I think the END flag of ADGxxINTFLG is only used for the single-conversion mode, and the END flag of ADxxSR is used for all modes.
Thus, in case of ADxxSR, the end flag isn't missed for all conversion modes.
Is my understanding correct?

I want to know which flag is better to judge the end of the AD conversion, because the HALCoGen's code and the TRM description are different.

Best Regards.

Nomoto

  • Hello Nomoto-san,

    I will use the example of the event group conversion end flag for this post. The same also applies to the group1 and group2 conversion end flags.

    The EV END flags in both the ADEVSR and ADEVINTFLG registers indicate the same condition - "conversion of channels selected for conversion in event group in single mode has completed".

    That is, both these flags are only set for conversions in single mode. Note that there are other status flags about event group conversions that are not interrupt conditions. These status flags are not duplicated in the interrupt flag register.

    Regards, Sunil