IQmath Summary
8 - 34 C2000 Microcontroller Workshop - Numerical Concepts
IQmath Summary
IQmath Approach Summary
Seamless portability of code between fixed and floating-point
devices
User selects target math type in “IQmathLib.h” file
#if MATH_TYPE == IQ_MATH
#if MATH_TYPE == FLOAT_MATH
One source code set for simulation vs. target device
Numerical resolution adjustability based on application
requirement
Set in “IQmathLib.h” file
#define GLOBAL_Q 18
Explicitly specify Q value
_iq20 X, Y, Z;
Numerical accuracy without sacrificing time and cycles
Rapid conversion/porting and implementation of algorithms
IQmath library is freeware - available from controlSUITE and TI website
http://www.ti.com/c2000
“IQmath” + fixed-point processor with 32-bit capabilities =
The IQmath approach, matched to a fixed-point processor with 32x32 bit capabilities enables the
following:
• Seamless portability of code between fixed and floating-point devices
• Maintenance and support of one source code set from simulation to target device
• Adjustability of numerical resolution (Q value) based on application requirement
• Implementation of systems that may otherwise require floating-point device
• Rapid conversion/porting and implementation of algorithms