56800E - Fractional cos problem

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

56800E - Fractional cos problem

跳至解决方案
2,161 次查看
admin
Specialist II
I use "tfr16CosPIx" function from CW for 56800E. There is problem when i try to calculate cos of falues near zero. Result of fuction jump from -1 to 1 some times when input values changed from -20 ... +20 (approx.).

Anybody can help me?

Message Edited by Alban on 2006-08-31 05:53 PM

标记 (2)
0 项奖励
回复
1 解答
1,232 次查看
admin
Specialist II
I found that the problem is in the saturation. CPU's property "Saturation mode" doesn't help. I use this function together with svmStd function (from SpaceVectorMod bean) where saturation off - SA bit of OMR register is cleared. So if you have the same problem set this bit manually.

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,233 次查看
admin
Specialist II
I found that the problem is in the saturation. CPU's property "Saturation mode" doesn't help. I use this function together with svmStd function (from SpaceVectorMod bean) where saturation off - SA bit of OMR register is cleared. So if you have the same problem set this bit manually.
0 项奖励
回复