<?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のトピックRe: StopWatch_DelayUs function is not correct in LPC1830</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/StopWatch-DelayUs-function-is-not-correct-in-LPC1830/m-p/682072#M27433</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately I cannot to reproduce your issue. I tested using the blinky example from LPCOpen.&lt;/P&gt;&lt;P&gt;You need to consider the time that the instruction to turn/off the PIN requires, this time is not important when you use a (ms) delay, however when you use a (us) delay then this time it is significant.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the OM13076 lpcxpresso 18xx board.&lt;/P&gt;&lt;P&gt;Attached you can find my code.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Sol&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Aug 2017 22:57:34 GMT</pubDate>
    <dc:creator>soledad</dc:creator>
    <dc:date>2017-08-03T22:57:34Z</dc:date>
    <item>
      <title>StopWatch_DelayUs function is not correct in LPC1830</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/StopWatch-DelayUs-function-is-not-correct-in-LPC1830/m-p/682071#M27432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I am using&amp;nbsp;StopWatch_DelayUs API to make delay in LPC1830 MCU application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use 5us delay, but the measure is ~120us ( to use GPIO high low), it seems this API is not correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if I use the lpc_chip_18xx StopWatch_DelayMs to make "5ms" &amp;nbsp;delay. After measure confirm, it is correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/28014iE9FFC2BBCA952AB8/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why does the&amp;nbsp;&lt;SPAN&gt;StopWatch_DelayUs not work?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Does LPC1830 not support Us delay?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;BTW: my application is debug mode, should I use "release" mode? Does it improve the application&amp;nbsp;performance?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Ken&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2017 07:31:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/StopWatch-DelayUs-function-is-not-correct-in-LPC1830/m-p/682071#M27432</guid>
      <dc:creator>kensu</dc:creator>
      <dc:date>2017-07-25T07:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: StopWatch_DelayUs function is not correct in LPC1830</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/StopWatch-DelayUs-function-is-not-correct-in-LPC1830/m-p/682072#M27433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately I cannot to reproduce your issue. I tested using the blinky example from LPCOpen.&lt;/P&gt;&lt;P&gt;You need to consider the time that the instruction to turn/off the PIN requires, this time is not important when you use a (ms) delay, however when you use a (us) delay then this time it is significant.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the OM13076 lpcxpresso 18xx board.&lt;/P&gt;&lt;P&gt;Attached you can find my code.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Sol&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2017 22:57:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/StopWatch-DelayUs-function-is-not-correct-in-LPC1830/m-p/682072#M27433</guid>
      <dc:creator>soledad</dc:creator>
      <dc:date>2017-08-03T22:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: StopWatch_DelayUs function is not correct in LPC1830</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/StopWatch-DelayUs-function-is-not-correct-in-LPC1830/m-p/682073#M27434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sol&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your checking.&lt;/P&gt;&lt;P&gt;I find the cause about "us delay" problem, if I use LPC1857, it works correctly, and if I use LPC1830 it works NG.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Because the LPC1857 has internal flash and LPC1830 use external flash, I think the instruction fetch is a factor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After I put the code into SRAM or Config project to Release mode with optimize option, it works correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ken&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2017 00:41:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/StopWatch-DelayUs-function-is-not-correct-in-LPC1830/m-p/682073#M27434</guid>
      <dc:creator>kensu</dc:creator>
      <dc:date>2017-08-04T00:41:29Z</dc:date>
    </item>
  </channel>
</rss>

