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 fi
lter by generating an ANSI C header file, or by writi n g
the filter coeffic
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 filter
coefficients
to a project in
CCS
C header
file
You implemented a
filter algorithm in your
program, but you did
not allocate memory on
your processor for the
filter coefficients.
• Add the generated A NSI C header file
to an appropriate project. Building
and loading this project into your
processor allocates static memory
locations on the processor and writes
your filter coefficients to those
locations.
• Edit the file so the header fi le allocates
extra processor memory and then add
the h eader file to your project. Refer
to “Allocating Sufficient or Extra
Memory for Filter Coefficients” on
page 5-15 in the n ext section.
(For a sample generated header file,
refer to“Reviewing A N SI C Header File
Contents” on page 5-12.)
Modify
the filter
coefficients 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
filter coefficients.
• Optimize your filter design in
FDATool.
Then,
• Write the updated filter coefficients
directly to the allocated processor
memory. Refer to section “Preventing
Memory Corruption When You Export
Coefficients to Processor Memory ” o n
page 5-15 for more inform ation.
5-5