User`s guide

Preparing to E xport F ilter Coefficients to Code Co mposer Studio™ Projects
Selecting the Ex
port Mode
You can export a
lter by generating an ANSI C header le, or by writi n g
the lter coefc
ients directly to processor memory. The following table
summarizes when
and how to use the export modes.
To
Use Export
Mode… When to Use Suggested Use
Add lter
coefcients
to a project in
CCS
C header
file
You implemented a
lter algorithm in your
program, but you did
not allocate memory on
your processor for the
lter coefcients.
Add the generated A NSI C header le
to an appropriate project. Building
and loading this project into your
processor allocates static memory
locations on the processor and writes
your lter coefcients to those
locations.
Edit the le so the header le allocates
extra processor memory and then add
the h eader le to your project. Refer
to “Allocating Sufcient or Extra
Memory for Filter Coefcients” on
page 5-15 in the n ext section.
(For a sample generated header le,
refer to“Reviewing A N SI C Header File
Contents” on page 5-12.)
Modify
the lter
coefcients in
an embedded
application
loaded on a
processor
Write
directly
to memory
You loaded a program
on your processor.
The program allocated
space in your p rocess or
memory to store the
lter coefcients.
Optimize your lter design in
FDATool.
Then,
Write the updated lter coefcients
directly to the allocated processor
memory. Refer to section “Preventing
Memory Corruption When You Export
Coefcients to Processor Memory ” o n
page 5-15 for more inform ation.
5-5