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.
Hi,
I am using the DCL_runPID_L2 function in the CLA for a PID loop. My application requires that I have access to the velocity term (v4). I can see in the code where v4 is calculated. I have programmed in assembly before but not for this processor. What is the best way to bring v4 out of the assembly module so I can use it outside of the function? I was thinking of adding it to the data structure but wanted to make sure.
Thank you,
Jennifer
Jennifer,
Thanks for reaching out to the E2E forum, we are working to get this routed to the correct engineer inside C2000. You can expect a reply by end of the day.
Best,
Matthew
Hi Jennifer,
I would suggest trying to use the C version of the same PID topology (DCL_runPID_C3) instead, and make the according customization to it to get your desired signal out. It is implemented as inline function that can be compiled for both C28x and CLA. There should not have a huge cycle difference between the two implementation when you enable proper optimization during compile. Thanks.
Han