<?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 a delay() or sleep() function on MC56F8037 in Classic/Legacy CodeWarrior</title>
    <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/a-delay-or-sleep-function-on-MC56F8037/m-p/174253#M3635</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm workin' on MC56F8037 and i need to stop excutiing my code for 30 µs each time on my "while", so i need to call some sleep function (or delay) to do that. It's coz i have an LCD..&lt;/P&gt;&lt;P&gt;well, the problem is that there is no lib or a header file containing such a function :/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so, i need your help people to tell me what to do, specially that i am a beginner :/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(version 5.6.1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks a lot !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Apr 2009 22:56:31 GMT</pubDate>
    <dc:creator>GraphConfigTool</dc:creator>
    <dc:date>2009-04-21T22:56:31Z</dc:date>
    <item>
      <title>a delay() or sleep() function on MC56F8037</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/a-delay-or-sleep-function-on-MC56F8037/m-p/174253#M3635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm workin' on MC56F8037 and i need to stop excutiing my code for 30 µs each time on my "while", so i need to call some sleep function (or delay) to do that. It's coz i have an LCD..&lt;/P&gt;&lt;P&gt;well, the problem is that there is no lib or a header file containing such a function :/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so, i need your help people to tell me what to do, specially that i am a beginner :/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(version 5.6.1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks a lot !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2009 22:56:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/a-delay-or-sleep-function-on-MC56F8037/m-p/174253#M3635</guid>
      <dc:creator>GraphConfigTool</dc:creator>
      <dc:date>2009-04-21T22:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: a delay() or sleep() function on MC56F8037</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/a-delay-or-sleep-function-on-MC56F8037/m-p/174254#M3636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Delay and sleep are not Ansi.&lt;/P&gt;&lt;P&gt;The libraries don't include them.&lt;/P&gt;&lt;P&gt;Processor Expert includes this function:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;A target="_blank"&gt;&lt;/A&gt;&lt;STRONG&gt;Delay100US&lt;/STRONG&gt; - This method realizes software delay. The length of delay is at least 100 microsecond multiply input parameter &lt;STRONG&gt;us100&lt;/STRONG&gt;. As the delay implementation is not based on real clock, the delay time may be increased by interrupt service routines processed during the delay. Adding read wait states for external program memory can cause delay extension as well. The method is independent on selected speed mode.&lt;/P&gt;&lt;UL&gt;&lt;LI style="list-style: none"&gt;&lt;BR /&gt;&lt;EM&gt;ANSIC prototype:&lt;/EM&gt; asm void Delay100US(word us100)&lt;BR /&gt;&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;us100:word&lt;/EM&gt; - Number of 100 us delay repetitions.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Without Processor Expert you must use nop instruction in a loop.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pascal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2009 11:53:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/a-delay-or-sleep-function-on-MC56F8037/m-p/174254#M3636</guid>
      <dc:creator>trytohelp</dc:creator>
      <dc:date>2009-04-22T11:53:48Z</dc:date>
    </item>
  </channel>
</rss>

