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 Team,
In the CLA program written in C language, the function of comparing numerical values is as follows. When it was executed, the interruption frequency of CLA would drop drastically. When I didn't use "__mgt(sClaAtaMsgReal[eAtaInvVolReal], sInvVolKpwmLmtL))||(__mlt(sClaAtaMsgReal[eAtaInvVolReal], sInvVolKpwmLmtL)", the interruption frequency of the "__interrupt void cla1_task1_isr( void)" function was the same as the pwm trigger source frequency that I set, reaching 19.2k. After using it, the interruption frequency would be reduced to 9.6k. Could you please tell me why this would happen? Thanks.
//else if((sInvVolOutReal > sInvVolKpwmLmtL)||(sInvVolOutReal < -sInvVolKpwmLmtL)) // else if((__mgt(sInvVolOutReal, sInvVolKpwmLmtL))||(__mlt(sInvVolOutReal, sInvVolKpwmLmtL))) else if((__mgt(sClaAtaMsgReal[eAtaInvVolReal], sInvVolKpwmLmtL))||(__mlt(sClaAtaMsgReal[eAtaInvVolReal], sInvVolKpwmLmtL))) { }
Kind regards,
Katherine
Hi Katherine,
We are analyzing your query. You will hear a response soon.
Regards,
Aswin
Hi Katherine,
By interruption frequency, do you mean the frequency of CLA task completion interrupt? Ideally it should be same as the frequency of the trigger.
Probably the code snippet you shared is taking longer to execute (longer than the duration between 2 CLA triggers) causing this difference in interrupt frequency.
Regards,
Veena
Hi Veena,
This problem was indeed caused by the high interrupt frequency of CLA and too many programs in CLA. I have found the cause and solved the problem.
Thanks and regards,
Katherine
Hi Veena,
This problem was indeed caused by the high interrupt frequency of CLA and too many programs in CLA. I have found the cause and solved the problem.
Thanks and regards,
Katherine