<?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: imx1170 ENET IRQHandler in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/imx1170-ENET-IRQHandler/m-p/1756624#M215662</link>
    <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/61241"&gt;@jingpan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi,jing.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;Thank you very much for your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; I&amp;nbsp;have referred to the demo in SDK.As you said, ENET_ Ptp1588IRQHandler is triggered and only&amp;nbsp; appears TS_ AVAIL or the adjustable timer reached the period event.Then&amp;nbsp;&lt;SPAN&gt;ENET_Ptp1588IRQHandler will call&amp;nbsp;TimeStampIRQHandler().&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;I know the mechanism of TCCRn and&amp;nbsp;TCSRn register.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;For example, what I want to achieve is to set a GPIO to 1 after the first comparison on a channel, then set the second comparison value, reverse the GPIO, and then set the last comparison value. If these comparison values are separated by 100000 (1588timer cycle is 10 ^ 9=1s), and the corresponding comparison interrupts are generated, where should I write these codes? TimeStampIRQHandler() is triggered every second, which cannot meet my requirements, So I should put it in ENET_Ptp1588IRQHandler() or other functions?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;Looking forward to your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; With best wishes!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 14 Nov 2023 03:30:08 GMT</pubDate>
    <dc:creator>Haha_plum</dc:creator>
    <dc:date>2023-11-14T03:30:08Z</dc:date>
    <item>
      <title>imx1170 ENET IRQHandler</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx1170-ENET-IRQHandler/m-p/1755383#M215548</link>
      <description>&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;Recently I had some problems with the ENET 1588 timer, I set the timer to output comparison mode, but I looked at the manual and found that the ENET module only has two timestamp related interrupts, Transmit Timestamp Available and Timestamp Timer, corresponding to the ENET_TimeStampIRQHandler() and ENET_ TransmitIRQHandler() in enet.c , and ENET_TimeStampIRQHandler can only enter once a second for second timing, I want to implement multiple comparisons for one channel in a second. I currently found another function ENET_Ptp1588IRQHandler(), I want to know ENET_Ptp1588IRQHandler() and ENET_ TimeStampIRQHandler() and how to achieve the above multiple output comparisons.&lt;/P&gt;&lt;P&gt;Looking forward to answers&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2023 06:28:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx1170-ENET-IRQHandler/m-p/1755383#M215548</guid>
      <dc:creator>Haha_plum</dc:creator>
      <dc:date>2023-11-10T06:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: imx1170 ENET IRQHandler</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx1170-ENET-IRQHandler/m-p/1756177#M215612</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/218884"&gt;@Haha_plum&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Have you referred to enet_txrx_ptp1588_transfer demo in SDK?&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;ENET_Ptp1588IRQHandler() and&amp;nbsp;TimeStampIRQHandler() has been enabled in&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;ENET_Ptp1588ConfigureHandler().&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV style="background-color: #ffffff; padding: 0px 0px 0px 2px;"&gt;
&lt;DIV style="color: #000000; background-color: #ffffff; font-family: 'Consolas'; font-size: 10pt; white-space: nowrap;"&gt;
&lt;P style="background-color: #e8f2fe;"&gt;&lt;SPAN&gt;ENET_EnableInterrupts(base, (ENET_TS_INTERRUPT | ENET_TX_INTERRUPT));&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;SPAN&gt;The&amp;nbsp; ENET_TS_INTERRUPT is&amp;nbsp;((uint32_t)kENET_TsTimerInterrupt | (uint32_t)kENET_TsAvailInterrupt).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;These two source will generate interrupt and call ENET_Ptp1588IRQHandler(). And&amp;nbsp;ENET_Ptp1588IRQHandler will call&amp;nbsp;TimeStampIRQHandler().&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;ENET module has 4 TCC register will has compare function.When the ENET free-running counter value matches the output compare reference value in the TCCRn register, the corresponding flag, TCSRn[TF], is set, indicating that an output compare has occurred.&amp;nbsp;The corresponding interrupt, if enabled by TCSRn[TIE], will be generated. Please see 60.3.8.6.2 in reference manual.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Jing&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2023 09:24:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx1170-ENET-IRQHandler/m-p/1756177#M215612</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2023-11-13T09:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: imx1170 ENET IRQHandler</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx1170-ENET-IRQHandler/m-p/1756624#M215662</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/61241"&gt;@jingpan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi,jing.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;Thank you very much for your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; I&amp;nbsp;have referred to the demo in SDK.As you said, ENET_ Ptp1588IRQHandler is triggered and only&amp;nbsp; appears TS_ AVAIL or the adjustable timer reached the period event.Then&amp;nbsp;&lt;SPAN&gt;ENET_Ptp1588IRQHandler will call&amp;nbsp;TimeStampIRQHandler().&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;I know the mechanism of TCCRn and&amp;nbsp;TCSRn register.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;For example, what I want to achieve is to set a GPIO to 1 after the first comparison on a channel, then set the second comparison value, reverse the GPIO, and then set the last comparison value. If these comparison values are separated by 100000 (1588timer cycle is 10 ^ 9=1s), and the corresponding comparison interrupts are generated, where should I write these codes? TimeStampIRQHandler() is triggered every second, which cannot meet my requirements, So I should put it in ENET_Ptp1588IRQHandler() or other functions?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;Looking forward to your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; With best wishes!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2023 03:30:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx1170-ENET-IRQHandler/m-p/1756624#M215662</guid>
      <dc:creator>Haha_plum</dc:creator>
      <dc:date>2023-11-14T03:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: imx1170 ENET IRQHandler</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx1170-ENET-IRQHandler/m-p/1757437#M215748</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/218884"&gt;@Haha_plum&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;You can add code in ENET_Ptp1588Handler() directly. Check&amp;nbsp;TCSRn[TF]. If it is set, it indicate&amp;nbsp;that an output compare has occurred.&lt;/P&gt;
&lt;P&gt;We haven't such sample code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Jing&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2023 08:06:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx1170-ENET-IRQHandler/m-p/1757437#M215748</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2023-11-15T08:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: imx1170 ENET IRQHandler</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx1170-ENET-IRQHandler/m-p/1757928#M215783</link>
      <description>&lt;P&gt;Hi,&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/61241"&gt;@jingpan&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I will give it a try.&lt;/P&gt;&lt;P&gt;&amp;nbsp;Thank you for your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Nov 2023 00:24:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx1170-ENET-IRQHandler/m-p/1757928#M215783</guid>
      <dc:creator>Haha_plum</dc:creator>
      <dc:date>2023-11-16T00:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: imx1170 ENET IRQHandler</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx1170-ENET-IRQHandler/m-p/1775957#M217502</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/61241"&gt;@jingpan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Hi,I'm so sorry to disturb you again after such a long time.Continuing with the previous description.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Is the interrupt corresponding to 142 in the interrupt vector table a comparison interrupt of ptp1588 timer? What does the explanation of MAC 0 1588 Timer Interrupt synchronous correspond to 142 in the interrupt vector table in the figure?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Haha_plum_0-1702867051568.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/254743iBAC4568203484A02/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Haha_plum_0-1702867051568.png" alt="Haha_plum_0-1702867051568.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2023 02:39:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx1170-ENET-IRQHandler/m-p/1775957#M217502</guid>
      <dc:creator>Haha_plum</dc:creator>
      <dc:date>2023-12-18T02:39:49Z</dc:date>
    </item>
  </channel>
</rss>

