<?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のトピックRe: plz  explain this.. #define statement</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/plz-explain-this-define-statement-mc1321x-ZigBee/m-p/195243#M15542</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Look how the macro is used:&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;DIV class="msg_source_code"&gt;&lt;DIV class="text_smallest"&gt;&lt;BR /&gt;Code:&lt;/DIV&gt;&lt;PRE&gt;  asm {
...
             AIX    #1
             __FEED_COP_IN_HLI()      ; // it's necessary to feed the COP in the inner loop for the fast COP timeout of some derivatives
Zero_0:
             DBNZA  Zero_2
.....
  }
&lt;/PRE&gt;&lt;/DIV&gt;&lt;BR /&gt;The _FEED_COP cannot be used in a HLI, its written so that it has to be called in a C code area.&lt;BR /&gt;Therefore the&amp;nbsp; __FEED_COP_IN_HLI macro first closes the open asm { block with a single brace },&lt;BR /&gt;the&lt;BR /&gt;&amp;nbsp;__asm {&lt;BR /&gt;part at the end reopens the HLI block again.&lt;BR /&gt;&lt;BR /&gt;Note that the __FEED_COP_IN_HLI macro is defined in a C file for a particular usage,&lt;BR /&gt;for the general (C code) case, use the _FEED_COP macro.&lt;BR /&gt;&lt;BR /&gt;If you do not understand how in C a particular macro works, I would suggest to check the generated preprocessor output.&lt;BR /&gt;&lt;BR /&gt;Daniel&lt;BR /&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Oct 2020 09:50:06 GMT</pubDate>
    <dc:creator>CompilerGuru</dc:creator>
    <dc:date>2020-10-29T09:50:06Z</dc:date>
    <item>
      <title>plz  explain this.. #define statement - mc1321x  ZigBee</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/plz-explain-this-define-statement-mc1321x-ZigBee/m-p/195242#M15541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;P&gt;me a starter in embedded programming, i m trying to understand the start code for mc1321x based SRBboard, i amnot able to figure out the use of two parenthesis&lt;BR /&gt;&lt;BR /&gt;specifically this part- } _FEED_COP(); __asm {&lt;BR /&gt;&lt;BR /&gt;as in the following statement.this is from start08.c .&lt;BR /&gt;&lt;BR /&gt;----------------------------------------------!--------------------------------!&lt;BR /&gt;#define __FEED_COP_IN_HLI() } _FEED_COP(); __asm {&lt;BR /&gt;regards.. karan&lt;BR /&gt;&lt;BR /&gt;Message Edited by kanu on &lt;SPAN class="date_text"&gt;2008-10-19&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;10:37 PM&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;Message Edited by kanu on &lt;SPAN class="date_text"&gt;2008-10-19&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;10:38 PM&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;Message Edited by kanu on &lt;SPAN class="date_text"&gt;2008-10-19&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;10:41 PM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="time_text"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="time_text"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="time_text"&gt;Added p/n to subject.&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Message Edited by NLFSJ on &lt;/SPAN&gt;&lt;SPAN class="date_text"&gt;2008-10-20&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;10:31 AM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2008 04:36:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/plz-explain-this-define-statement-mc1321x-ZigBee/m-p/195242#M15541</guid>
      <dc:creator>kanu</dc:creator>
      <dc:date>2008-10-20T04:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: plz  explain this.. #define statement</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/plz-explain-this-define-statement-mc1321x-ZigBee/m-p/195243#M15542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Look how the macro is used:&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;DIV class="msg_source_code"&gt;&lt;DIV class="text_smallest"&gt;&lt;BR /&gt;Code:&lt;/DIV&gt;&lt;PRE&gt;  asm {
...
             AIX    #1
             __FEED_COP_IN_HLI()      ; // it's necessary to feed the COP in the inner loop for the fast COP timeout of some derivatives
Zero_0:
             DBNZA  Zero_2
.....
  }
&lt;/PRE&gt;&lt;/DIV&gt;&lt;BR /&gt;The _FEED_COP cannot be used in a HLI, its written so that it has to be called in a C code area.&lt;BR /&gt;Therefore the&amp;nbsp; __FEED_COP_IN_HLI macro first closes the open asm { block with a single brace },&lt;BR /&gt;the&lt;BR /&gt;&amp;nbsp;__asm {&lt;BR /&gt;part at the end reopens the HLI block again.&lt;BR /&gt;&lt;BR /&gt;Note that the __FEED_COP_IN_HLI macro is defined in a C file for a particular usage,&lt;BR /&gt;for the general (C code) case, use the _FEED_COP macro.&lt;BR /&gt;&lt;BR /&gt;If you do not understand how in C a particular macro works, I would suggest to check the generated preprocessor output.&lt;BR /&gt;&lt;BR /&gt;Daniel&lt;BR /&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 09:50:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/plz-explain-this-define-statement-mc1321x-ZigBee/m-p/195243#M15542</guid>
      <dc:creator>CompilerGuru</dc:creator>
      <dc:date>2020-10-29T09:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: plz  explain this.. #define statement</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/plz-explain-this-define-statement-mc1321x-ZigBee/m-p/195244#M15543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;i got that..&lt;BR /&gt;thanx daniel... thnxx a lot..&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;regards...&lt;BR /&gt;karan&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2008 14:32:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/plz-explain-this-define-statement-mc1321x-ZigBee/m-p/195244#M15543</guid>
      <dc:creator>kanu</dc:creator>
      <dc:date>2008-10-20T14:32:37Z</dc:date>
    </item>
  </channel>
</rss>

