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.
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
Hi Hridya,
Refer to the section of the TRM 'Achieving Simultaneous Sampling' (http://www.ti.com/lit/ug/spruhm8h/spruhm8h.pdf).
Overall, if you want truly simultaneous samples, you will need to use multiple ADC modules in parallel.
Otherwise, on a single ADC, conversions will be produced sequentially. These sequential conversions can be produced in less than 300ns each under optimal conditions.
Hi Hridya,
The most direct way to check the ePWM timings would be to setup the ePWM to directly toggle the ePWM output pin at the same time the SOC is generated.
For your GPIO method, you should ensure that the GPIO direction is set to output, and yes, the ETFLG bit needs to be cleared. You can see the documentation of the flag and clear registers in the TRM (http://www.ti.com/lit/ug/spruhm8h/spruhm8h.pdf) in Table "ETFLG Register Field Descriptions" and Table "ETCLR Register Field Descriptions".