Other Parts Discussed in Thread: C2000WARE
Hello Everyone,
I am currently working on a Project involving 3-Phase Power Control and my peripheral setup is as explained below;
- 90 MHz SYS Clock.
- 45MHz ADC Clock, 25 ADC Cycles for S/H circuitry.(Ref. Manual says it takes approximately 866nS for one Conversion to Complete with this settings.)(Though I might lower S/H Window in future)
- ePWM with frequency of 10Khz,Triggering total of 6 Measurements, 3 for Currents and 3 for Voltages.
- Sampled Signal is 50Hz Power Grid. Meaning for each measurement I will have 200 samples for each periode.
- I Configured the ADC SOC Channels so that the measurement data lies on adjacent memory blocks [ADCRESULTREG2 to ADCRESULTREG7]
Now, What I have been planning is to configure the ADCs to trigger spesific CLA Tasks that performs Control Logic, and at the same time move the Measurement Data(6*200 Samples) elsewhere in the RAM in an organized fashion so that the C28x can Analyze the drawn current/voltage. I was planning to configure the DMA to burst 6 WORDs of conversion data whenever 6 Measurements are taken(10KHz) and when all 200 Samples is done,Inside DMA Transfer Completed interrupt a SW Flag would be raised so that the C28x can analyze the input data. Yet I have never used the DMA before, and In some threads I have seen claims of C28x is actually being faster than the DMA in terms of data transfer speed and it got me confused.
Would using the DMA be necessary / efficient in this scenerio? And if that is not the case Should I simply stick with ADC-EOC Interrupts to perform data movement ?
I would greatly appreciate any other suggestions too, Thanks in Advance, İlker.