IQmath Library for 32 bit Microcontrollers

The Texas Instruments IQmath Library is a collection of highly optimized and high-precision mathematical functions for C/C++ programmers to seamlessly port floating-point algorithms into fixed-point code. These routines are typically used in computationally intensive real-time applications where optimal execution speed and high accuracy are critical. By using these routines, you can achieve execution speeds considerably faster than equivalent code written in standard ANSI C language. The IQmath Library also addresses the limitations of fixed-point math by defining a programmable dynamic range and resolution.

IQmath is now available in the full release of Stellaris® ARM® Cortex™-M3 StellarisWare® and controlSUITE™ software for C2000™ microcontrollers.


The IQmath demo on the DK-LM3S9B96 alternates between using emulated floating point and IQmath to render a rotating dodecahedron.

  
IQmath

enlarge Enlarge

IQmath simplifies porting floating-point simulations and algorithms to a fixed-point MCU .

  


IQmath benefits

  • Math library for fixed-point processors speeds computation of floating-point values
    • Sin, cos, tan, arcsin, arccos, sqrt, fractional mpy, dv, etc...
  • Speed up processing for:
    • motor control
    • servo control
    • audio/image encoding and decoding
    • fixed-point Q math
    • graphical rotation
  • Resolution adjustable based on application requirements
    • define GLOBAL_Q 18
  • Achieve seamless code portability between fixed- and floating-point devices


  IQmath functions

  • Format conversion utilities:
    • atoIQN, IQN, IQNfrac, IQNint, IQNtoa, IQNtoD, IQNtoF, IQNtoIQ, IQtoIQN, IQtoQN, QNtoIQ
  • Arithmetic functions:
    • IQdiv, IQmpy, IQNdiv, IQNmpy, IQNmpy, IQNmpyI32, IQNmpyI32frac, IQNmpyI32int, IQNmpyIQX, IQNrmpy, IQNrsmpy
  • Trigonometric functions:
    • IQNacos, IQNasin, IQNatan, IQNatan2, IQNatan2PU, IQNcos, IQNcosPU, IQNsin, IQNsinPU
  • Mathematical functions:
    • IQNexp2, IQNisqrt, IQNmag, IQNsqrtMiscellaneous: IQNabs, IQNsat



 

Dr. Dal Ohm, DriveTech, Inc.



Learn how one motor control expert benefits from IQmath today
"We have used IQmath in our real-time motor control applications for more than..."

What´s New

The Stellaris® Family of Microcontrollers Brochure

The 2010 brochure features the full line of Stellaris MCUs and Evaluation Kits to make development easy.

controlSUITE™ Brochure

Learn more about controlSUITE™, its components, and application focuses in the controlSUITE Brochure