.Hello guys, I need advice how to solve my problem:
I have 6x ADC Inputs:
1 - AdcCregs ADCINC2 - ADCINC3 (DMA Channel 1)
2 - AdcAregs ADCINA4 - ADCINA5 (DMA Channel 2)
3 - AdcAregs ADCINA2 - ADCINA3 (DMA Channel 3)
4 - AdcDregs ADCIND0 - ADCIND1 (DMA Channel 4)
5 - AdcBregs ADCINB2 - ADCINB3 (DMA Channel 5)
6 - AdcDregs ADCIND2 - ADCIND3 (DMA Channel 6)
I have successfully done the function for 1,2 and 5,6 channels, where based on the EPwm1 and EPwm3 trigger I start the ADC conversion and fill the buffers using DMA (Samples must be processed in real time). As you may have noticed, I use differential measurement. The problem occurs when I want to embed channels 3 and 4 who share the same ADC registers. I would have to constantly switch registers (ADCSOC1 CHSEL) for conversion for 3, 4 inputs, while 1 - 2, 5 - 6 inputs they would not be able to store samples in DMA buffers at that time.
Would you advise me or give me any idea how to do it ? Thanks.
- Mark