<?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のトピックKDS PIT Timer issue when using 3 PIT timers on K64</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KDS-PIT-Timer-issue-when-using-3-PIT-timers-on-K64/m-p/451799#M26822</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have been using PIT1 and PIT2 for a long time now and they have been working correctly (1000ms and 14ms respectively)&lt;/P&gt;&lt;P&gt;When I added a 3rd PIT timer to fire each 100us the interrupts from all 3 PIT timer doubled.&amp;nbsp; PIT1 started running at 500us and PIT3 at 50us.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a limit to the number of PIT timers one can use at the same time?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whats even stranger is that when I added a GPIO pin to toggle within the interrupt and monitored it on a scope it fired correctly.&amp;nbsp; When I comment the one line back out it goes wacky again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void PIT3_IRQHandler(void){&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NVIC_ClearPendingIRQ(PIT3_IRQn);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; usCounter++;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;//GPIOD_PTOR |= (1 &amp;lt;&amp;lt; 4);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PIT_TFLG3 = 1;&amp;nbsp;&amp;nbsp; //To reset timer set PIT_TFLG3 to 1.&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another factor to consider is that I am using SPI Slave with DMA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John Baker&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 May 2015 11:21:23 GMT</pubDate>
    <dc:creator>johnbaker</dc:creator>
    <dc:date>2015-05-21T11:21:23Z</dc:date>
    <item>
      <title>KDS PIT Timer issue when using 3 PIT timers on K64</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KDS-PIT-Timer-issue-when-using-3-PIT-timers-on-K64/m-p/451799#M26822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have been using PIT1 and PIT2 for a long time now and they have been working correctly (1000ms and 14ms respectively)&lt;/P&gt;&lt;P&gt;When I added a 3rd PIT timer to fire each 100us the interrupts from all 3 PIT timer doubled.&amp;nbsp; PIT1 started running at 500us and PIT3 at 50us.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a limit to the number of PIT timers one can use at the same time?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whats even stranger is that when I added a GPIO pin to toggle within the interrupt and monitored it on a scope it fired correctly.&amp;nbsp; When I comment the one line back out it goes wacky again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void PIT3_IRQHandler(void){&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NVIC_ClearPendingIRQ(PIT3_IRQn);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; usCounter++;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;//GPIOD_PTOR |= (1 &amp;lt;&amp;lt; 4);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PIT_TFLG3 = 1;&amp;nbsp;&amp;nbsp; //To reset timer set PIT_TFLG3 to 1.&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another factor to consider is that I am using SPI Slave with DMA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John Baker&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2015 11:21:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KDS-PIT-Timer-issue-when-using-3-PIT-timers-on-K64/m-p/451799#M26822</guid>
      <dc:creator>johnbaker</dc:creator>
      <dc:date>2015-05-21T11:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: KDS PIT Timer issue when using 3 PIT timers on K64</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KDS-PIT-Timer-issue-when-using-3-PIT-timers-on-K64/m-p/451800#M26823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use all the PITs at the same time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please specify which IDE are you using and share your configurations to reproduce the same problem please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Earl.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2015 15:42:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KDS-PIT-Timer-issue-when-using-3-PIT-timers-on-K64/m-p/451800#M26823</guid>
      <dc:creator>EarlOrlando</dc:creator>
      <dc:date>2015-05-22T15:42:16Z</dc:date>
    </item>
  </channel>
</rss>

