<?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 MM9Z1_638 LOW PASS FILTER in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MM9Z1-638-LOW-PASS-FILTER/m-p/2021582#M20282</link>
    <description>&lt;P&gt;Hi Nxp Partner&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't quite understand how to write the LPF_Ax (low pass filter coefficient Ax) of MM9Z1_638.&lt;BR /&gt;Suppose I want to write A0=0.25, A1=0.5, A2=0.25, what should I write in LPF_Ax?&lt;/P&gt;&lt;P&gt;Is there a ratio relationship or a conversion formula?&lt;BR /&gt;Low pass filter A0 should be a floating point number that cannot be filled in integer format LPF_AX&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="影像 (3).png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/317962iD34982BEF3BE33B8/image-size/large?v=v2&amp;amp;px=999" role="button" title="影像 (3).png" alt="影像 (3).png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;影像 (3).png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Br,&lt;/P&gt;&lt;P&gt;Mike Liang&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 03 Jan 2025 03:59:22 GMT</pubDate>
    <dc:creator>a852013777</dc:creator>
    <dc:date>2025-01-03T03:59:22Z</dc:date>
    <item>
      <title>MM9Z1_638 LOW PASS FILTER</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MM9Z1-638-LOW-PASS-FILTER/m-p/2021582#M20282</link>
      <description>&lt;P&gt;Hi Nxp Partner&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't quite understand how to write the LPF_Ax (low pass filter coefficient Ax) of MM9Z1_638.&lt;BR /&gt;Suppose I want to write A0=0.25, A1=0.5, A2=0.25, what should I write in LPF_Ax?&lt;/P&gt;&lt;P&gt;Is there a ratio relationship or a conversion formula?&lt;BR /&gt;Low pass filter A0 should be a floating point number that cannot be filled in integer format LPF_AX&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="影像 (3).png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/317962iD34982BEF3BE33B8/image-size/large?v=v2&amp;amp;px=999" role="button" title="影像 (3).png" alt="影像 (3).png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;影像 (3).png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Br,&lt;/P&gt;&lt;P&gt;Mike Liang&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2025 03:59:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MM9Z1-638-LOW-PASS-FILTER/m-p/2021582#M20282</guid>
      <dc:creator>a852013777</dc:creator>
      <dc:date>2025-01-03T03:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: MM9Z1_638 LOW PASS FILTER</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MM9Z1-638-LOW-PASS-FILTER/m-p/2021723#M20284</link>
      <description>&lt;P&gt;Hi Mike,&lt;/P&gt;
&lt;P&gt;The use of the FIR LPF is optional and allows to fine tune the overall frequency characteristics of the acquisition. In most cases this FIR filter is not used/bypassed.&lt;/P&gt;
&lt;P&gt;One big tradeoff of the FIR low pass filter is that it will significantly increases the latency of the acquisition. This is relevant if different VSENSE channels are used/switched.&lt;/P&gt;
&lt;P&gt;See attached PDF for:&lt;/P&gt;
&lt;P&gt;- Digital signal processing/filtering p. 107&lt;BR /&gt;- Latency p. 115&lt;/P&gt;
&lt;P&gt;The FIR LPF can be enabled/disabled (bypassed).&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;#define&lt;/STRONG&gt; ACQLPFEnable()&amp;nbsp;&amp;nbsp; (B_ACQ_ACC1 = B_ACQ_ACC1_LPFENM_MASK| B_ACQ_ACC1_LPFEN_MASK)&amp;nbsp; &amp;nbsp; &amp;nbsp;//!&amp;lt;&amp;nbsp; enable low pass filter for CSENSE &amp;amp; VSENSE channel&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;#define&lt;/STRONG&gt; ACQLPFDisable()&amp;nbsp; &amp;nbsp; (B_ACQ_ACC1 = B_ACQ_ACC1_LPFENM_MASK| 0)&amp;nbsp; &amp;nbsp; //!&amp;lt;&amp;nbsp; disable low pass filter for CSENSE &amp;amp; VSENSE channel&lt;/P&gt;
&lt;P&gt;If enabled the FIR coefficients and number of used coefficients can be programmed. The device already has a default set of coefficients programmed.&lt;/P&gt;
&lt;P&gt;The code below is representing the default values (code is actually not required, as reset values of the respective registers).&lt;/P&gt;
&lt;P&gt;B_ACQ_LPFC = 15;&lt;BR /&gt;B_LPF_A0 = 0x03DB;&lt;BR /&gt;B_LPF_A1 = 0x87B4;&lt;BR /&gt;B_LPF_A2 = 0x86B1;&lt;BR /&gt;B_LPF_A3 = 0x1580;&lt;BR /&gt;B_LPF_A4 = 0x04DF;&lt;BR /&gt;B_LPF_A5 = 0x9F70;&lt;BR /&gt;B_LPF_A6 = 0x81F5;&lt;BR /&gt;B_LPF_A7 = 0x5195;&lt;BR /&gt;B_LPF_A8 = 0x5195;&lt;BR /&gt;B_LPF_A9 = 0x81F5;&lt;BR /&gt;B_LPF_A10= 0x9F70;&lt;BR /&gt;B_LPF_A11= 0x04DF;&lt;BR /&gt;B_LPF_A12= 0x1580;&lt;BR /&gt;B_LPF_A13= 0x86B1;&lt;BR /&gt;B_LPF_A14= 0x87B4;&lt;BR /&gt;B_LPF_A15= 0x03DB;&lt;/P&gt;
&lt;P&gt;I attached an Excel calculator which shows the impact of the individual filter stages and allows to evaluate own values. I guess it is what you are looking for.&lt;/P&gt;
&lt;P&gt;BRs, Tomas&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2025 08:06:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MM9Z1-638-LOW-PASS-FILTER/m-p/2021723#M20284</guid>
      <dc:creator>TomasVaverka</dc:creator>
      <dc:date>2025-01-03T08:06:17Z</dc:date>
    </item>
  </channel>
</rss>

