<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Amclib in S32K</title>
    <link>https://community.nxp.com/t5/S32K/Amclib/m-p/2085351#M48056</link>
    <description>&lt;P&gt;I have followed the userguid to implement the filter.&lt;/P&gt;&lt;P&gt;GDFLIB_FilterIIR2Init_FLT&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;GDFLIB_FilterIIR2_FLT&lt;/P&gt;&lt;P&gt;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,&amp;nbsp; the GDFLIB_FilterIIR2_FLT 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?&lt;/P&gt;&lt;P&gt;for&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;GDFLIB_FilterIIR2Init_FLT&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;GDFLIB_FilterIIR2_FLT&lt;/P&gt;</description>
    <pubDate>Wed, 23 Apr 2025 09:43:12 GMT</pubDate>
    <dc:creator>Ayaz</dc:creator>
    <dc:date>2025-04-23T09:43:12Z</dc:date>
    <item>
      <title>Amclib</title>
      <link>https://community.nxp.com/t5/S32K/Amclib/m-p/2085351#M48056</link>
      <description>&lt;P&gt;I have followed the userguid to implement the filter.&lt;/P&gt;&lt;P&gt;GDFLIB_FilterIIR2Init_FLT&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;GDFLIB_FilterIIR2_FLT&lt;/P&gt;&lt;P&gt;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,&amp;nbsp; the GDFLIB_FilterIIR2_FLT 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?&lt;/P&gt;&lt;P&gt;for&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;GDFLIB_FilterIIR2Init_FLT&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;GDFLIB_FilterIIR2_FLT&lt;/P&gt;</description>
      <pubDate>Wed, 23 Apr 2025 09:43:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Amclib/m-p/2085351#M48056</guid>
      <dc:creator>Ayaz</dc:creator>
      <dc:date>2025-04-23T09:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: Amclib</title>
      <link>https://community.nxp.com/t5/S32K/Amclib/m-p/2085938#M48081</link>
      <description>&lt;P&gt;Hi, could you please share your implementation?&lt;/P&gt;
&lt;P&gt;Do you have consulted &lt;EM&gt;3.14.3 Worst-Case Error Bounds&lt;/EM&gt; section of &lt;EM&gt;S32K3XXMCFLTACC&lt;/EM&gt;?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Apr 2025 21:15:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Amclib/m-p/2085938#M48081</guid>
      <dc:creator>_Leo_</dc:creator>
      <dc:date>2025-04-23T21:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: Amclib</title>
      <link>https://community.nxp.com/t5/S32K/Amclib/m-p/2086823#M48137</link>
      <description>&lt;P&gt;Hi again,&lt;/P&gt;
&lt;P&gt;The &lt;EM&gt;GDFLIB_FilterIIR2_FLT&lt;/EM&gt; function is designed for periodic use and the &lt;EM&gt;GDFLIB_FilterIIR2Init_FLT&lt;/EM&gt; function only needs to be called once at the beginning.&lt;/P&gt;
&lt;P&gt;Here is a simplified example of how to use this filter periodically:&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;//---------------------------------------------------------------------
float fltIn[10] = {0, 0.3211, 0.7427, 0.6645, 0.2892, 0.3374, 0.9086, 0.0323, 0.6964, 0.2088};
float fltOut;

flttrMyIIR2.trFiltCoeff.fltB0 = (float)(0.066122101544579);
flttrMyIIR2.trFiltCoeff.fltB1 = (float)(0.0);
flttrMyIIR2.trFiltCoeff.fltB2 = (float)(-0.066122101544579);
flttrMyIIR2.trFiltCoeff.fltA1 = (float)(-1.776189018043779);
flttrMyIIR2.trFiltCoeff.fltA2 = (float)(0.867755796910841);

GDFLIB_FilterIIR2Init_FLT(&amp;amp;flttrMyIIR2);

for (int i = 0; i &amp;lt; 10; i++){
   fltOut = GDFLIB_FilterIIR2_FLT(fltIn[i], &amp;amp;flttrMyIIR2);
   }
//---------------------------------------------------------------------&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A &lt;EM&gt;NaN&lt;/EM&gt; value may appear at the filter output for several reasons:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Input values contain at least one denormalized number&lt;/LI&gt;
&lt;LI&gt;Input values contain at least one &lt;EM&gt;NaN&lt;/EM&gt;, &lt;EM&gt;Inf&lt;/EM&gt;, or &lt;EM&gt;–Inf&lt;/EM&gt;&lt;/LI&gt;
&lt;LI&gt;Output overflow/underflow&lt;/LI&gt;
&lt;LI&gt;Intermediate result overflow/underflow&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;More details can be found in the document &lt;EM&gt;Accuracy of Floating-Point Functions (S32K3XXMCFLTACC)&lt;/EM&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Apr 2025 17:59:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Amclib/m-p/2086823#M48137</guid>
      <dc:creator>_Leo_</dc:creator>
      <dc:date>2025-04-24T17:59:59Z</dc:date>
    </item>
  </channel>
</rss>

