<?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>LPC MicrocontrollersのトピックOperation speed of MCU is different.</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Operation-speed-of-MCU-is-different/m-p/1391894#M47486</link>
    <description>&lt;P&gt;I use Keil C V5 to upload code to MCU LPC2368. Firstly, I upload code to&amp;nbsp;MCU LPC2368(1). Then I replace MCU LPC2368(1) on board by&amp;nbsp;MCU LPC2368(2) . I upload code(the same as before) to&amp;nbsp;MCU LPC2368(2). But&amp;nbsp;MCU LPC2368(1) and&amp;nbsp;MCU LPC2368(2) are different in running. Speed of running is defferent.&lt;/P&gt;&lt;P&gt;Note:&amp;nbsp;MCU LPC2368(2) were uploaded other code before.&lt;/P&gt;&lt;P&gt;Please help me reply question below:&lt;/P&gt;&lt;P&gt;1. Code (be uploaded before) effect to speed of MCU?&lt;/P&gt;&lt;P&gt;2. When I upload new code, all setting of previous code will be erase?&lt;/P&gt;&lt;P&gt;3. Why are speed of running defferent?&lt;/P&gt;&lt;P&gt;Please help me!!&lt;/P&gt;</description>
    <pubDate>Sat, 25 Dec 2021 08:01:33 GMT</pubDate>
    <dc:creator>HungNguyenDQ</dc:creator>
    <dc:date>2021-12-25T08:01:33Z</dc:date>
    <item>
      <title>Operation speed of MCU is different.</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Operation-speed-of-MCU-is-different/m-p/1391894#M47486</link>
      <description>&lt;P&gt;I use Keil C V5 to upload code to MCU LPC2368. Firstly, I upload code to&amp;nbsp;MCU LPC2368(1). Then I replace MCU LPC2368(1) on board by&amp;nbsp;MCU LPC2368(2) . I upload code(the same as before) to&amp;nbsp;MCU LPC2368(2). But&amp;nbsp;MCU LPC2368(1) and&amp;nbsp;MCU LPC2368(2) are different in running. Speed of running is defferent.&lt;/P&gt;&lt;P&gt;Note:&amp;nbsp;MCU LPC2368(2) were uploaded other code before.&lt;/P&gt;&lt;P&gt;Please help me reply question below:&lt;/P&gt;&lt;P&gt;1. Code (be uploaded before) effect to speed of MCU?&lt;/P&gt;&lt;P&gt;2. When I upload new code, all setting of previous code will be erase?&lt;/P&gt;&lt;P&gt;3. Why are speed of running defferent?&lt;/P&gt;&lt;P&gt;Please help me!!&lt;/P&gt;</description>
      <pubDate>Sat, 25 Dec 2021 08:01:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Operation-speed-of-MCU-is-different/m-p/1391894#M47486</guid>
      <dc:creator>HungNguyenDQ</dc:creator>
      <dc:date>2021-12-25T08:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: Operation speed of MCU is different.</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Operation-speed-of-MCU-is-different/m-p/1392013#M47491</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;First of all, when you upload new application code to flash, the previous code are erased and updated with new code.&lt;/P&gt;
&lt;P&gt;Regarding your code, it appears that the delay function is ambiguous, pls try to use the following code:&lt;/P&gt;
&lt;P&gt;void msdelay(unsigned int time)&lt;BR /&gt;{&lt;BR /&gt;unsigned int i,j;&lt;BR /&gt;for(i=0; i&amp;lt;time; i++) {}&lt;BR /&gt;for(j=0;j &amp;lt;6002; j++) {}&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;void msdelay1(unsigned int time)&lt;BR /&gt;{&lt;BR /&gt;unsigned int i,j;&lt;BR /&gt;for(i=0; i&amp;lt;time; i++) &lt;BR /&gt;{&lt;BR /&gt;for(j=0;j &amp;lt;6002; j++) &lt;BR /&gt;{&lt;BR /&gt;__asm("nop");&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;do you know that MCU runs in different speed by observing the GPIO toggling in different frequency with the same code?&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;</description>
      <pubDate>Mon, 27 Dec 2021 02:32:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Operation-speed-of-MCU-is-different/m-p/1392013#M47491</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2021-12-27T02:32:56Z</dc:date>
    </item>
  </channel>
</rss>

