Hi Team
When ADC is configured for continuous mode , group conversion , let us say for 6 channels from CH0 to CH5, when triggered for conversion first set result will be updated to pointed buffer Bfu[0] = Result of CH0, Buf[1] = Result of CH1, Buf[2] = Result of CH2 and so on untill CH5.
In the next cycle result buffer will have Buf[0] = Result of CH5, Buf[1] = Result of CH0, Buf[2] = Result of CH1 and so one, this way we see result position keeps on changing.
This is becasue TMS570 ADC FIFO updates in the way as illustrated above. The ADC Result FIFO of Microcontroller also provides Channel ID in the result, but inside the ADC_ReadGroup function I see it just pick from the FIFO and masking it with 0X0FFF, higher nibble will have channel ID that is masked out and only Result is exctracted, s
As per AUTOSAR ADC specification the ADC_ReadGroup function will update result from lowest channel number in the increasing order.
This works fir for ONE SHOT mode, where as for Continuous trigger the FIFO changes result positoin.
The ADC_ReadGroup may need to sort the result by seeing Channel ID .Please suggest.
Thanks
Venkat