<?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>i.MX ProcessorsのトピックRe: [iMX8M Nano] Using General Purpose Timer (GPT) to Count the external Signal Pulses</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/iMX8M-Nano-Using-General-Purpose-Timer-GPT-to-Count-the-external/m-p/1882308#M224618</link>
    <description>&lt;P&gt;&lt;SPAN&gt;I notice when we use &lt;/SPAN&gt;&lt;SPAN&gt;the simulated signal &lt;/SPAN&gt;&lt;SPAN&gt;generated by&lt;/SPAN&gt; &lt;SPAN&gt;another &lt;/SPAN&gt;&lt;SPAN&gt;GPIO&lt;/SPAN&gt;&lt;SPAN&gt; of IMX8 the GPT Counter can count correctly (even though the rising time 250ns same as real signal) …but it does not count the real signal.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am checking the datasheet and found below block diagram (there is Sync block with ipg_clk).&lt;/SPAN&gt; &lt;SPAN&gt;D&lt;/SPAN&gt;&lt;SPAN&gt;oes it &lt;/SPAN&gt;&lt;SPAN&gt;mean the external GPT_CLK signal &lt;/SPAN&gt;&lt;SPAN&gt;need&lt;/SPAN&gt;&lt;SPAN&gt; to synchronize with ipg_clk&lt;/SPAN&gt;&lt;SPAN&gt;?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gpt.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/282735iAA81CFFEEDA3C900/image-size/large?v=v2&amp;amp;px=999" role="button" title="gpt.png" alt="gpt.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;gpt.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 06 Jun 2024 04:10:57 GMT</pubDate>
    <dc:creator>Coeus412</dc:creator>
    <dc:date>2024-06-06T04:10:57Z</dc:date>
    <item>
      <title>[iMX8M Nano] Using General Purpose Timer (GPT) to Count the external Signal Pulses</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8M-Nano-Using-General-Purpose-Timer-GPT-to-Count-the-external/m-p/1881459#M224583</link>
      <description>&lt;H1&gt;&lt;U&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Question&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/U&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt; What is the maximum rising time of external GPT_CLOCK signal?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/H1&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H2&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;U&gt;&lt;STRONG&gt;The Problem:&lt;/STRONG&gt;&lt;/U&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/H2&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;W&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;e are using iMX8 Nano CPU…We want to use GPT TIMER to count the pulse of external signal…we configure UART3_TXD pad (D18) as GPT1_CLK function and connect our external clock to this pin.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt; We can see the GPT Counter count this signal. &lt;/SPAN&gt;&lt;SPAN class=""&gt;However,&lt;/SPAN&gt; &lt;SPAN class=""&gt;this only &lt;/SPAN&gt;&lt;SPAN class=""&gt;works&lt;/SPAN&gt;&lt;SPAN class=""&gt; with simulated signal with rising time about 50ns (see the below picture). When we inject the real signal with rising time about 250ns…the GPT does not count.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GPT Register.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/282603i1513EB60DF5FB4B6/image-size/large?v=v2&amp;amp;px=999" role="button" title="GPT Register.png" alt="GPT Register.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;GPT Register.png&lt;/span&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H2&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;I use &lt;/SPAN&gt;&lt;SPAN class=""&gt;devmem2 tool&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;to access the &lt;/SPAN&gt;&lt;SPAN class=""&gt;register&lt;/SPAN&gt;&lt;SPAN class=""&gt; directly as below:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/H2&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Set&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Custom&lt;/SPAN&gt;&lt;SPAN class=""&gt; Pin (0x30330248)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN class=""&gt; &lt;SPAN class=""&gt;as&lt;/SPAN&gt;&lt;SPAN class=""&gt; GPT1_CLOCK: 0x00000003&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Set&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Clk&lt;/SPAN&gt; &lt;SPAN class=""&gt;Select&lt;/SPAN&gt;&lt;SPAN class=""&gt; (0x303305E8)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt; to &lt;/SPAN&gt;&lt;SPAN class=""&gt;select&lt;/SPAN&gt; &lt;SPAN class=""&gt;external&lt;/SPAN&gt; &lt;SPAN class=""&gt;clock&lt;/SPAN&gt; &lt;SPAN class=""&gt;which&lt;/SPAN&gt; &lt;SPAN class=""&gt;is&lt;/SPAN&gt;&lt;SPAN class=""&gt; GPT1_CLK: 0x00000001&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Set&lt;/SPAN&gt; &lt;SPAN class=""&gt;counter&lt;/SPAN&gt; &lt;SPAN class=""&gt;mode&lt;/SPAN&gt; &lt;SPAN class=""&gt;via&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Control&lt;/SPAN&gt; &lt;SPAN class=""&gt;Reg&lt;/SPAN&gt;&lt;SPAN class=""&gt; (0x302D0000)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;: &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;0x000000C3&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Read&lt;/SPAN&gt;&lt;SPAN class=""&gt; the &lt;/SPAN&gt;&lt;SPAN class=""&gt;Counter&lt;/SPAN&gt; &lt;SPAN class=""&gt;value&lt;/SPAN&gt; &lt;SPAN class=""&gt;via&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Count&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;(0x302D0024)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H2&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Compare&lt;/SPAN&gt;&lt;SPAN class=""&gt; the &lt;/SPAN&gt;&lt;SPAN class=""&gt;two&lt;/SPAN&gt; &lt;SPAN class=""&gt;rising&lt;/SPAN&gt; &lt;SPAN class=""&gt;edges&lt;/SPAN&gt; &lt;SPAN class=""&gt;of&lt;/SPAN&gt;&lt;SPAN class=""&gt; the &lt;/SPAN&gt;&lt;SPAN class=""&gt;two&lt;/SPAN&gt; &lt;SPAN class=""&gt;signal&lt;/SPAN&gt; &lt;SPAN class=""&gt;pulses&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/H2&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;The &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;Green Line&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt; is &lt;/SPAN&gt;&lt;SPAN&gt;the simulated signal&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;The &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;Mint Blue&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt; is &lt;/SPAN&gt;&lt;SPAN&gt;the real signal&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="compare_two_risingEdge_two_signalPulses.jpg" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/282602iE233219F2957BDF5/image-size/large?v=v2&amp;amp;px=999" role="button" title="compare_two_risingEdge_two_signalPulses.jpg" alt="compare_two_risingEdge_two_signalPulses.jpg" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;compare_two_risingEdge_two_signalPulses.jpg&lt;/span&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2024 10:44:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8M-Nano-Using-General-Purpose-Timer-GPT-to-Count-the-external/m-p/1881459#M224583</guid>
      <dc:creator>Coeus412</dc:creator>
      <dc:date>2024-06-05T10:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: [iMX8M Nano] Using General Purpose Timer (GPT) to Count the external Signal Pulses</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8M-Nano-Using-General-Purpose-Timer-GPT-to-Count-the-external/m-p/1882308#M224618</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I notice when we use &lt;/SPAN&gt;&lt;SPAN&gt;the simulated signal &lt;/SPAN&gt;&lt;SPAN&gt;generated by&lt;/SPAN&gt; &lt;SPAN&gt;another &lt;/SPAN&gt;&lt;SPAN&gt;GPIO&lt;/SPAN&gt;&lt;SPAN&gt; of IMX8 the GPT Counter can count correctly (even though the rising time 250ns same as real signal) …but it does not count the real signal.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am checking the datasheet and found below block diagram (there is Sync block with ipg_clk).&lt;/SPAN&gt; &lt;SPAN&gt;D&lt;/SPAN&gt;&lt;SPAN&gt;oes it &lt;/SPAN&gt;&lt;SPAN&gt;mean the external GPT_CLK signal &lt;/SPAN&gt;&lt;SPAN&gt;need&lt;/SPAN&gt;&lt;SPAN&gt; to synchronize with ipg_clk&lt;/SPAN&gt;&lt;SPAN&gt;?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gpt.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/282735iAA81CFFEEDA3C900/image-size/large?v=v2&amp;amp;px=999" role="button" title="gpt.png" alt="gpt.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;gpt.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2024 04:10:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8M-Nano-Using-General-Purpose-Timer-GPT-to-Count-the-external/m-p/1882308#M224618</guid>
      <dc:creator>Coeus412</dc:creator>
      <dc:date>2024-06-06T04:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: [iMX8M Nano] Using General Purpose Timer (GPT) to Count the external Signal Pulses</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8M-Nano-Using-General-Purpose-Timer-GPT-to-Count-the-external/m-p/1883279#M224681</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/234577"&gt;@Coeus412&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please be sure that this condition is achaiving:&lt;/P&gt;
&lt;P&gt;The GPT counter can be operated using an external clock from outside the device, and&lt;BR /&gt;this is the input pin used for that purpose. The external clock input (GPT_CLK) is treated&lt;BR /&gt;as asynchronous to the peripheral clock (ipg_clk). To ensure proper operations of GPT,&lt;BR /&gt;the external clock input frequency should be less than 1/4 of frequency of the peripheral&lt;BR /&gt;clock (ipg_clk). Hysteresis characteristics on this pad will be required because this is a&lt;BR /&gt;clock input.&lt;/P&gt;
&lt;P&gt;(From reference manual 12.1.2.1 External Clock Input)&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Salas.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2024 04:35:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8M-Nano-Using-General-Purpose-Timer-GPT-to-Count-the-external/m-p/1883279#M224681</guid>
      <dc:creator>Manuel_Salas</dc:creator>
      <dc:date>2024-06-07T04:35:20Z</dc:date>
    </item>
  </channel>
</rss>

