<?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中的主题 S32K311 EMIOS GPT</title>
    <link>https://community.nxp.com/t5/S32K/S32K311-EMIOS-GPT/m-p/2063799#M46912</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to configure timer for 500ms usin EMIOS GPT. How to calculate the compareValue ?&lt;/P&gt;&lt;P&gt;Is there any documents available?&lt;/P&gt;</description>
    <pubDate>Tue, 18 Mar 2025 12:35:06 GMT</pubDate>
    <dc:creator>nirmal_masilamani</dc:creator>
    <dc:date>2025-03-18T12:35:06Z</dc:date>
    <item>
      <title>S32K311 EMIOS GPT</title>
      <link>https://community.nxp.com/t5/S32K/S32K311-EMIOS-GPT/m-p/2063799#M46912</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to configure timer for 500ms usin EMIOS GPT. How to calculate the compareValue ?&lt;/P&gt;&lt;P&gt;Is there any documents available?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Mar 2025 12:35:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K311-EMIOS-GPT/m-p/2063799#M46912</guid>
      <dc:creator>nirmal_masilamani</dc:creator>
      <dc:date>2025-03-18T12:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: S32K311 EMIOS GPT</title>
      <link>https://community.nxp.com/t5/S32K/S32K311-EMIOS-GPT/m-p/2064084#M46929</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Thank you so much for your interest in our products and for using our community.&lt;/P&gt;
&lt;P&gt;There is the &lt;EM&gt;S32K3 RTD Training eMIOS&lt;/EM&gt; presentation (attached).&lt;/P&gt;
&lt;P&gt;On the other hand, for GPT frequency of 2Hz (500ms) with eMIOS clock frequency of 120MHz you need 60,000,000 ticks:&lt;/P&gt;
&lt;P&gt;1s -&amp;gt; 120MHz (120,000,000 ticks)&lt;BR /&gt;2Hz = (1/2)s&lt;BR /&gt;-&amp;gt;120,000,000 *(1/2) = 60,000,000 ticks&lt;BR /&gt;But max ticks are 65,534 (16 bits).&lt;/P&gt;
&lt;P&gt;Using &lt;EM&gt;Global Prescaler = 256&lt;/EM&gt; (in &lt;EM&gt;Emios_Mcl_Ip&lt;/EM&gt; driver) and &lt;EM&gt;Gpt Emios Prescaler = 15&lt;/EM&gt; (in &lt;EM&gt;Emios_Gpt&lt;/EM&gt; driver):&lt;/P&gt;
&lt;P&gt;1s -&amp;gt; 120MHz/256/15 (31,250 ticks)&lt;BR /&gt;2Hz = (1/2)s&lt;BR /&gt;-&amp;gt;31,250 *(1/2) = 15,625 ticks&lt;/P&gt;
&lt;P&gt;Please find attached project.&lt;/P&gt;
&lt;P&gt;This example implement a &lt;EM&gt;General Purpose Timer (GPT)&lt;/EM&gt; with eMIOS (&lt;EM&gt;CH_0&lt;/EM&gt;), such timer generates an interrupt when it reaches to its defined compare value and its respective notification function toggles the on-board blue LED (&lt;EM&gt;PTB8&lt;/EM&gt;).&lt;/P&gt;
&lt;P&gt;S32DS 3.6 + RTD 5.0.0 (S32K31XEVB-Q100)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="_Leo__1-1742333753262.png" style="width: 898px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/328670i71CA76B526797084/image-dimensions/898x138?v=v2" width="898" height="138" role="button" title="_Leo__1-1742333753262.png" alt="_Leo__1-1742333753262.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Hope it helps you.&lt;/P&gt;
&lt;P&gt;Have a nice day!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 18 Mar 2025 21:36:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K311-EMIOS-GPT/m-p/2064084#M46929</guid>
      <dc:creator>_Leo_</dc:creator>
      <dc:date>2025-03-18T21:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: S32K311 EMIOS GPT</title>
      <link>https://community.nxp.com/t5/S32K/S32K311-EMIOS-GPT/m-p/2064580#M46965</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/199320"&gt;@_Leo_&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thank you for your support.&lt;/P&gt;&lt;P&gt;Small doubt, how to derive this&amp;nbsp;&lt;SPAN&gt;1s -&amp;gt; 120MHz (120,000,000 ticks)?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Mar 2025 09:24:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K311-EMIOS-GPT/m-p/2064580#M46965</guid>
      <dc:creator>nirmal_masilamani</dc:creator>
      <dc:date>2025-03-19T09:24:46Z</dc:date>
    </item>
  </channel>
</rss>

