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.

TMS320F280049: IQmath problem

Part Number: TMS320F280049

Hi,

my customer was using F28034 to control their vienna PFC and wrote code based on IQmath.

Now they upgrade to F280049.

They wonder if the calculation code wrote with IQmath is compatible on F280049 since they don't want to make big change in the code.

And what's the calculation speed difference between directly multiply of 2 float vs IQmpy?

  • Howard,

    Absolutely, that's the advantage of using IQMath - portability. They should be able to re-use the code as is. And then to take advantage of the FPU hardware within F280049, they can change MATH_TYPE from IQ_MATH to FLOAT_MATH inside IQMathLib.h, so that the code runs with floating point operations, not fixed point operations.

    Float multiply (native float) is 2p cycles (one cycle and the 2nd cycle shouldn't use the same registers, else leads to 1 cycle latency). IQmpy is 4 or 6 cycles (you can refer to the IQmath_quickstart user guide benchmarks section).

    Thanks,

    Sira