EasyManuals Logo
Home>Texas Instruments>Microcontrollers>C2000

Texas Instruments C2000 Workshop Guide And Lab Manual

Texas Instruments C2000
342 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #212 background imageLoading...
Page #212 background image
Lab 8: IQmath FIR Filter
8 - 36 C2000 Microcontroller Workshop - Numerical Concepts
Adc.c
Filter.c
CodeStartBranch.asm
Gpio.c
DefaultIsr_8.c
Lab.h
DelayUs.asm
Lab_8.cmd
ECap_7_8_9_10_12.c
Main_8.c
EPwm_7_8_9_10_12.c
PieCtrl.c
F2806x_DefaultIsr.h
PieVect.c
F2806x_GlobalVariableDefs.c
SysCtrl.c
F2806x_Headers_nonBIOS.cmd
Watchdog.c
Project Build Options
2. To configure the build options, right-click on Lab8 in the Project Explorer
window and select Properties. We need to setup the include search path to include
the IQmath header file. Under “C2000 Compiler” select “Include Options. In the
lower box that opens (“Add dir to #include search path”) click the Add
icon (first icon with green plus sign). Then in the “Add directory path” window type:
${PROJECT_ROOT}/../../IQmath/include
Click OK to include the search path.
3. Next, we need to setup the library search path to include the IQmath library. Under
“C2000 Linker” select File Search Path”. In the top box (“Include
library file or command file as input”) click the Add icon. Then in the
“Add file path” window type:
IQmath.lib
Click OK to include the library file.
In the bottom box (“Add <dir> to library search path”) click the Add
icon. In the “Add directory path” window type:
${PROJECT_ROOT}/../../IQmath/lib
Click OK to include the library search path.
Finally, select OK to save and close the Properties window.
Include IQmathLib.h
4. In the Project Explorer window edit Lab.h and uncomment the line that includes
the IQmathLib.h header file. Next, in the Function Prototypes section, uncomment
the function prototype for IQssfir(), the IQ math single-sample FIR filter function. In the
Global Variable References section uncomment the four _iq references. Save the changes
and close the file.
Inspect Lab_8.cmd
5. Open and inspect Lab_8.cmd. First, notice that a section called IQmathis being
linked to L4SARAM. The IQmath section contains the IQmath library functions (code).
Second, notice that a section called IQmathTables” is being linked to the

Table of Contents

Other manuals for Texas Instruments C2000

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments C2000 and is the answer not in the manual?

Texas Instruments C2000 Specifications

General IconGeneral
BrandTexas Instruments
ModelC2000
CategoryMicrocontrollers
LanguageEnglish

Related product manuals