<?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: Need to have interrupt enabled software delay in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Need-to-have-interrupt-enabled-software-delay-ZigBee/m-p/171625#M11606</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi Amzig,&lt;/DIV&gt;&lt;DIV&gt;The delay function you have mentioned is a blocking delay. I want a non-blocking delay function.&lt;/DIV&gt;&lt;DIV&gt;I am describing the exact problem I have faced. I am using the MC1319X_XBEE target. My XBee module is supposed to receive two data packets at a time and transmit them with slight modification.But as soon as it tries to send the first received packet, it looses the 2nd packet, since there is no Collision Sense in SMAC.So, I want to put a non-blocking delay in between the two receptions.As soon as it receives the first packet, it will enter the delay state.Then, as soon as it will receive the 2nd packet, it will be interrupted in the middle of the delay and the 2nd packet will be received. So we have to Enable Interrupts within the delay function.&lt;/DIV&gt;&lt;DIV&gt;But, I have already used the delay function you&amp;nbsp;have mentioned about. It is not solving my purpose.&lt;/DIV&gt;&lt;DIV&gt;Can you help me in this regard?&lt;/DIV&gt;&lt;DIV&gt;Thanking You,&lt;/DIV&gt;&lt;DIV&gt;Mou&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Dec 2007 20:55:55 GMT</pubDate>
    <dc:creator>mou</dc:creator>
    <dc:date>2007-12-11T20:55:55Z</dc:date>
    <item>
      <title>Need to have interrupt enabled software delay - ZigBee</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Need-to-have-interrupt-enabled-software-delay-ZigBee/m-p/171623#M11604</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;Can anyone help me out in the following regard?I want to write a software delay in SMAC where the interrupts are being enabled.I have written a software delay like this:-&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class="msg_source_code"&gt;My_Delay(int c){&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; for(i=0;i&amp;lt;c;i++)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; for(j=0;j&amp;lt;c;j++);&lt;BR /&gt;}&lt;BR /&gt;&lt;/DIV&gt;&amp;nbsp;The interrupts are getting disabled while the program is executing the above delay.It cannot be enabled by forcefully enabling the interrupt (i.e. with the command &lt;STRONG&gt;EnableInterrupts in SMAC&lt;/STRONG&gt;).Can anyone suggest a way of writing a simple software delay with interrupts enabled?&lt;/DIV&gt;&lt;DIV&gt;I am in urgent need of this.&lt;/DIV&gt;&lt;DIV&gt;Best Regards,&lt;/DIV&gt;&lt;DIV&gt;Mou&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Added ZigBee to subject.&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Message Edited by NLFSJ on &lt;/SPAN&gt;&lt;SPAN class="date_text"&gt;2007-12-10&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;11:53 AM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2007 18:37:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Need-to-have-interrupt-enabled-software-delay-ZigBee/m-p/171623#M11604</guid>
      <dc:creator>mou</dc:creator>
      <dc:date>2007-12-10T18:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: Need to have interrupt enabled software delay</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Need-to-have-interrupt-enabled-software-delay-ZigBee/m-p/171624#M11605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello mou,&lt;/DIV&gt;&lt;DIV&gt;In SMAC&amp;nbsp; already there is a software interrupt enabled delay function "delay(ms)".You can find this in PER_RX&amp;nbsp;example. The files for this interrupts are timer.c , timer.h and&amp;nbsp;in smac_per_rx.c.&amp;nbsp;&lt;BR /&gt;Currently i dont&amp;nbsp;have beekit on this pc, otherwise i could send&amp;nbsp;you the whole file.&lt;/DIV&gt;&lt;DIV&gt;And hope this will work for u.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Best Regards&lt;/DIV&gt;&lt;DIV&gt;AmZig.&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2007 19:41:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Need-to-have-interrupt-enabled-software-delay-ZigBee/m-p/171624#M11605</guid>
      <dc:creator>AmZig</dc:creator>
      <dc:date>2007-12-10T19:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: Need to have interrupt enabled software delay</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Need-to-have-interrupt-enabled-software-delay-ZigBee/m-p/171625#M11606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi Amzig,&lt;/DIV&gt;&lt;DIV&gt;The delay function you have mentioned is a blocking delay. I want a non-blocking delay function.&lt;/DIV&gt;&lt;DIV&gt;I am describing the exact problem I have faced. I am using the MC1319X_XBEE target. My XBee module is supposed to receive two data packets at a time and transmit them with slight modification.But as soon as it tries to send the first received packet, it looses the 2nd packet, since there is no Collision Sense in SMAC.So, I want to put a non-blocking delay in between the two receptions.As soon as it receives the first packet, it will enter the delay state.Then, as soon as it will receive the 2nd packet, it will be interrupted in the middle of the delay and the 2nd packet will be received. So we have to Enable Interrupts within the delay function.&lt;/DIV&gt;&lt;DIV&gt;But, I have already used the delay function you&amp;nbsp;have mentioned about. It is not solving my purpose.&lt;/DIV&gt;&lt;DIV&gt;Can you help me in this regard?&lt;/DIV&gt;&lt;DIV&gt;Thanking You,&lt;/DIV&gt;&lt;DIV&gt;Mou&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2007 20:55:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Need-to-have-interrupt-enabled-software-delay-ZigBee/m-p/171625#M11606</guid>
      <dc:creator>mou</dc:creator>
      <dc:date>2007-12-11T20:55:55Z</dc:date>
    </item>
  </channel>
</rss>

