Other Parts Discussed in Thread: TMS570LS3137
Hello.
I have a question concerning the ADCs on the TMS570LS3137.
I want to compare the samples of certain channels of both ADCs in the same ISR. To do that, the ideal solution would be the following sequence:
- Trigger the conversion of ADC1 and ADC2 by the same event (e.g. the RTI triggers conversions with a defined frequency)
- One Interrupt Service Routine is called when both ADCs have finished their conversions
- Within the ISR the results of both ADCs can be read out and certain channels can be compared by software
The problem I have with the ADCs: I haven't found a way to synchronize them. They seem to be completely independent from each other so that I can only configure them in a way each of the ADCs calls its own ISR when finished. But then I have to solve the synchronization problem in software: The two ISRs are called asynchronously and I don't know which of the two ADC conversions finishes first.
As this complicates the design I wanted to ask if there is a clever way of receiving the conversion results of the two ADCs at the same time?
Thanks in advance.
Jakob