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.

TMS320F280049C: Why do we use IQmath in CCS?

Part Number: TMS320F280049C
Other Parts Discussed in Thread: C2000WARE

Good Morning everyone,

I am a fresher and new to programming, not to mention new to working with TI controllers with FOC motordrive.

I have a few questions on IQ math, kindly explain.

  1. Why do we use IQ_math?
  2. Is it for floating or fixed point representation?
  3. What is the _iq data type?
  4. Explain how this particular IQ conversion is being used in the macros definition given below.

// .9999 / 4000 converted to IQ26 fixed point format
#define MECH_SCALER     16776

Regards,

Suraj