<?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: Two GPT captures</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Two-GPT-captures/m-p/1386983#M184451</link>
    <description>&lt;P&gt;Hi Adde&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;gt;I'm not sure how definition shall look like for second capture! &lt;BR /&gt;&amp;gt;This is how it looks like now. Not sure if this is correct. &lt;BR /&gt;&amp;gt;#define RF_GPT_IRQn GPT2_IRQn&lt;BR /&gt;&amp;gt;#define RF_GPT_BASE GPT2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;for GPT2 CAPTURE signals are not routed externally as described in sect.8.1.1.1 Muxing Options&lt;/P&gt;
&lt;P&gt;&lt;A id="relatedDocsClick_3" href="https://www.nxp.com/webapp/Download?colCode=IMX8MDQLQRM" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;i.MX 8M Dual/8M QuadLite/8M Quad Applications Processors Reference Manual&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;So such capture functionality is possible only with GPT1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;</description>
    <pubDate>Wed, 15 Dec 2021 06:34:06 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2021-12-15T06:34:06Z</dc:date>
    <item>
      <title>Two GPT captures</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Two-GPT-captures/m-p/1384376#M184208</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm using GPT to capture data from two different ICs.&lt;/P&gt;&lt;P&gt;The pins that I'm using are:&lt;/P&gt;&lt;P&gt;IOMUXC_SAI3_RXFS_GPT1_CAPTURE1 and&amp;nbsp;IOMUXC_SAI3_TXFS_GPT1_CAPTURE2&lt;/P&gt;&lt;P&gt;The first one capturing (IOMUXC_SAI3_RXFS_GPT1_CAPTURE1) is working fine but the second one (IOMUXC_SAI3_TXFS_GPT1_CAPTURE2) is NOT (not getting any irq).&lt;/P&gt;&lt;P&gt;I have check with oscilloscope and the data is coming at&amp;nbsp;IOMUXC_SAI3_TXFS_GPT1_CAPTURE2.&lt;/P&gt;&lt;P&gt;These are mine definition for firs capture that works fine:&lt;/P&gt;&lt;P&gt;#define EM_GPT_IRQn GPT1_IRQn&lt;BR /&gt;#define EM_GPT_BASE GPT1&lt;BR /&gt;/* GPT channel used for input capture */&lt;BR /&gt;#define EM_BOARD_GPT_INPUT_CAPTURE_CHANNEL kGPT_InputCapture_Channel1&lt;BR /&gt;/* Interrupt to enable and flag to read; depends on the GPT channel used */&lt;BR /&gt;#define EM_GPT_CAPTURE_IRQHandler GPT1_IRQHandler&lt;BR /&gt;#define EM_BOARD_GPT_CHANNEL_INTERRUPT_ENABLE kGPT_InputCapture1InterruptEnable&lt;BR /&gt;#define EM_BOARD_GPT_CHANNEL_FLAG kGPT_InputCapture1Flag&lt;/P&gt;&lt;P&gt;I'm not sure how definition shall look like for second capture!&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is how it looks like now. Not sure if this is correct.&amp;nbsp;&lt;/P&gt;&lt;P&gt;#define RF_GPT_IRQn GPT2_IRQn&lt;BR /&gt;#define RF_GPT_BASE GPT2&lt;BR /&gt;/* GPT channel used for input capture */&lt;BR /&gt;#define RF_BOARD_GPT_INPUT_CAPTURE_CHANNEL kGPT_InputCapture_Channel1&lt;BR /&gt;/* Interrupt to enable and flag to read; depends on the GPT channel used */&lt;BR /&gt;#define RF_GPT_CAPTURE_IRQHandler GPT2_IRQHandler&lt;BR /&gt;#define RF_BOARD_GPT_CHANNEL_INTERRUPT_ENABLE kGPT_InputCapture1InterruptEnable&lt;BR /&gt;#define RF_BOARD_GPT_CHANNEL_FLAG kGPT_InputCapture1Flag&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any example that shows how to use 2 captures or how to configure GPT for "SAI3_TXFS_&lt;SPAN&gt;GPT1_CAPTURE2&lt;/SPAN&gt;"?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope someone can help me with this.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Adde&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Dec 2021 08:38:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Two-GPT-captures/m-p/1384376#M184208</guid>
      <dc:creator>adde_ado</dc:creator>
      <dc:date>2021-12-10T08:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: Two GPT captures</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Two-GPT-captures/m-p/1386983#M184451</link>
      <description>&lt;P&gt;Hi Adde&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;gt;I'm not sure how definition shall look like for second capture! &lt;BR /&gt;&amp;gt;This is how it looks like now. Not sure if this is correct. &lt;BR /&gt;&amp;gt;#define RF_GPT_IRQn GPT2_IRQn&lt;BR /&gt;&amp;gt;#define RF_GPT_BASE GPT2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;for GPT2 CAPTURE signals are not routed externally as described in sect.8.1.1.1 Muxing Options&lt;/P&gt;
&lt;P&gt;&lt;A id="relatedDocsClick_3" href="https://www.nxp.com/webapp/Download?colCode=IMX8MDQLQRM" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;i.MX 8M Dual/8M QuadLite/8M Quad Applications Processors Reference Manual&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;So such capture functionality is possible only with GPT1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;</description>
      <pubDate>Wed, 15 Dec 2021 06:34:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Two-GPT-captures/m-p/1386983#M184451</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2021-12-15T06:34:06Z</dc:date>
    </item>
  </channel>
</rss>

