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.
Hello experts,
is it possible to trigger a CLA-task by a CLA-task?
Thank you in advance,
Jan
Hi Jan,
Yes this is possible. Please refer to the device TRM section 6.8.3 titled CLA_SOFTINT_REGS for more information. Note that since CLA has a task driven architecture if task X triggers task Y, task Y will execute only after Task X completes.
Thanks,
Ashwini
Hi Ashwini,
thanks for your answer.
I'm sorry, but this does not work. As discribed in TRM section 6.3.5 the CLA1SOFTINTEN and CLA1INTFRC registers are used to generate a software interrupt to the C28x CPU. This is not what I need.
For example, I would like to trigger CLA task 2 from CLA task 1.
Another idea?
Regards,
Jan
Hi Jan,
Please see the following section in the development guide. The F2837x may not have the ability for a CLA task to trigger another CLA task directly as it has a CLA type 1. However let me check with the team and confirm with you in a day or two.
You are correct in that the CLA1SOFTINTEN and CLA1INTFRC generate an interrupt on C28 side and not CLA. However as mentioned in the documentation, this can we used within CLA task x to generate an interrupt on C28 for task x and then have the C28 ISR force task y.With this option however you lose the ability to generate an interrupt on C28 at end of task x - this will not have an impact if your system does not currently use the end of task x interrupt.
The other option as mentioned in the documentation is to use an unsed ePWM to trigger a CLA task y by writing to the ePWM within task x.
Thanks,
Ashwini
Hi Ashwini,
thanks for your answer.
Generating a CPU ISR to force a CLA task is not an option for me. With the use of the CLA I want to relieve the CPU. So this would be counterproductive.
I tried your suggestion using an ePWM INT to trigger a CLA task and it works very well.
In the next step, I'll try to use an eCAP configured as APWM.
It is a pity that it is not possible to trigger a task directly by a task. This workaround wastes resources.
Thank your very much for your help.
Regards,
Jan