56800E - Fractional cos problem

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

56800E - Fractional cos problem

Jump to solution
2,059 Views
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

Tags (2)
0 Kudos
1 Solution
1,130 Views
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.

View solution in original post

0 Kudos
1 Reply
1,131 Views
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 Kudos