This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

EVM430-FR6043: How to configure Band-Pass filter in EVM430-FR6043

Guru 12185 points
Part Number: EVM430-FR6043

Hi,

I'm developing an anemometer using the Hilbert Wide algorithm on the EVM430-FR6043.

1. Please tell me the procedure to use and adjust the Band-Pass filter.

    Ex.) 1. Define USS_ALG_FILT_IS_FILTER_ENABLED to true, ...etc.

2. Is the source code of the core processing part of the USS SW Library disclosed?

Thanks,

Koki

  • Hi Koki,

    For the first question,

    1. define USS_ALG_FILT_IS_FILTER_ENABLED to true

    2. Check the USS_ALG_FILT_OPTION, if the USS_ALG_FILT_OPTION is 4. You need to generate your own filter coefficient in USS_SW_LIB_APP_FILTER_COFFICIENTS /* USS_filterCoeffs_Custom*/

    3. Generate your own filter coffs in MATLAB.

    For example,

     N = 18;

     Fs = 3400000;

     Fstop1 = 600000;

     Fpass1 = 800000;

     Fpass2 = 1200000;

     Fstop2 = 1400000;

     Wstop1 = 1;

     Wpass = 10;

     Wstop2 = 1;

     filterCoeffs = [firpm(N,[0 Fstop1 Fpass1 Fpass2 Fstop2 Fs/2]/(Fs/2), [0 0 1 1 0 0],[Wstop1 Wpass Wstop2]) 0];

    For the second question, we do not have plan to disclose the USS library now.

     

    Best regards,

    Cash Hao

  • Hi, Cash Hao

     

    > 3. Generate your own filter coffs in MATLAB.

    Currently, I'm trying to get parameters on the MathWorks firpm design site.

    Specifically, what steps do I need to take?

     

    Thanks,

    Koki

  • Hi Koki,

    Just follow the example code I sent on the early reply. Define your own Fs, Fpass and Fstop. And I think it is not necessary to change the N.

    Best regards,

    Cash Hao

  • Hi, Cash Hao

    I've roughly figured out what to set when using Firpm, but I'm not sure how to make it the 20 parameters to pass to the USS SW Library.

    Thanks,

    Koki

  • Hi Koki,

    I do not get it. What is the 20 parameters you mean?

    Best regards,

    Cash Hao

  • Hi, Cash Hao

    I am trying to get parameters on the MathWorks firpm design site.

    Could you tell me the specific procedure in Matlab?

    Currently, I am referring to the following URL Q16.

    https://www.ti.com/lit/an/slaa837a/slaa837a.pdf

    Thanks,

    Koki

  • Hi Koki,

    You should get the results when you finished typing in the filterCoeffs line and click enter.

    I am not sure what format of the fixed point data which needed to be converted to. However, you can generate the filter coeffs with the default settings. We have the converted fixed point data in the code. We can compare with it and find out what is the fixed point data format they used here.

    Best regards,

    Cash Hao

**Attention** This is a public forum