<?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>MQX Software SolutionsのトピックRe: LWtimer not working properly</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/LWtimer-not-working-properly/m-p/573424#M16558</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunil:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just add to David's comments, I recommend a document about using the MQX timers. please see attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Aug 2016 07:10:12 GMT</pubDate>
    <dc:creator>danielchen</dc:creator>
    <dc:date>2016-08-08T07:10:12Z</dc:date>
    <item>
      <title>LWtimer not working properly</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/LWtimer-not-working-properly/m-p/573422#M16556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I am trying to get periodic timer interrupts for specific time interval(1s) .It is found that number of ticks per second is 200.I have created the timer in the following way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="; color: #642880; font-size: 10pt;"&gt;&lt;STRONG&gt;_lwtimer_create_periodic_queue&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&amp;amp;off_timerPeriodQueue, OffTime+1, 0 ); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="; color: #642880; font-size: 10pt;"&gt;&lt;STRONG&gt;_lwtimer_add_timer_to_queue&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;( &amp;amp;off_timerPeriodQueue, &amp;amp;off_timer, OffTime, off_timer_isr, NULL ); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;So accordingly if I give value of Offtime as 200,it should call the ISR after I sec,am I right?But I am not getting the callback.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Can anybody give any suggestions?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;----------------------------------------------------------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I tried with only one task.. At that time it is accurately working(when I give 200 it waits for 1 sec, when I give 400,it waits for 2 sec..)...When the number of tasks are getting increased, it is not working properly...So can anybody suggest any idea to work the timer precisely if program is having 3-4 tasks?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;thanks in advance&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;sunil&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2016 08:40:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/LWtimer-not-working-properly/m-p/573422#M16556</guid>
      <dc:creator>sunilvasudevan</dc:creator>
      <dc:date>2016-08-05T08:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: LWtimer not working properly</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/LWtimer-not-working-properly/m-p/573423#M16557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunil,&lt;/P&gt;&lt;P&gt;I recommend looking at following example for your application needs:&lt;/P&gt;&lt;P&gt;C:\Freescale\Freescale_MQX_4_2\mqx\examples\timer &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;P&gt;PS&lt;/P&gt;&lt;P&gt;Sorry to not have time to look at your specific question in detail (heading out for 2 week vacation) but with multiple tasks please make sure their priorities are preventing the 1 second callback from working.&amp;nbsp; Another quick idea is to raise the priority level of that 1 second task to be higher than other tasks.&amp;nbsp; But I still think the "timer" example above might be better solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2016 17:45:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/LWtimer-not-working-properly/m-p/573423#M16557</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2016-08-05T17:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: LWtimer not working properly</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/LWtimer-not-working-properly/m-p/573424#M16558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunil:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just add to David's comments, I recommend a document about using the MQX timers. please see attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2016 07:10:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/LWtimer-not-working-properly/m-p/573424#M16558</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2016-08-08T07:10:12Z</dc:date>
    </item>
  </channel>
</rss>

