Part Number: TMS320F28379D
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