User`s guide

Exporting Filter Coefficients to Your Code Composer Studio Project
Expor ting Filter Coefficients to Your Code Composer Studio
Project
In this section...
“Exporting Filter Coefcients from FDAT oo l to the CCS IDE Editor” o n
page 5-9
“Reviewing ANS I C Header F ile Contents” on pa ge 5-12
Exporting Filter Coefficients from FDATool to the CCS
IDE Editor
In th is section , you e xp ort lter coefcients to a project by generating an
ANSI C header le that contains the coefcients. The header le denes
global arrays for the lter coefcients. When you compile and link the project
to which you added the header le, the linker allocates the global arrays in
static memory locations in processor memory.
Loading the executable le into your process or allocates enough memory
to store the exported lter coefcients in proce ssor memory and writes the
coefcients to the allocated memory.
Use the followin g s tep s to export lter coefcients from FDATool to the CCS
IDE text editor.
1 Start FDATool by entering fdatool at the MATLAB command prompt.
fdatool % Starts FDATool.
2 Design a lter with the same structure, length, design method,
specications, and data type you implemented in your source co de lte r
algorithm.
The following gure shows a Direct-form II IIR lter example that uses
second-order sections.
3 Click Store Filter to store your lter design. S toring the lter allows
you to recall the design to modify it.
5-9