Download MATLAB EMBEDDED IDE LINK 4 - FOR USE WITH TEXAS INSTRUMENTS CODE COMPOSER STUDIO User`s guide

Transcript
5
Exporting Filter Coefficients from FDATool
to
real64_T NUM[256] = {...}
allocates enough memory for NUM to store up to 256 numerator filter
coefficients rather than 47.
Exporting the header file to CCS IDE does not add the filter to your project.
To incorporate the filter coefficients from the header file, add a #include
statement:
#include
headerfilename.h
Refer to “Exporting Filter Coefficients to Your Code Composer Studio Project”
on page 5-9 for information about generating a header file to export filter
coefficients.
When you export filter coefficients directly to processor memory, the export
process writes coefficients to as many memory locations as they need. The
write process does not perform bounds checking. To ensure you write to the
correct locations, and have enough memory for your filter coefficients, plan
memory allocation carefully.
Replacing Existing Coefficients in Memory with
Updated Coefficients
When you redesign a filter and export new coefficients to replace existing
coefficients in memory, verify the following conditions for your new design:
• Your redesign did not increase the memory required to store the coefficients
beyond the allocated memory.
Changes that increase the memory required to store the filter coefficients
include the following redesigns:
-
Increasing the filter order
Changing the number of sections in the filter
Changing the numerical precision (changing the export data type)
• Your changes did not change the export data type.
5-16