IQmath Appications and Summary
IQmath Appications and Summary
Where Is
Where Is
IQmath
IQmath
Applicable?
Applicable?
Motor Control (PID, State Estimator, Kalman,...)
Servo Control
Modems
Audio (MP3, etc.)
Imaging (JPEG, etc.)
Any application using 16/32-bit fixed-point Q math
Where it is not applicable
Anywhere a large dynamic range is not required
Graphical applications (3D rotation, etc.)
When trying to squeeze every last cycle
IQmath
IQmath
Approach Summary
Approach Summary
Seamless portability of code between fixed and floating
Seamless portability of code between fixed and floating
-
-
point devices
point devices
User selects target math type in “
User selects target math type in “
IQmathLib
IQmathLib
.h” file
.h” file
#if MATH_TYPE == IQ_MATH
#if MATH_TYPE == IQ_MATH
#if MATH_TYPE == FLOAT_MATH
#if MATH_TYPE == FLOAT_MATH
One source code set for simulation vs. target device
One source code set for simulation vs. target device
Numerical resolution adjustability based on application
Numerical resolution adjustability based on application
requirement
requirement
Set in “
Set in “
IQmathLib
IQmathLib
.h” file
.h” file
#define GLOBAL_Q 18
#define GLOBAL_Q 18
Explicitly specify Q value
Explicitly specify Q value
_iq20 X, Y, Z;
_iq20 X, Y, Z;
Numerical accuracy without sacrificing time and cycles
Numerical accuracy without sacrificing time and cycles
Rapid conversion/porting and implementation of algorithms
Rapid conversion/porting and implementation of algorithms
IQmath
IQmath
library is freeware
library is freeware
-
-
available from TI DSP website
available from TI DSP website
http://www.
http://www.
dspvillage
dspvillage
.ti.com
.ti.com
(follow C2000 DSP links)
(follow C2000 DSP links)
“
“
IQmath
IQmath
” + fixed
” + fixed
-
-
point processor with 32
point processor with 32
-
-
bit capabilities =
bit capabilities =
C28x - Numerical Concepts & IQmath
8 - 33
Summary of Contents for C28 Series
Page 64: ...Summary 3 16 C28x Peripheral Registers Header Files ...
Page 78: ...Interrupt Sources 4 14 C28x Reset and Interrupts ...
Page 218: ...Lab 9 DSP BIOS 9 22 C28x Using DSP BIOS ...
Page 244: ...Lab 10 Programming the Flash 10 26 C28x System Design ...
Page 273: ...Appendix A eZdsp F2812 C28x Appendix A eZdsp F2812 A 1 ...
Page 276: ...Appendix P2 Expansion Interface A 4 C28x Appendix A eZdsp F2812 ...
Page 277: ...Appendix P4 P8 P7 I O Interface C28x Appendix A eZdsp F2812 A 5 ...
Page 278: ...Appendix A 6 C28x Appendix A eZdsp F2812 ...
Page 279: ...Appendix P5 P9 Analog Interface C28x Appendix A eZdsp F2812 A 7 ...
Page 282: ...Appendix A 10 C28x Appendix A eZdsp F2812 TP1 TP2 Test Points ...