Tool/software: Code Composer Studio
Hello,
I am using 28379d for my control. I would like to take in 6 ADC i/p to my controller. Also, I am connecting all 6 to Module A of DSP. ADCINA0,ADCINA1,ADCINA2,ADCINA4,ADCINA5.
I am also using AdcaRegs.ADCSOC0CTL.bit.TRIGSEL = 5 for EPWM1A triggering SOC0 and same for SOC1,SOC2,SOC3,SOC4, SOC5. Does that mean I will get AdcaResultRegs.ADCRESULT0, AdcaResultRegs.ADCRESULT1, AdcaResultRegs.ADCRESULT2, AdcaResultRegs.ADCRESULT3, AdcaResultRegs.ADCRESULT4,AdcaResultRegs.ADCRESULT5 simultaneously when EPWM1A zero crossing happens?
Or is it like, AdcaResultRegs.ADCRESULT0 will be the first one coming since SOC0 has the highest priority and AdcaResultRegs.ADCRESULT5 will be the last as SOC5 has the least priority?
If it is not happening simultaneously as discussed in the later part, what would be the correct way in implementing the same for achieving simultaneous sampling of module A? I donot want to distribute ADC inputs across all modules and would prefer to use just ADC module A.
Thanks
Hridya