<?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>LPCXpresso IDEのトピックRe: How to write assemble programs in IDE without loop.</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-write-assemble-programs-in-IDE-without-loop/m-p/641117#M32622</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To stop execution, set a breakpoint on the BL instruction. An alternative may be to use a WFI instruction, which will 'sleep' the processor (until an interrupt).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I think what you are trying to do is a waste of time, unless you have some very very expensive measuring&amp;nbsp; equipment - assuming your core is running at a sensible speed (25MHz, 100MHz?) then the 4 instructions you are trying to measure will execute so quickly, you will will not see anything measurable (at 100MHz, 4 instructions will take 40nS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 24 Dec 2016 08:57:41 GMT</pubDate>
    <dc:creator>converse</dc:creator>
    <dc:date>2016-12-24T08:57:41Z</dc:date>
    <item>
      <title>How to write assemble programs in IDE without loop.</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-write-assemble-programs-in-IDE-without-loop/m-p/641116#M32621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have executed following code.&lt;/P&gt;&lt;P&gt;int main(void) {&lt;BR /&gt; __asm(&lt;BR /&gt; "MOV R1,#0X00\n\r"&lt;BR /&gt; "loop: AND R1,R1,#0xFFFFFFFF\n\r"&lt;BR /&gt; " NOP\n\r"&lt;BR /&gt; " NOP\n\r"&lt;BR /&gt; "BL loop"&lt;/P&gt;&lt;P&gt;I want to execute only 04 instructions MOV AND NOP NOP. How to do this? With loop instruction, program will be executed repeatedly. I want to stop after executing 04 instructions. With this I can measure average current taken to execute these 04 instructions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Dec 2016 05:18:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-write-assemble-programs-in-IDE-without-loop/m-p/641116#M32621</guid>
      <dc:creator>v_a_kulkarni</dc:creator>
      <dc:date>2016-12-24T05:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to write assemble programs in IDE without loop.</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-write-assemble-programs-in-IDE-without-loop/m-p/641117#M32622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To stop execution, set a breakpoint on the BL instruction. An alternative may be to use a WFI instruction, which will 'sleep' the processor (until an interrupt).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I think what you are trying to do is a waste of time, unless you have some very very expensive measuring&amp;nbsp; equipment - assuming your core is running at a sensible speed (25MHz, 100MHz?) then the 4 instructions you are trying to measure will execute so quickly, you will will not see anything measurable (at 100MHz, 4 instructions will take 40nS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Dec 2016 08:57:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-write-assemble-programs-in-IDE-without-loop/m-p/641117#M32622</guid>
      <dc:creator>converse</dc:creator>
      <dc:date>2016-12-24T08:57:41Z</dc:date>
    </item>
  </channel>
</rss>

