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 Coefficients 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 filter coefficients to a project by generating an
ANSI C header file that contains the coefficients. The header file defines
global arrays for the filter coefficients. When you compile and link the project
to which you added the header file, the linker allocates the global arrays in
static memory locations in processor memory.
Loading the executable file into your process or allocates enough memory
to store the exported filter coefficients in proce ssor memory and writes the
coefficients to the allocated memory.
Use the followin g s tep s to export filter coefficients 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 filter with the same structure, length, design method,
specifications, and data type you implemented in your source co de filte r
algorithm.
The following figure shows a Direct-form II IIR filter example that uses
second-order sections.
3 Click Store Filter to store your filter design. S toring the filter allows
you to recall the design to modify it.
5-9