User`s guide

5 Exporting F ilter Coefficients from FDATool
Click Select target to open the Selection Utility: Embedded IDE Link
CC dialog box.
From the list of boards and list of processors, select the board name
and proce ssor name to use.
Click Done to set the DSP B oard # and DSP Processor # va lues.
9 Click Generate to generate the ANSI header le. FDATool prompts you
for a le name and location to save the generated header le.
The default location to save the le is your MATLAB working directory.
The default le name is
fdacoefs.h.
10 Click OK to export the header le to the CCS editor.
If CCS IDE is not open, this step starts the IDE .
The e xport process does not add the le to your active project in the IDE.
11 Drag your generated header le into the project that implements the lter.
12 Add a #include statement to your project source code to include the new
header le when you build your project.
13 Generate a .out le and load the le into your processor. Loading the le
allocates locations in static memory on the processor and writes the lter
coefcients to those locations.
To see an example header le, refer to “Review ing ANSI C Header File
Contents” on page 5-12.
Reviewing ANSI C Header File Contents
The following program listing shows the exported header (.h) le that
FDATool generates. This example show s a direct-form II lter th at uses ve
second-order sections. The lter is stable and has linear phase.
Comments in the le describe the lter structure, number of sections,
stability, and the phase of the lter. Source code shows the lter coefcients
and variables associated with the lter design, such as the numerator length
and the data type used to represent the coefcients.
5-12