<?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>Kinetis MicrocontrollersのトピックRe: FRDM-K64F PIT on different Rev boards</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K64F-PIT-on-different-Rev-boards/m-p/2415061#M68513</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/460"&gt;@ve3id&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your post!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please review if the errata e7914 applies for your MCU:&amp;nbsp;&lt;A href="https://www.nxp.com/docs/en/errata/Kinetis_K_1N83J.pdf" target="_blank"&gt;Kinetis_K_1N83J.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I've tested it in FRDM-K64F REV F1 and it works, I used SDK 2.11.0 and MCUXpresso IDE 25.06.&lt;/P&gt;
&lt;P&gt;Also, I notice that in the code you share the "PIT-&amp;gt;MCR = 0x1;" is included as a comment in the enablement of the SCGC6, I only want to confirm if that is a typo in the post&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 21 Sep 2026 22:34:29 GMT</pubDate>
    <dc:creator>carlos_o</dc:creator>
    <dc:date>2026-09-21T22:34:29Z</dc:date>
    <item>
      <title>FRDM-K64F PIT on different Rev boards</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K64F-PIT-on-different-Rev-boards/m-p/2415032#M68512</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am experimenting with radio networking using six FRDM-K64F boards equipped with nrf23l01 transceivers.&lt;/P&gt;&lt;P&gt;I am splitting a second into ten time slots, the idea being that a transmission in slot 1 gets repeated in time slot 2, time slot 2 into time slot 3 etc for relaying.&lt;/P&gt;&lt;P&gt;So I am using PIT to generate interrupts at 100 ms periods, which I have checked on a scope.&lt;/P&gt;&lt;P&gt;On three boards, rev C,F, and F this is working fine and I am seeing the data on air being repeated.&amp;nbsp; However with the three rev F1 boards my transmit routine gets hung waiting for time slot 1 to come around. I am not getting the interrupt!&lt;/P&gt;&lt;P&gt;Does anybody know what changed between, say rev F and Rev F1 that would cause this behaviour?&lt;/P&gt;&lt;P&gt;Here is my init routine:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;SIM-&amp;gt;SCGC6 |= SIM_SCGC6_PIT_MASK; // Turn on clock to to the PIT &lt;/SPAN&gt;&lt;SPAN&gt;PIT&lt;/SPAN&gt;&lt;SPAN&gt;-&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;MCR&lt;/SPAN&gt;&lt;SPAN&gt; = 0x1; &lt;/SPAN&gt;&lt;SPAN&gt;// Enable PIT timers&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;PIT&lt;/SPAN&gt;&lt;SPAN&gt;-&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;CHANNEL&lt;/SPAN&gt;&lt;SPAN&gt;[0].&lt;/SPAN&gt;&lt;SPAN&gt;LDVAL&lt;/SPAN&gt;&lt;SPAN&gt; = 5999999; &lt;/SPAN&gt;&lt;SPAN&gt;// Set reload value to 100mS&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;PIT&lt;/SPAN&gt;&lt;SPAN&gt;-&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;CHANNEL&lt;/SPAN&gt;&lt;SPAN&gt;[0].&lt;/SPAN&gt;&lt;SPAN&gt;TCTRL&lt;/SPAN&gt;&lt;SPAN&gt; = 0x03; &lt;/SPAN&gt;&lt;SPAN&gt;// Turn PIT timer 0 on, interrupts on&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;and in main:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;NVIC_EnableIRQ(PIT0_IRQn); // Enable PI timer, ch 0 interrupt&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and the ISR:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;void&lt;/SPAN&gt; &lt;SPAN&gt;PIT0_IRQHandler&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;void&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;/* Clear interrupt flag */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;PIT-&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;CHANNEL&lt;/SPAN&gt;&lt;SPAN&gt;[0].&lt;/SPAN&gt;&lt;SPAN&gt;TFLG&lt;/SPAN&gt;&lt;SPAN&gt; = PIT_TFLG_TIF_MASK;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;NVIC_ClearPendingIRQ(&lt;/SPAN&gt;&lt;SPAN&gt;PIT0_IRQn&lt;/SPAN&gt;&lt;SPAN&gt;); &lt;/SPAN&gt;&lt;SPAN&gt;// Clear pending PI timer, &lt;/SPAN&gt;&lt;SPAN&gt;ch&lt;/SPAN&gt;&lt;SPAN&gt; 0 interrupt&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;//scope_trigger();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;time_slot +=1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt; (time_slot &amp;gt;10) time_slot=0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;__DSB(); &lt;/SPAN&gt;&lt;SPAN&gt;// Add for ARM &lt;/SPAN&gt;&lt;SPAN&gt;errata&lt;/SPAN&gt;&lt;SPAN&gt; 838869, affects Cortex-M4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;any help appreciated!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;cheers&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;nigel&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 21 Sep 2026 17:27:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K64F-PIT-on-different-Rev-boards/m-p/2415032#M68512</guid>
      <dc:creator>ve3id</dc:creator>
      <dc:date>2026-09-21T17:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-K64F PIT on different Rev boards</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K64F-PIT-on-different-Rev-boards/m-p/2415061#M68513</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/460"&gt;@ve3id&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your post!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please review if the errata e7914 applies for your MCU:&amp;nbsp;&lt;A href="https://www.nxp.com/docs/en/errata/Kinetis_K_1N83J.pdf" target="_blank"&gt;Kinetis_K_1N83J.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I've tested it in FRDM-K64F REV F1 and it works, I used SDK 2.11.0 and MCUXpresso IDE 25.06.&lt;/P&gt;
&lt;P&gt;Also, I notice that in the code you share the "PIT-&amp;gt;MCR = 0x1;" is included as a comment in the enablement of the SCGC6, I only want to confirm if that is a typo in the post&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2026 22:34:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K64F-PIT-on-different-Rev-boards/m-p/2415061#M68513</guid>
      <dc:creator>carlos_o</dc:creator>
      <dc:date>2026-09-21T22:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-K64F PIT on different Rev boards</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K64F-PIT-on-different-Rev-boards/m-p/2415065#M68514</link>
      <description>&lt;P&gt;Aha! Thanks for that. Yes I have that mask on all three chips. I'm surprised that your AI engine that I have found very useful so far did not bring that up! Is there a suggested work-around? A delay or nops maybe? And yes, the&amp;nbsp;&lt;SPAN&gt;PIT-&amp;gt;MCR = 0x1; should be on a separate line, the &amp;lt;cr&amp;gt;&amp;lt;lf&amp;gt;&amp;nbsp; must have have slipped out during cut and paste.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2026 23:09:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K64F-PIT-on-different-Rev-boards/m-p/2415065#M68514</guid>
      <dc:creator>ve3id</dc:creator>
      <dc:date>2026-09-21T23:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-K64F PIT on different Rev boards</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K64F-PIT-on-different-Rev-boards/m-p/2415340#M68515</link>
      <description>I've changed my init code to this and still have the same problem:&lt;BR /&gt;delay(10);&lt;BR /&gt;volatile uint32_t PIT_MCR_read = PIT-&amp;gt;MCR; // to overcome problem in 1N83J mask set errata 2026-09-22 NWJ&lt;BR /&gt;PIT-&amp;gt;MCR = 0x1; // Enable PIT timers&lt;BR /&gt;PIT-&amp;gt;CHANNEL[0].LDVAL = 5999999; // Set reload value to 100mS&lt;BR /&gt;PIT-&amp;gt;CHANNEL[0].TCTRL = 0x03; // Turn PIT timer 0 on, interrupts on&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 22 Sep 2026 12:34:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K64F-PIT-on-different-Rev-boards/m-p/2415340#M68515</guid>
      <dc:creator>ve3id</dc:creator>
      <dc:date>2026-09-22T12:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-K64F PIT on different Rev boards</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K64F-PIT-on-different-Rev-boards/m-p/2415341#M68516</link>
      <description>I even changed the delay to 100 us and still no PIT action</description>
      <pubDate>Tue, 22 Sep 2026 12:37:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K64F-PIT-on-different-Rev-boards/m-p/2415341#M68516</guid>
      <dc:creator>ve3id</dc:creator>
      <dc:date>2026-09-22T12:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-K64F PIT on different Rev boards</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K64F-PIT-on-different-Rev-boards/m-p/2415416#M68517</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/460"&gt;@ve3id&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The workaround mentioned with the errata is to put a read of the PIT_MCR register before writing it.&lt;/P&gt;
&lt;P&gt;I use the PIT example of the SDK as base to test what you are doing in a FRDM board REV F1, I modified as following&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="carlos_o_0-1790096350978.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/396703i8AFE49F296FDC5BD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="carlos_o_0-1790096350978.png" alt="carlos_o_0-1790096350978.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;It works without issues.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Sep 2026 17:02:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K64F-PIT-on-different-Rev-boards/m-p/2415416#M68517</guid>
      <dc:creator>carlos_o</dc:creator>
      <dc:date>2026-09-22T17:02:10Z</dc:date>
    </item>
  </channel>
</rss>

