<?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>8-bit MicrocontrollersのトピックTimer in MyStarNetwork Demo</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Timer-in-MyStarNetwork-Demo/m-p/176115#M12293</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Hi&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 3;"&gt;We tried to use this function: (in 13213 evk board in &lt;SPAN style="font-family: 'Times New Roman';"&gt;MyStarNetwork Demo program)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style=": ; color: #000000;"&gt;TMR_StartSingleShotTimer(mSoftTimerId_c, mWaitInterval_c, App_IntervalTimeoutHandler);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style=": ; color: #000000;"&gt;but&amp;nbsp;we&amp;nbsp;didnt see any delay after it !&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style=": ; color: #000000;"&gt;what can&amp;nbsp;we change or what&amp;nbsp;do we need to add&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style=": ; color: #000000;"&gt;thank you&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN style="color: #000000;"&gt;moti&lt;/SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;see below the code&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;LCD_ClearDisplay();&amp;nbsp;&lt;BR /&gt;&amp;nbsp; LCD_WriteString(1,"Press any key");&lt;BR /&gt;&amp;nbsp; LCD_WriteString(2,"to start.");&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN style=": ; color: #000000;"&gt;TMR_StartSingleShotTimer(mSoftTimerId_c, 4000_c, App_IntervalTimeoutHandler);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style=": ; color: #000000;"&gt;LCD_ClearDisplay();&amp;nbsp;&lt;BR /&gt;&amp;nbsp; LCD_WriteString(1,"are you");&lt;BR /&gt;&amp;nbsp; LCD_WriteString(2,"sure.");&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Jan 2008 05:15:30 GMT</pubDate>
    <dc:creator>moti</dc:creator>
    <dc:date>2008-01-03T05:15:30Z</dc:date>
    <item>
      <title>Timer in MyStarNetwork Demo</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Timer-in-MyStarNetwork-Demo/m-p/176115#M12293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Hi&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 3;"&gt;We tried to use this function: (in 13213 evk board in &lt;SPAN style="font-family: 'Times New Roman';"&gt;MyStarNetwork Demo program)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style=": ; color: #000000;"&gt;TMR_StartSingleShotTimer(mSoftTimerId_c, mWaitInterval_c, App_IntervalTimeoutHandler);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style=": ; color: #000000;"&gt;but&amp;nbsp;we&amp;nbsp;didnt see any delay after it !&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style=": ; color: #000000;"&gt;what can&amp;nbsp;we change or what&amp;nbsp;do we need to add&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style=": ; color: #000000;"&gt;thank you&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN style="color: #000000;"&gt;moti&lt;/SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;see below the code&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;LCD_ClearDisplay();&amp;nbsp;&lt;BR /&gt;&amp;nbsp; LCD_WriteString(1,"Press any key");&lt;BR /&gt;&amp;nbsp; LCD_WriteString(2,"to start.");&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN style=": ; color: #000000;"&gt;TMR_StartSingleShotTimer(mSoftTimerId_c, 4000_c, App_IntervalTimeoutHandler);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style=": ; color: #000000;"&gt;LCD_ClearDisplay();&amp;nbsp;&lt;BR /&gt;&amp;nbsp; LCD_WriteString(1,"are you");&lt;BR /&gt;&amp;nbsp; LCD_WriteString(2,"sure.");&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2008 05:15:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Timer-in-MyStarNetwork-Demo/m-p/176115#M12293</guid>
      <dc:creator>moti</dc:creator>
      <dc:date>2008-01-03T05:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: Timer in MyStarNetwork Demo</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Timer-in-MyStarNetwork-Demo/m-p/176116#M12294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Moti,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I think you are misunderstanding how the TMR_StartSIngleshotTimer() works.&lt;/DIV&gt;&lt;DIV&gt;It is not a "blocking mode" delay function.&lt;/DIV&gt;&lt;DIV&gt;It starts a timer that expires after an interval. When the timer expires the callback is called.&lt;/DIV&gt;&lt;DIV&gt;Also you should not use the Callback that is used by another timer, you should make your own - e.g.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;static tmrTimerID_t mDelayTimerId;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;void testfunction(void)&lt;/DIV&gt;&lt;DIV&gt;{&lt;/DIV&gt;&lt;DIV&gt;mDelayTimerId = TMR_AllocateTimer(); // should only be done once!!&lt;/DIV&gt;&lt;DIV&gt;LCD_ClearDisplay();&amp;nbsp;&lt;BR /&gt;&amp;nbsp; LCD_WriteString(1,"Press any key"&lt;IMG border="0" height="16" src="http://forums.freescale.com/i/smilies/16x16_smiley-wink.gif" width="16" /&gt;;&lt;BR /&gt;&amp;nbsp; LCD_WriteString(2,"to start."&lt;IMG border="0" height="16" src="http://forums.freescale.com/i/smilies/16x16_smiley-wink.gif" width="16" /&gt;;&amp;nbsp;&lt;DIV&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;FONT color="#000000"&gt;&amp;nbsp;TMR_StartSingleShotTimer(mDelayTimerId_c, 4000_c, DisplayTimeoutHandler);&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;FONT color="#000000"&gt;}&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;FONT color="#000000"&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;FONT color="#000000"&gt;void DisplayTimeoutHandler((uint8_t timerID)&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;FONT color="#000000"&gt;(void) timerID;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;FONT color="#000000"&gt;&amp;nbsp;LCD_ClearDisplay();&amp;nbsp;&lt;BR /&gt;&amp;nbsp; LCD_WriteString(1,"are you"&lt;IMG border="0" height="16" src="http://forums.freescale.com/i/smilies/16x16_smiley-wink.gif" width="16" /&gt;;&lt;BR /&gt;&amp;nbsp; LCD_WriteString(2,"sure."&lt;IMG border="0" height="16" src="http://forums.freescale.com/i/smilies/16x16_smiley-wink.gif" width="16" /&gt;;&amp;nbsp;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;}&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Look in the Beestack&amp;nbsp;Generic app for example on how the timer can be used to drive delays between different states.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;BR,&lt;/DIV&gt;&lt;DIV&gt;Mads,&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2008 16:02:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Timer-in-MyStarNetwork-Demo/m-p/176116#M12294</guid>
      <dc:creator>Mads</dc:creator>
      <dc:date>2008-01-07T16:02:37Z</dc:date>
    </item>
  </channel>
</rss>

