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: TI C/C++ Compiler
Hello,
I'm using a 200Khz PWM to trigger a CLA task, the related code in the PWM configuration function is as follows:
EPWM_setInterruptSource(EPWM8_BASE, EPWM_INT_TBCTR_ZERO );
EPWM_enableInterrupt(EPWM8_BASE);
EPWM_setInterruptEventCount(EPWM8_BASE, XU);
in the CLA configuration function:
CLA_setTriggerSource(CLA_TASK_1, CLA_TRIGGER_EPWM8INT);
and the Task1 interrupt:
EPWM_clearEventTriggerInterruptFlag(EPWM8_BASE);
Interrupt_clearACKGroup(INTERRUPT_ACK_GROUP3);
Interrupt_clearACKGroup(INTERRUPT_ACK_GROUP11);
when X is equal to 1 or 2 task 1 won't trigger, only from X=3 Task 1 starts running, which may suggest that code in Task 1 is too long to run in such a small period, however forcing the task and using a GPIO to measure the time it takes the task to run, the task could even run at 400KHz, what could be causing that behavior?
Thanks in advance for the help
Hi Daniel,
So if I understand correctly, you have a CLA task getting triggered on EPWM event and a CLA Task1 ISR configured where you are clearing the ACK for CLA and EPWM events.
Do you also have EPWM ISR configured? If so, have you tried clearing GROUP3 ACK inside the EPWM ISR instead of CLA Task1 ISR?
Regards,
Praveen