Hello,
When I pass constant float value to the _IQ() function, its execution time is much lower than the case when I pass same value through a float variable. As can be seen in the code snippet, when I pass 1.0 which is constant value ti _IQ(N) function, the execution time is 5 cycles. And when i pass float variable to the function, its execution time is 291 cycles. Why is so much difference between execution times of the two cases and how to make execution time for the second case equivalent to the first case ? I need this because my application is time sensitive and I cannot use constant value as parameter to the _IQ() function.
//FIRST CASE
void IQ_CONV()
{
_iq temp;
temp = _IQ(1.0);
}
//SECOND CASE
void IQ_CONV()
{
_iq temp;
float val;
val = 1.0;
temp = _IQ(val);
}
Thanks,
Mayuri

