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: Code Composer Studio
I am working with DRV8301-HC-C2-KIT . project is instaspin BLDC.
I am trying to add a calculation routine in CLA. At some conditions the cla task1 have to trigger.
I have written the code and the cla task1 is executing only once.
What setting are to be done for looping the cla task1 with software interrupt.
Please help.
Try any example in
{CONTROLSUITE}\device_support\f2803x\v130\DSP2803x_examples_cla_ccsv5\
For example, you have to use macro
Cla1ForceTask1andWait();
If you want to force task 1 in cla 1
this macros are located in "DSP2803x_Cla_defines.h"
I don't understand:
If you want to launch a task in CLA
and then execute some operation with CPU
you can use "Cla1ForceTask1AndWait()".
I don't understand what settings are you intend ...
1. when the next call, what is the value of "Cla1Regs.MIOVF.bit.INT1" ?
"Cla1Regs.MIOVF.bit.INT1" I am not checked.
2. You set CAL in main code and you clear in CLA ?
CAL is used to check whether the cla task is over or not.
There is some other options for that. I am new in CLA.
The Flag CAL clear when Enter in cla1 task and set when exit by the interrupt cla1 task(). CAL is a clatocpu memory.
The Cla task is consists of around 4K bytes. So I cannot wait the cpu for the cla1task execution.
Is there any application example with Both CPU and CLA functions with software triggered CLA tasks.
I think it will help me to solve the problem fast.