Digital Filter Block

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hello All,

   

Does anyone know if it is possible to enter the filter coefficents for the digital filter block manually? Also, can IIR filters be supported? Is any of this functionality scheduled to be released in creator 2.0?

   

Thanks,

   

Alex

0 Likes
1 Solution
Anonymous
Not applicable

The process which you have to follow to put your own Coefficients are as follows:

   

1) Place the filter component.

   

2) Configure Filter component appropriately
a. If you are inserting your own custom coefficients, then parameters such as sample rate, cutoff, and window doesn’t matter.

   

3) Make sure you don’t need to generate any component code before inserting your custom coefficients.

   

4) Convert your coefficients, which should be fractions of 1, to a signed fixed point 24-bit number. For example, if you want a coefficient of 2/3, use 2^23 * 2/3 as your filter coefficient.

   

5) Separate your coefficients out into the format used in Filter_RAM_Data.c. Remember to use little endian format.

   

6) Once you’ve inserted your custom coefficients into the file, copy them into a text file and save it. You will need to replace the coefficients in Filter_RAM_Data.c next time you generate any components in the project.

   

7) Build the project, and program your PSoC

View solution in original post

0 Likes
11 Replies