Ammlib

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Ammlib

584 Views
Ayaz
Contributor IV


Hi
I am trying to use the AMMCLib in my project, but I am missing some information about how to implement the GDFLIB second-order filter.

but I am not getting the values I expect. I am unsure about the purpose of these buffers

fltFiltBufferX
and 
fltFiltBufferY

 

Skærmbillede 2025-04-09 173646.png


Could you provide some guidance on how to properly use them?

0 Kudos
Reply
4 Replies

559 Views
_Leo_
NXP TechSupport
NXP TechSupport

Hi,

Thank you so much for your interest in our products and for using our community.

3.15 GDFLIB_FilterIIR2 section of S32K3XXMCLUG gives more details and code example about it.

You can find such filet in C:\NXP\AMMCLIB\S32K3xx_AMMCLIB_v1.1.39\doc.

Hope it helps you. Please let me know if you have more questions about it.

Have a nice day!

0 Kudos
Reply

494 Views
Ayaz
Contributor IV

i had a look at that document. 
I have implemented an IIR filter in my project, which needs to be called periodically. However, the filter only works if I initialize it before each call, which resets the filter. This periodic reset is not acceptable for my design. If I initialize the filter only once at the beginning, it returns NaN values, indicating that the filter is not functioning correctly. Could you please provide an example of how to use the IIR filter effectively for periodic data filtering?
for 

GDFLIB_FilterIIR2Init_FLT
and
GDFLIB_FilterIIR2_FLT
0 Kudos
Reply

382 Views
_Leo_
NXP TechSupport
NXP TechSupport

Sorry foy delay. I noticed that you have another similar case, so I will follow up on this last one that I mention.

https://community.nxp.com/t5/S32K/Amclib/td-p/2085351

0 Kudos
Reply

441 Views
Ayaz
Contributor IV

I have not received any answer yet 

0 Kudos
Reply