56800E - Fractional cos problem

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

56800E - Fractional cos problem

ソリューションへジャンプ
2,095件の閲覧回数
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,166件の閲覧回数
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,167件の閲覧回数
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 件の賞賛