<?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: Calculating Function Time in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/Calculating-Function-Time-in-LPCXpresso-IDE/m-p/550788#M11573</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by ArneB on Mon Feb 27 10:38:55 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;It is even easier:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://"&gt;http://knowledgebase.nxp.com/showthread.php?t=395&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There are two special clock cycle registers in the Core Registers View which can be used to calculate the processing time (unfortunately only for the Cortex M3 / M4 processors...).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 02:01:08 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T02:01:08Z</dc:date>
    <item>
      <title>Calculating Function Time in LPCXpresso IDE</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Calculating-Function-Time-in-LPCXpresso-IDE/m-p/550784#M11569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by shilpa on Sun Feb 26 12:36:24 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using LPC1769 LPCXpresso board &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the link to the board is given here [&lt;/SPAN&gt;&lt;A href="http://"&gt;http://www.embeddedartists.com/products/lpcxpresso/lpc1769_xpr.php]&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;can anyone tell me hoe to calculate the function time (in cycles/second) on the LPCXpresso IDE?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks in advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:01:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Calculating-Function-Time-in-LPCXpresso-IDE/m-p/550784#M11569</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Function Time in LPCXpresso IDE</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Calculating-Function-Time-in-LPCXpresso-IDE/m-p/550785#M11570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by dima2611 on Sun Feb 26 16:17:26 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;If there are not much loops in this function, the disassembler is your firend.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:01:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Calculating-Function-Time-in-LPCXpresso-IDE/m-p/550785#M11570</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Function Time in LPCXpresso IDE</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Calculating-Function-Time-in-LPCXpresso-IDE/m-p/550786#M11571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Polux rsv on Mon Feb 27 07:00:27 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: shilpa&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;can anyone tell me hoe to calculate the function time (in cycles/second) on the LPCXpresso IDE?&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What do you try to measure? execution time? You could setup a timer and read its TC before and after the execution of your function. but remember, execution time could vary depending on the optimisation setup for the compiler.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Angelo&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:01:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Calculating-Function-Time-in-LPCXpresso-IDE/m-p/550786#M11571</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Function Time in LPCXpresso IDE</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Calculating-Function-Time-in-LPCXpresso-IDE/m-p/550787#M11572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Rob65 on Mon Feb 27 09:32:56 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Angelo is on the right track here.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;There is no way you will be able to calculate the execution time using a disassembly of the code: there are too many variables concerning memory timing, and IP access timing. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just program a timer to count CPU cycles (systick is always counting in CPU clock cycles so that might be a good source). I have described something like this for the lpc2106 some years ago ([U]&lt;/SPAN&gt;&lt;A href="http://http://myvoice.nl/electronics/timing-programs.php"&gt;link&lt;/A&gt;&lt;SPAN&gt;[/U]).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I used both the timer method and the oscilloscope/logic analyzer (setting a GPIO pin) to measure timing in my programs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Alternatively, if you use an OS like FreeRTOS, there are some ways to measure CPU load also.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]Rob&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/INDENT]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:01:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Calculating-Function-Time-in-LPCXpresso-IDE/m-p/550787#M11572</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Function Time in LPCXpresso IDE</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Calculating-Function-Time-in-LPCXpresso-IDE/m-p/550788#M11573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by ArneB on Mon Feb 27 10:38:55 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;It is even easier:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://"&gt;http://knowledgebase.nxp.com/showthread.php?t=395&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There are two special clock cycle registers in the Core Registers View which can be used to calculate the processing time (unfortunately only for the Cortex M3 / M4 processors...).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:01:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Calculating-Function-Time-in-LPCXpresso-IDE/m-p/550788#M11573</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Function Time in LPCXpresso IDE</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Calculating-Function-Time-in-LPCXpresso-IDE/m-p/550789#M11574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Rob65 on Mon Feb 27 14:56:55 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: ArneB&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;There are two special clock cycle registers in the Core Registers View.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and if I remember well these are registers can not be read by the Arm processor - they are only available to the debugger.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but indeed, if all you want to know is the amount of clock cycles that took place between two breakpoints then this is the easiest way to go.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for reminding me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rob&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:01:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Calculating-Function-Time-in-LPCXpresso-IDE/m-p/550789#M11574</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:01:08Z</dc:date>
    </item>
  </channel>
</rss>

