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.
1. I am triggering ADC and CLA using EPWM1. During this process whether ADC triggered first or CLA triggered first? Or both are triggered parallel. Which gets first priority to be get triggered?
AdcaRegs.ADCSOC0CTL.bit.TRIGSEL = 0x5; // EPWM1 interrupt is the trigger source for ADCA DmaClaSrcSelRegs.CLA1TASKSRCSEL1.bit.TASK1 = 36; // EPWM1 interrupt is the trigger source for CLA Task1
2. Can I trigger a CPU interrupt from CLA when CLA completes its task?
3. My CLA task operates at every 1us now I have configured msg rams for getting the result from cla but the problem is I need to access the result from as soon as cla completes its task.
Ganeshapandi K said:1. I am triggering ADC and CLA using EPWM1. During this process whether ADC triggered first or CLA triggered first? Or both are triggered parallel. Which gets first priority to be get triggered?
It will go to both in parallel.
You could, alternatively, have the PWM start the ADC and the ADC then start the CLA. (i.e. ADC triggers CLA instead of PWM). Which you use depends on your system requirements.
Ganeshapandi K said:2. Can I trigger a CPU interrupt from CLA when CLA completes its task?
Ganeshapandi K said:3. My CLA task operates at every 1us now I have configured msg rams for getting the result from cla but the problem is I need to access the result from as soon as cla completes its task.
Yes, the CLA can interrupt the C28x on task completion.
Please refer to the technical reference manual for your device. You may also find the CLA software development guide helpful. (https://software-dl.ti.com/C2000/docs/cla_software_dev_guide/index.html)
Regards
Lori