<?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: GPT Timer delay in S32K</title>
    <link>https://community.nxp.com/t5/S32K/GPT-Timer-delay/m-p/1678091#M24534</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/209169"&gt;@Ajul&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I made a simple test code with the PIT0 CH 2 of the S32K3X4EVB-Q172, where it toggles&amp;nbsp;a GPIO pin when the PIT notification is called every 400µs and 200µs.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="VaneB_0-1687986481737.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/229904iE477A774CCAEEEDA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="VaneB_0-1687986481737.png" alt="VaneB_0-1687986481737.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="VaneB_1-1687986491505.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/229905iD1BB50160AE88137/image-size/medium?v=v2&amp;amp;px=400" role="button" title="VaneB_1-1687986491505.png" alt="VaneB_1-1687986491505.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;As you can see in the images, time remains relatively constant, it only has a slight deviation.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your delay variation may be due to your FXOSC or, in the case of using the S32K internal oscillators, these are not precise. I recommend you verify this part and additionally, I share a screenshot of how I have AIPS_SLOW_CLK configured.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="VaneB_2-1687986921942.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/229906i7AD291265F937462/image-size/medium?v=v2&amp;amp;px=400" role="button" title="VaneB_2-1687986921942.png" alt="VaneB_2-1687986921942.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Jun 2023 21:15:35 GMT</pubDate>
    <dc:creator>VaneB</dc:creator>
    <dc:date>2023-06-28T21:15:35Z</dc:date>
    <item>
      <title>GPT Timer delay</title>
      <link>https://community.nxp.com/t5/S32K/GPT-Timer-delay/m-p/1675988#M24395</link>
      <description>&lt;P&gt;Hi , Currently We are working on NXPs32k324 controller .&lt;/P&gt;&lt;P&gt;We are using GPT ,PIT0_CH2 for getting timer delay.&lt;/P&gt;&lt;P&gt;GPT clock is running at 40MHZ.&amp;nbsp;&lt;/P&gt;&lt;P&gt;when we gave the tick for getting second and ms delay we are getting accurate result.&lt;/P&gt;&lt;P&gt;But in the case of micro second we are not getting accurate value we calculated tick for getting 400micro second delay&amp;nbsp; but we are getting a delay of 478 micro second also for 200 microsecond we are getting 319micro second could you please suggest a solution ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2023 11:26:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/GPT-Timer-delay/m-p/1675988#M24395</guid>
      <dc:creator>Ajul</dc:creator>
      <dc:date>2023-06-26T11:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: GPT Timer delay</title>
      <link>https://community.nxp.com/t5/S32K/GPT-Timer-delay/m-p/1676279#M24415</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/209169"&gt;@Ajul&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you provide the configuration you use for AIPS_SLOW_CLK and PLL_PHI0_CLK or FIRC_CLK?&lt;/P&gt;
&lt;P&gt;Also, Could you tell me the RTD version you are using?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;B.R.&lt;/P&gt;
&lt;P&gt;VaneB&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2023 18:01:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/GPT-Timer-delay/m-p/1676279#M24415</guid>
      <dc:creator>VaneB</dc:creator>
      <dc:date>2023-06-26T18:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: GPT Timer delay</title>
      <link>https://community.nxp.com/t5/S32K/GPT-Timer-delay/m-p/1676557#M24429</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;VaneB,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We are using&amp;nbsp;AIPS_SLOW_CLK.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The configuration is attached below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Using Autosar version 4.4.0v&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2023 04:28:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/GPT-Timer-delay/m-p/1676557#M24429</guid>
      <dc:creator>Ajul</dc:creator>
      <dc:date>2023-06-27T04:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: GPT Timer delay</title>
      <link>https://community.nxp.com/t5/S32K/GPT-Timer-delay/m-p/1678091#M24534</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/209169"&gt;@Ajul&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I made a simple test code with the PIT0 CH 2 of the S32K3X4EVB-Q172, where it toggles&amp;nbsp;a GPIO pin when the PIT notification is called every 400µs and 200µs.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="VaneB_0-1687986481737.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/229904iE477A774CCAEEEDA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="VaneB_0-1687986481737.png" alt="VaneB_0-1687986481737.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="VaneB_1-1687986491505.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/229905iD1BB50160AE88137/image-size/medium?v=v2&amp;amp;px=400" role="button" title="VaneB_1-1687986491505.png" alt="VaneB_1-1687986491505.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;As you can see in the images, time remains relatively constant, it only has a slight deviation.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your delay variation may be due to your FXOSC or, in the case of using the S32K internal oscillators, these are not precise. I recommend you verify this part and additionally, I share a screenshot of how I have AIPS_SLOW_CLK configured.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="VaneB_2-1687986921942.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/229906i7AD291265F937462/image-size/medium?v=v2&amp;amp;px=400" role="button" title="VaneB_2-1687986921942.png" alt="VaneB_2-1687986921942.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2023 21:15:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/GPT-Timer-delay/m-p/1678091#M24534</guid>
      <dc:creator>VaneB</dc:creator>
      <dc:date>2023-06-28T21:15:35Z</dc:date>
    </item>
  </channel>
</rss>

