<?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>S32KのトピックRe: LPIT Clear Flag</title>
    <link>https://community.nxp.com/t5/S32K/LPIT-Clear-Flag/m-p/1245496#M10160</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Juve75,&lt;/P&gt;
&lt;P&gt;The method of flipping IO to measure code execution time is inaccurate.&lt;BR /&gt;Please refer: &lt;A href="https://community.nxp.com/t5/S32K-Knowledge-Base/Measure-the-running-time-of-one-function-on-S32K/ta-p/1114941" target="_self"&gt;Measure the running time of one function on S32K&lt;/A&gt;&lt;BR /&gt;These two assembly codes will not take such a long time.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Robin&lt;BR /&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
    <pubDate>Mon, 15 Mar 2021 07:57:28 GMT</pubDate>
    <dc:creator>Robin_Shen</dc:creator>
    <dc:date>2021-03-15T07:57:28Z</dc:date>
    <item>
      <title>LPIT Clear Flag</title>
      <link>https://community.nxp.com/t5/S32K/LPIT-Clear-Flag/m-p/1244919#M10152</link>
      <description>&lt;P&gt;Hi to all, I have a question: I'm using a LPIT for a timer and I used the SDK routine(S32 Design Studio for ARM Version 2.2. with micro S32K142)&lt;/P&gt;&lt;P&gt;When I clear the interrupt flag, the timer to do this instruction is very high (30us); I&amp;nbsp;verify this duration using an output pin (See code below) so if I used a 100us timer, the microcontroller works 30% of the time to clear the interrupt flag.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT size="2" color="#7f0055"&gt;&lt;STRONG&gt;static&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT size="2" color="#7f0055"&gt;inline&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT size="2" color="#7f0055"&gt;void&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT size="2"&gt; &lt;STRONG&gt;LPIT_ClearInterruptFlagTimerChannels&lt;/STRONG&gt;(&lt;/FONT&gt;&lt;FONT size="2" color="#005032"&gt;LPIT_Type&lt;/FONT&gt;&lt;FONT size="2"&gt; * &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT size="2" color="#7f0055"&gt;const&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT size="2"&gt; base,&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT size="2" color="#005032"&gt;uint32_t&lt;/FONT&gt;&lt;FONT size="2"&gt; mask)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P align="left"&gt;{&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT size="2" color="#3f7f5f"&gt;/* Write 1 to clear the interrupt flag. */&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P align="left"&gt;&amp;nbsp;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT size="2"&gt;PINS_DRV_WritePin(PTC,9,1); &lt;/FONT&gt;&lt;FONT size="2" color="#3f7f5f"&gt;// wood&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT size="2"&gt;base-&amp;gt;&lt;/FONT&gt;&lt;FONT size="2" color="#0000c0"&gt;MSR&lt;/FONT&gt;&lt;FONT size="2"&gt; = mask;&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT size="2"&gt;PINS_DRV_WritePin(PTC,9,0); &lt;/FONT&gt;&lt;FONT size="2" color="#3f7f5f"&gt;// wood&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the instruction base-&amp;gt;MSR = mask is convert in assembler code as:&lt;/P&gt;&lt;P&gt;284&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; base-&amp;gt;MSR = mask;&lt;BR /&gt;00004464:&amp;nbsp;&amp;nbsp; ldr&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; r4, [pc, #20]&amp;nbsp;&amp;nbsp; ; (0x447c &amp;lt;LPIT_DRV_ClearInterruptFlagTimerChannels+40&amp;gt;)&lt;BR /&gt;00004466:&amp;nbsp;&amp;nbsp; str&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; r6, [r4, #12]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;could you help me?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Fri, 12 Mar 2021 15:09:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/LPIT-Clear-Flag/m-p/1244919#M10152</guid>
      <dc:creator>Juve75</dc:creator>
      <dc:date>2021-03-12T15:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: LPIT Clear Flag</title>
      <link>https://community.nxp.com/t5/S32K/LPIT-Clear-Flag/m-p/1245496#M10160</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Juve75,&lt;/P&gt;
&lt;P&gt;The method of flipping IO to measure code execution time is inaccurate.&lt;BR /&gt;Please refer: &lt;A href="https://community.nxp.com/t5/S32K-Knowledge-Base/Measure-the-running-time-of-one-function-on-S32K/ta-p/1114941" target="_self"&gt;Measure the running time of one function on S32K&lt;/A&gt;&lt;BR /&gt;These two assembly codes will not take such a long time.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Robin&lt;BR /&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 07:57:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/LPIT-Clear-Flag/m-p/1245496#M10160</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2021-03-15T07:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: LPIT Clear Flag</title>
      <link>https://community.nxp.com/t5/S32K/LPIT-Clear-Flag/m-p/1246209#M10189</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Dear Robin,&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I know that this kind of IO test is not accurate, but if I simply raise up and down the port, the duration time is 0,5us, not 30us. I also use this test to estimate the duration of other&amp;nbsp;code but without this delay time.&lt;/P&gt;&lt;P&gt;Anyhow I have a look to Measure the running time of one function on S32K that you suggest.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 08:10:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/LPIT-Clear-Flag/m-p/1246209#M10189</guid>
      <dc:creator>Juve75</dc:creator>
      <dc:date>2021-03-16T08:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: LPIT Clear Flag</title>
      <link>https://community.nxp.com/t5/S32K/LPIT-Clear-Flag/m-p/1311483#M11418</link>
      <description>&lt;P&gt;Been looking for this:&amp;nbsp;&lt;A href="https://community.nxp.com/t5/S32K-Knowledge-Base/Measure-the-running-time-of-one-function-on-S32K/ta-p/1114941" target="_self"&gt;Measure the running time of one function on S32K&lt;/A&gt;&lt;A href="https://woodymanreviews.com" target="_self"&gt;.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks for sharing. Is there a more detailed article on this topic available here?&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jul 2021 19:05:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/LPIT-Clear-Flag/m-p/1311483#M11418</guid>
      <dc:creator>Walter99</dc:creator>
      <dc:date>2021-07-21T19:05:09Z</dc:date>
    </item>
  </channel>
</rss>

