<?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: Reseting timer interrupt by disabling and enabling. in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Reseting-timer-interrupt-by-disabling-and-enabling/m-p/559702#M33802</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to reset the timer count, but periodic interrupt would be permanently disabled after calling TI1_Disable(), even after using TI1_Enable() after that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for ex. if a periodic 8ms interrupt is scheduled to come at 8ms,16ms ,24 ms and so on. At time 27ms I wish to reset the timer so the next interrupt comes at (27+ 8 ) 35 ms. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am sharing the project here, most of the logic is in the file Task1.c. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, I am trying to find a way to share my project or send you a zipped folder but I cant find a way to do that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kaustubh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Jun 2016 17:50:45 GMT</pubDate>
    <dc:creator>kaustubhkagalka</dc:creator>
    <dc:date>2016-06-23T17:50:45Z</dc:date>
    <item>
      <title>Reseting timer interrupt by disabling and enabling.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Reseting-timer-interrupt-by-disabling-and-enabling/m-p/559700#M33800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working on MK24FN1M0VDC12 MCU, and using Timer Interrupt for 8ms periodic interrupt. I need to sync this interrupt with an external trigger. I read from the K24 Sub-Family Reference Manual pg no 1050, that, to reset the timer, enabling and disabling the interrupt is required. I am using following function calls as follows.&lt;/P&gt;&lt;P&gt;if (TI1_Disable() != ERR_OK) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; static int err1 = 0;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; err1++;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;if (TI1_Enable() != ERR_OK) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; static int err = 0;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; err++;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When these lines are executed the interrupt is completely disabled, and I never the periodic interrupt after that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jun 2016 21:21:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Reseting-timer-interrupt-by-disabling-and-enabling/m-p/559700#M33800</guid>
      <dc:creator>kaustubhkagalka</dc:creator>
      <dc:date>2016-06-22T21:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: Reseting timer interrupt by disabling and enabling.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Reseting-timer-interrupt-by-disabling-and-enabling/m-p/559701#M33801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" data-content-finding="Community" data-userid="213343" data-username="kaustubhkagalkar" href="https://community.nxp.com/people/kaustubhkagalkar"&gt;Kaustubh Kagalkar&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Do you mean that the PIT periodic interrupt would become disable after disable and reable operation? And I was wonder if you can share the whole the demo.&lt;BR /&gt;Have a great day,&lt;BR /&gt;Ping&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2016 02:57:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Reseting-timer-interrupt-by-disabling-and-enabling/m-p/559701#M33801</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2016-06-23T02:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: Reseting timer interrupt by disabling and enabling.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Reseting-timer-interrupt-by-disabling-and-enabling/m-p/559702#M33802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to reset the timer count, but periodic interrupt would be permanently disabled after calling TI1_Disable(), even after using TI1_Enable() after that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for ex. if a periodic 8ms interrupt is scheduled to come at 8ms,16ms ,24 ms and so on. At time 27ms I wish to reset the timer so the next interrupt comes at (27+ 8 ) 35 ms. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am sharing the project here, most of the logic is in the file Task1.c. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, I am trying to find a way to share my project or send you a zipped folder but I cant find a way to do that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kaustubh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2016 17:50:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Reseting-timer-interrupt-by-disabling-and-enabling/m-p/559702#M33802</guid>
      <dc:creator>kaustubhkagalka</dc:creator>
      <dc:date>2016-06-23T17:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: Reseting timer interrupt by disabling and enabling.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Reseting-timer-interrupt-by-disabling-and-enabling/m-p/559703#M33803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please ignore this sentence&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"I am sharing the project here, most of the logic is in the file Task1.c."&amp;nbsp; in&amp;nbsp; the last comment. :smileyhappy:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2016 18:04:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Reseting-timer-interrupt-by-disabling-and-enabling/m-p/559703#M33803</guid>
      <dc:creator>kaustubhkagalka</dc:creator>
      <dc:date>2016-06-23T18:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: Reseting timer interrupt by disabling and enabling.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Reseting-timer-interrupt-by-disabling-and-enabling/m-p/559704#M33804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry to be hasteful, I found a code in my bug, I was perpetually resetting the interrupt timer, and hence was not receiving the interrupt. Disabling and enabling the timer component works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your support.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2016 20:41:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Reseting-timer-interrupt-by-disabling-and-enabling/m-p/559704#M33804</guid>
      <dc:creator>kaustubhkagalka</dc:creator>
      <dc:date>2016-06-23T20:41:50Z</dc:date>
    </item>
  </channel>
</rss>

