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.
您好,专家:
我想将控制 ISR 卸载到 CLA 中,并在 CLA 中处理。
所以我想知道 CLA 有哪些任务是好的,哪些任务不是好的。
如果 我的控制 ISR 中有一些状态机和许多“if /else if”任务, 是否建议 将这些任务卸载到 CLA 中?
祝你一切顺利。
您好,
您的查询已转发给专家。
此致
西达尔斯
您好,
以下是一些建议。
1. CLA 适用于浮点计算,通常用于卸载控制算法。
2.整数 计算和 if-the-else 代码在 CLA 上的效率不是很高。
3.如果使用整数类型,则建议将用作标记的所有变量都指定为16位整数类型,但其他变量(特别是计算中使用的变量)应该是32位。
4.建议内联函数调用以提高 执行效率
5. CLAath 库函数可用于优化数学运算。 C2000Ware 有文档列出了受支持的数学函数。
谢谢,
阿什维尼