<?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>MCUXpresso IDEのトピックRe: LPC54606 ENET MAC timestamp trigger interrupt</title>
    <link>https://community.nxp.com/t5/MCUXpresso-IDE/LPC54606-ENET-MAC-timestamp-trigger-interrupt/m-p/868814#M3680</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp; Sol&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; thanks for helping.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I go through enet.c and enet.h detailly, bug found no unswer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; is this a bug?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Apr 2019 08:39:46 GMT</pubDate>
    <dc:creator>topkinschen</dc:creator>
    <dc:date>2019-04-11T08:39:46Z</dc:date>
    <item>
      <title>LPC54606 ENET MAC timestamp trigger interrupt</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/LPC54606-ENET-MAC-timestamp-trigger-interrupt/m-p/868811#M3677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; In LPC54606 manual "&lt;SPAN class=""&gt;36.7.11.8.2 System time correction"&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN class=""&gt;To synchronize or update the system time to reduce system-time jitter (fine correction&lt;BR /&gt;method), complete the following steps:&lt;BR /&gt;1. With the help of the algorithm explained in &lt;/SPAN&gt;&lt;SPAN class="" style="color: #0000ff;"&gt;Section 36.7.8.9 “System time register&lt;BR /&gt;module”&lt;/SPAN&gt;&lt;SPAN class=""&gt;, calculate the rate by which you want to make the system time increments&lt;BR /&gt;slower or faster.&lt;BR /&gt;2. Update the MAC timestamp addend register &lt;/SPAN&gt;&lt;SPAN class="" style="color: #0000ff;"&gt;Table 813 &lt;/SPAN&gt;&lt;SPAN class=""&gt;with the new value and set bit&lt;BR /&gt;5 of the MAC timestamp control register &lt;/SPAN&gt;&lt;SPAN class="" style="color: #0000ff;"&gt;Table 806&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;BR /&gt;3. Wait for the time for which you want the new value of the addend register to be active.&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;You can do this by enabling the timestamp trigger interrupt after the system time&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;reaches the target value&lt;/EM&gt;&lt;/STRONG&gt;.&lt;BR /&gt;4. Enable the timestamp interrupt in bit 12 of MAC interrupt enable register &lt;/SPAN&gt;&lt;SPAN class="" style="color: #0000ff;"&gt;Table 789&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN class=""&gt;I don't understand "&lt;STRONG&gt;&lt;EM&gt;enabling the timestamp trigger interrupt after the system time&lt;/EM&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM&gt;reaches the target value&lt;/EM&gt;&lt;/STRONG&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;1 which reg should i set the target second and nanosecond?&amp;nbsp; i cann't find in the manual.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;2 how do I install the callback function for timestamp interrupt trigger ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp; I see in the fsl_enet.c(SDK 2.4.1) function ENET_IRQHandler, sames there is only one callback hold by "handle-&amp;gt;callback", but there are multiple interrupt events, &lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN class=""&gt;void ENET_IRQHandler(ENET_Type *base, enet_handle_t *handle)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Check for the interrupt source type. */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* DMA CHANNEL 0. */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (base-&amp;gt;DMA_INTR_STAT &amp;amp; ENET_DMA_INTR_STAT_DC0IS_MASK)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;STRONG&gt; handle-&amp;gt;callback(base, handle, kENET_RxIntEvent, 0, handle-&amp;gt;userData);&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* DMA CHANNEL 1. */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (base-&amp;gt;DMA_INTR_STAT &amp;amp; ENET_DMA_INTR_STAT_DC1IS_MASK)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;handle-&amp;gt;callback(base, handle, kENET_RxIntEvent, 1, handle-&amp;gt;userData);&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&lt;BR /&gt;#ifdef ENET_PTP1588FEATURE_REQUIRED&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* MAC TIMESTAMP. */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (base-&amp;gt;DMA_INTR_STAT &amp;amp; ENET_DMA_INTR_STAT_MACIS_MASK)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (base-&amp;gt;MAC_INTR_STAT &amp;amp; ENET_MAC_INTR_STAT_TSIS_MASK)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (handle-&amp;gt;callback)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;handle-&amp;gt;callback(base, handle, kENET_TimeStampIntEvent, 0, handle-&amp;gt;userData);&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;...&lt;BR /&gt;}&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see in ethernetif.c:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;static void enet_init(struct netif *netif, struct ethernetif *ethernetif,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; const ethernetif_config_t *ethernetifConfig)&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;/* Create the handler. */&lt;BR /&gt;#if USE_RTOS &amp;amp;&amp;amp; defined(FSL_RTOS_FREE_RTOS)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ENET_EnableInterrupts(ethernetif-&amp;gt;base, kENET_DmaTx | kENET_DmaRx);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ENET_CreateHandler(ethernetif-&amp;gt;base, &amp;amp;ethernetif-&amp;gt;handle, &amp;amp;config, &amp;amp;buffCfg[0], ethernet_callback, netif);&lt;BR /&gt;#endif&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;use "ENET_CreateHandler" to install callback for &lt;SPAN class=""&gt;timestamp interrupt trigger&lt;/SPAN&gt; event? if so , what the value of "enet_config_t *config, enet_buffer_config_t *bufferConfig" should input?&lt;/P&gt;&lt;P&gt;thanks very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Mar 2019 06:45:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/LPC54606-ENET-MAC-timestamp-trigger-interrupt/m-p/868811#M3677</guid>
      <dc:creator>topkinschen</dc:creator>
      <dc:date>2019-03-19T06:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54606 ENET MAC timestamp trigger interrupt</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/LPC54606-ENET-MAC-timestamp-trigger-interrupt/m-p/868812#M3678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;could someone help on this，thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Mar 2019 06:11:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/LPC54606-ENET-MAC-timestamp-trigger-interrupt/m-p/868812#M3678</guid>
      <dc:creator>topkinschen</dc:creator>
      <dc:date>2019-03-21T06:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54606 ENET MAC timestamp trigger interrupt</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/LPC54606-ENET-MAC-timestamp-trigger-interrupt/m-p/868813#M3679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can check the&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;MCUXpresso SDK API Reference Manual for reference.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;A href="https://mcuxpresso.nxp.com/api_doc/dev/329/group__lpc__enet.html"&gt;https://mcuxpresso.nxp.com/api_doc/dev/329/group__lpc__enet.html&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="border: 0px; font-size: 14px;"&gt;Have a nice day!&lt;/P&gt;&lt;P style="border: 0px; font-size: 14px;"&gt;Sol&lt;/P&gt;&lt;P style="border: 0px; font-size: 14px;"&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P style="border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="border: 0px; font-size: 14px;"&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Apr 2019 18:57:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/LPC54606-ENET-MAC-timestamp-trigger-interrupt/m-p/868813#M3679</guid>
      <dc:creator>soledad</dc:creator>
      <dc:date>2019-04-02T18:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54606 ENET MAC timestamp trigger interrupt</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/LPC54606-ENET-MAC-timestamp-trigger-interrupt/m-p/868814#M3680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp; Sol&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; thanks for helping.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I go through enet.c and enet.h detailly, bug found no unswer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; is this a bug?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Apr 2019 08:39:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/LPC54606-ENET-MAC-timestamp-trigger-interrupt/m-p/868814#M3680</guid>
      <dc:creator>topkinschen</dc:creator>
      <dc:date>2019-04-11T08:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54606 ENET MAC timestamp trigger interrupt</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/LPC54606-ENET-MAC-timestamp-trigger-interrupt/m-p/868815#M3681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The bit&amp;nbsp;TSTRIG in the&amp;nbsp;MAC timestamp control register&amp;nbsp; Enable timestamp interrupt trigger.&lt;/P&gt;&lt;P&gt;the bit&amp;nbsp;TSUPDT in the same register&amp;nbsp;Update timestamp.&amp;nbsp;When this bit is set, the system time is updated (added or subtracted) with the value specified in MAC system time seconds update Table 809 and MAC system time nanoseconds update Table 810. This bit should be zero before updating it. This bit is reset when the update is complete in hardware. The timestamp higher word register (if enabled during core configuration) is not updated. Access restriction applies. Setting 1 sets. Self-cleared. Setting 0 has no effect.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/80948i4C94195A21EB92A2/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The lpc54608.h file contains the definitions for the&amp;nbsp;Time stamp control register.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/80950i616DD46DC8524C05/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&amp;nbsp;&lt;/P&gt;&lt;P&gt;Soledad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2019 16:41:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/LPC54606-ENET-MAC-timestamp-trigger-interrupt/m-p/868815#M3681</guid>
      <dc:creator>soledad</dc:creator>
      <dc:date>2019-04-25T16:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54606 ENET MAC timestamp trigger interrupt</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/LPC54606-ENET-MAC-timestamp-trigger-interrupt/m-p/868816#M3682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Soledad&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thanks helping.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; There are 2 method described in LPC54606 manual "&lt;SPAN class=""&gt;36.7.11.8.2 System time correction", " &lt;SPAN class=""&gt;coarse correction method&lt;/SPAN&gt; " and " &lt;SPAN class=""&gt;fine correction method&lt;/SPAN&gt; ", your reply explains " coarse correction method ", I asked " fine correction method ".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I just do't understand the flow described in the manual.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; thanks again.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Apr 2019 06:54:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/LPC54606-ENET-MAC-timestamp-trigger-interrupt/m-p/868816#M3682</guid>
      <dc:creator>topkinschen</dc:creator>
      <dc:date>2019-04-26T06:54:55Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54606 ENET MAC timestamp trigger interrupt</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/LPC54606-ENET-MAC-timestamp-trigger-interrupt/m-p/868817#M3683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry for the delay.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the fine correction method, a slave clock’s frequency drift with respect to the master clock (as defined in IEEE 1588) is corrected over a period of time instead of in one clock, as in coarse correction. This helps maintain linear time and does not introduce drastic changes (or a large jitter) in the reference time between PTP sync message intervals. In this method, an accumulator sums up the contents of the addend register. The arithmetic carry that the accumulator generates is used as a pulse to increment the system time counter. The accumulator and the addend are 32-bit registers. Here, the accumulator acts as a high-precision frequency multiplier or divider.&lt;/P&gt;&lt;P&gt;The system time update logic requires a 50 MHz clock frequency to achieve 20 ns accuracy. The frequency division is the ratio of the reference clock frequency to the required clock frequency. Hence, if the reference clock is, for example, 66 MHz, this ratio is calculated as 66 MHz / 50 MHz = 1.32. Hence, the default addend value to be set in the register is 232 / 1.32, 0xC1F07C1F. If the reference clock drifts lower, to 65 MHz for example, the ratio is 65 / 50, or 1.3 and the value to set in the addend register is 232 / 1.30, or 0xC4EC4EC4. If the clock drifts higher, to 67 MHz for example, the addend register must be set to 0xBF0B 7672. When the clock drift is nil, the default addend value of 0xC1F0 7C1F (232 / 1.32) must be programmed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Have a nice day!&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Sol&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jun 2019 15:08:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/LPC54606-ENET-MAC-timestamp-trigger-interrupt/m-p/868817#M3683</guid>
      <dc:creator>soledad</dc:creator>
      <dc:date>2019-06-20T15:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54606 ENET MAC timestamp trigger interrupt</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/LPC54606-ENET-MAC-timestamp-trigger-interrupt/m-p/1703675#M9128</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I try to find the same registers (registers to set time to trig an interrupt TSTRIG bit of MAC_TIMESTAMP_CTRL).&lt;/P&gt;&lt;P&gt;I follow documentation, but find nothing.&lt;/P&gt;&lt;P&gt;LPC54s018&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any advice will be welcome&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2023 17:02:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/LPC54606-ENET-MAC-timestamp-trigger-interrupt/m-p/1703675#M9128</guid>
      <dc:creator>ppardo</dc:creator>
      <dc:date>2023-08-11T17:02:27Z</dc:date>
    </item>
  </channel>
</rss>

