<?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 Re: DSP_Func_MFR library in Processor Expert Software</title>
    <link>https://community.nxp.com/t5/Processor-Expert-Software/DSP-Func-MFR-library/m-p/1019154#M4459</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, ChenJian,&lt;/P&gt;&lt;P&gt;First of all, I think the DSP_Func_MFR is very old, I suggest that you use the latest library RTCESL which adapts to DSP56800EX core.&lt;/P&gt;&lt;P&gt;This is RTCESL lib link:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/products/processors-and-microcontrollers/arm-microcontrollers/general-purpose-mcus/kv-series-cortex-m4-m0-plus-m7/real-time-control-embedded-software-motor-control-and-power-conversion-libraries:RTCESL" title="https://www.nxp.com/products/processors-and-microcontrollers/arm-microcontrollers/general-purpose-mcus/kv-series-cortex-m4-m0-plus-m7/real-time-control-embedded-software-motor-control-and-power-conversion-libraries:RTCESL"&gt;Real Time Control Embedded Software Motor Control and Power Conversion Libraries | NXP&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use the GFLIB_sqrt_F16() function to calculate the value.&lt;/P&gt;&lt;P&gt;Note no matter whether you use GFLIB_sqrt_F16() or &lt;SPAN style="color: #4a90e2; background-color: #f7f8fa; font-weight: normal; font-size: 14px;"&gt; MFR_mfr32Sqrt &lt;/SPAN&gt;(), the input value variable format is Frac16 or Frac32. For example, for 16 bits Frac16 variable:&lt;/P&gt;&lt;P&gt;Frac16_t var=0x4000;&amp;nbsp; //the var value is 0.5&lt;/P&gt;&lt;P&gt;Frac16_t res=GFLIB_sqrt_F16(var) ; //res variable should be 0.7071*32768=23170 in decimal&lt;/P&gt;&lt;P&gt;Hope it can help you&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;XiangJun Rong&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/96571i6C9864A030D60202/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Dec 2019 03:34:41 GMT</pubDate>
    <dc:creator>xiangjun_rong</dc:creator>
    <dc:date>2019-12-12T03:34:41Z</dc:date>
    <item>
      <title>DSP_Func_MFR library</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/DSP-Func-MFR-library/m-p/1019153#M4458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #4a90e2; background-color: #f7f8fa; font-weight: normal; font-size: 14px;"&gt;The chip I used is 56F84786, I want to use the DSP_Func_MFR library inside, and use MFR_mfr32Sqrt to calculate the square root, the returned results are all wrong, may I ask whether other configuration is needed?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Dec 2019 06:41:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/DSP-Func-MFR-library/m-p/1019153#M4458</guid>
      <dc:creator>陈建1</dc:creator>
      <dc:date>2019-12-09T06:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: DSP_Func_MFR library</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/DSP-Func-MFR-library/m-p/1019154#M4459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, ChenJian,&lt;/P&gt;&lt;P&gt;First of all, I think the DSP_Func_MFR is very old, I suggest that you use the latest library RTCESL which adapts to DSP56800EX core.&lt;/P&gt;&lt;P&gt;This is RTCESL lib link:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/products/processors-and-microcontrollers/arm-microcontrollers/general-purpose-mcus/kv-series-cortex-m4-m0-plus-m7/real-time-control-embedded-software-motor-control-and-power-conversion-libraries:RTCESL" title="https://www.nxp.com/products/processors-and-microcontrollers/arm-microcontrollers/general-purpose-mcus/kv-series-cortex-m4-m0-plus-m7/real-time-control-embedded-software-motor-control-and-power-conversion-libraries:RTCESL"&gt;Real Time Control Embedded Software Motor Control and Power Conversion Libraries | NXP&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use the GFLIB_sqrt_F16() function to calculate the value.&lt;/P&gt;&lt;P&gt;Note no matter whether you use GFLIB_sqrt_F16() or &lt;SPAN style="color: #4a90e2; background-color: #f7f8fa; font-weight: normal; font-size: 14px;"&gt; MFR_mfr32Sqrt &lt;/SPAN&gt;(), the input value variable format is Frac16 or Frac32. For example, for 16 bits Frac16 variable:&lt;/P&gt;&lt;P&gt;Frac16_t var=0x4000;&amp;nbsp; //the var value is 0.5&lt;/P&gt;&lt;P&gt;Frac16_t res=GFLIB_sqrt_F16(var) ; //res variable should be 0.7071*32768=23170 in decimal&lt;/P&gt;&lt;P&gt;Hope it can help you&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;XiangJun Rong&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/96571i6C9864A030D60202/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Dec 2019 03:34:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/DSP-Func-MFR-library/m-p/1019154#M4459</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2019-12-12T03:34:41Z</dc:date>
    </item>
  </channel>
</rss>

