<?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: Questions about library in Sensors</title>
    <link>https://community.nxp.com/t5/Sensors/Questions-about-library/m-p/405033#M1652</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That will do it!&amp;nbsp; Glad the mystery has been cleared up.&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Sep 2015 15:10:07 GMT</pubDate>
    <dc:creator>michaelestanley</dc:creator>
    <dc:date>2015-09-24T15:10:07Z</dc:date>
    <item>
      <title>Questions about library</title>
      <link>https://community.nxp.com/t5/Sensors/Questions-about-library/m-p/405029#M1648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following questions about Fusion Library 5.0:&lt;/P&gt;&lt;P&gt;1) Systick shows 53 for 9 axis fusion. Does it mean the function for 9 axis fusion need (53/120MHz)==0.44uS to run once?&lt;/P&gt;&lt;P&gt;2) Fusion task is lower priority than sampling task, will be interrupt by sampling task. I tested the time required to read ACC around 237uS. If the fusion task is interrupted by sampling task, the systick should be much longer?&lt;/P&gt;&lt;P&gt;3) My own project is not using MQX. I am using PIT0/1/2 for data sampling, fusion and MAGCal. PIT0 priority is higher than PIT1/2. PIT1 priority is higher than PIT2.&lt;/P&gt;&lt;P&gt;When I call 9 axis fusion function, it takes around 1.6ms? Why does it make so big difference?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Christie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2026 21:08:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/Questions-about-library/m-p/405029#M1648</guid>
      <dc:creator>a8Chcx</dc:creator>
      <dc:date>2026-02-03T21:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: Questions about library</title>
      <link>https://community.nxp.com/t5/Sensors/Questions-about-library/m-p/405030#M1649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Christie,&lt;/P&gt;&lt;P&gt;In order:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;You're off by a few orders of magnitude.&amp;nbsp; The display is in K-ticks.&amp;nbsp; So 53,000/120,000,000 = 0.44ms.&amp;nbsp; And yes, this is the time for the fusion to run once.&lt;/LI&gt;&lt;LI&gt;Well not much, as we see the fusion task is longer than you thought.&amp;nbsp; But conceptually, yes.&amp;nbsp; On the K64F, which I think you are using, there's generally enough time between two consequtive samples to run the fusion without interruption.&lt;/LI&gt;&lt;LI&gt;You've got your priorities straight.&amp;nbsp; Are you measuring time using the systick counter here, or via a scope and GPIO?&amp;nbsp; If the latter, my first question is "What frequency have you programmed the MCU's clock to?"&amp;nbsp; If the former, what systick count are you getting?&amp;nbsp;&amp;nbsp; FYI, the numbers in the datasheet exclude the magnetic calibration and sensor sampling tasks.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2015 23:51:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/Questions-about-library/m-p/405030#M1649</guid>
      <dc:creator>michaelestanley</dc:creator>
      <dc:date>2015-09-23T23:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: Questions about library</title>
      <link>https://community.nxp.com/t5/Sensors/Questions-about-library/m-p/405031#M1650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mike,&lt;/P&gt;&lt;P&gt;1) My mistake. in K-ticks, the measuring time is reasonable.&lt;/P&gt;&lt;P&gt;2) I measure the timing between your demo project and my own project:&lt;/P&gt;&lt;P&gt;-----Sampling time in my project is about 1183uS===7100/60MHz.&lt;/P&gt;&lt;P&gt;-----9-axis data fusion in my project==1600uS==95700/60MHz, in your demo project==442uS&lt;/P&gt;&lt;P&gt;-----6-axis GB data fusion in my project==317uS==19000/60MHz, in your demo project==94uS&lt;/P&gt;&lt;P&gt;-----9-axis GY data fusion in my project===96uS==5750/60MHz, in your demo project==25uS&lt;/P&gt;&lt;P&gt;All functions in both projects are working fine. Do you think that there is any performance difference in data fusion result?&lt;/P&gt;&lt;P&gt;3) I am using KDS 3.0.0 and KSDK 1.2.0 to develop my own project. Both projects are running on the same demo board. In my project, I am using 120MHz for core, 60 MHz for BUS clock. I am using 60MHz for PIT0/1/2. I am using PIT0 ticks to measure the time. My measuring time is just for data fusion function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is possible to be related to CPU floating setting or math library difference between two projects?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Christie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2015 12:02:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/Questions-about-library/m-p/405031#M1650</guid>
      <dc:creator>a8Chcx</dc:creator>
      <dc:date>2015-09-24T12:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: Questions about library</title>
      <link>https://community.nxp.com/t5/Sensors/Questions-about-library/m-p/405032#M1651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mike,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found the reason. I need to use -O3 instead of -O0 to do the optimization. Now almost the same as demo project...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Christie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2015 14:51:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/Questions-about-library/m-p/405032#M1651</guid>
      <dc:creator>a8Chcx</dc:creator>
      <dc:date>2015-09-24T14:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: Questions about library</title>
      <link>https://community.nxp.com/t5/Sensors/Questions-about-library/m-p/405033#M1652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That will do it!&amp;nbsp; Glad the mystery has been cleared up.&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2015 15:10:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/Questions-about-library/m-p/405033#M1652</guid>
      <dc:creator>michaelestanley</dc:creator>
      <dc:date>2015-09-24T15:10:07Z</dc:date>
    </item>
  </channel>
</rss>

