我们将在春节假期期间对网站进行维护,可能暂时无法访问,同时工程师回复将有所延迟,敬请谅解.

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.

TMS320F28035: 用c语言写的28035的cla程序做数据大小比较会导致cla运行速度变慢

Part Number: TMS320F28035

用C语言写的CLA程序里面关于数值大小比较,函数如下,在执行此语句的时候会急剧降低CLA的中断频率,没用用__mgt(sClaAtaMsgReal[eAtaInvVolReal], sInvVolKpwmLmtL))||(__mlt(sClaAtaMsgReal[eAtaInvVolReal], sInvVolKpwmLmtL)此语句的时候__interrupt void cla1_task1_isr( void)函数的中断频率和设置的pwm触发源频率相同为19.2k,用了以后降为9.6k中断频率,麻烦帮忙看看会是什么原因,感谢!

//else if((sInvVolOutReal > sInvVolKpwmLmtL)||(sInvVolOutReal < -sInvVolKpwmLmtL))
// else if((__mgt(sInvVolOutReal, sInvVolKpwmLmtL))||(__mlt(sInvVolOutReal, sInvVolKpwmLmtL)))
else if((__mgt(sClaAtaMsgReal[eAtaInvVolReal], sInvVolKpwmLmtL))||(__mlt(sClaAtaMsgReal[eAtaInvVolReal], sInvVolKpwmLmtL)))
{

}