<?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>Kinetis MicrocontrollersのトピックRe: estimating program execution time</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/estimating-program-execution-time/m-p/887583#M52497</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kerry,&lt;/P&gt;&lt;P&gt;Thank you for your prompt feedback... and for the reference code. I'll follow your advice and write a short test program applying&amp;nbsp;your systick based method to measure the execution time on my platform.&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Tibor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Apr 2019 08:44:16 GMT</pubDate>
    <dc:creator>tiborsomogyi</dc:creator>
    <dc:date>2019-04-09T08:44:16Z</dc:date>
    <item>
      <title>estimating program execution time</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/estimating-program-execution-time/m-p/887581#M52495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This question is about the MK60FN1M0VLQ12 MCU: I&amp;nbsp;feed mine&amp;nbsp;with an external 24 MHz oscillator and clock settings are as follows: Core Clock = 96 MHz, Bus Clock = 48 MHz, Flash Clock = 24 MHz. No external memories are used, all code is executed from the Flash.&lt;/P&gt;&lt;P&gt;Shortly speaking I would like to be able to get some ideas about the program execution time under these conditions.&lt;/P&gt;&lt;P&gt;The reason for this is that I am using an external NAND Flash Array, interfaced via the MCU's NAND Flash controller... but as I can have up to 8 NAND Flash chips in my array, I use GPIO signals as chip selects.&lt;/P&gt;&lt;P&gt;Setting the GPIO pins to the desired state takes 3 assembly instructions, e.g.:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;ldr&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;r3, [pc,#56]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;;&amp;nbsp; 2 clock cycles execution time&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;mov.w&amp;nbsp;&amp;nbsp;&amp;nbsp;r2, #256&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&amp;nbsp; 1 clock cycle&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;str&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;r2, [r3, #44]&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;;&amp;nbsp; 2 clock cyles&lt;/P&gt;&lt;P&gt;well, the very first question here is which clock we are talking about ? Is it the Core Clock ? ... probably ... on the other hand if it is the Core Clock, what is the meaning of the Flash Clock ? And finally the real question: how much time the execution of these three instructions will take, if all the code is in the Flash ? More generally, how can I estimate the program execution time of this MCU under these conditions ? Is there any document describing the timing ?&lt;/P&gt;&lt;P&gt;( I understand that with pipelines and caches it is not obvious to estimate the exact execution time... which I hope is that there is a way to - relatively easily - determine a minimum / maximum range... in fact, behind my GPIO pins there is an address decoding circuit, and I would like to know which is the maximum propagation delay for this decoding stuff for that the coming operation targeting a NAND Flash chip would not come too early, when the Chip Select signal is not yet active. )&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;SOMOGYI Tibor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Apr 2019 16:51:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/estimating-program-execution-time/m-p/887581#M52495</guid>
      <dc:creator>tiborsomogyi</dc:creator>
      <dc:date>2019-04-08T16:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: estimating program execution time</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/estimating-program-execution-time/m-p/887582#M52496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi SOMOGYI Tibor,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Thank you for your interest in NXP Kinetis product, I would like to provide service for you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; The code execute time is the core clock, not the flash clock.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; The flash clock is used to clock the flash memory, it is not the code execute time, just the flash module operation clock.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; So, if you want to test your asm code, you need to use the core clock to calculate it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; About the detail execute time, I recommend you use the systick to test it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Actually, in our KL25 sample code, it has the method for your reference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Please check my attached some code for your reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;&amp;nbsp; If you still have question about it, please kindly let me know.&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2019 03:17:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/estimating-program-execution-time/m-p/887582#M52496</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2019-04-09T03:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: estimating program execution time</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/estimating-program-execution-time/m-p/887583#M52497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kerry,&lt;/P&gt;&lt;P&gt;Thank you for your prompt feedback... and for the reference code. I'll follow your advice and write a short test program applying&amp;nbsp;your systick based method to measure the execution time on my platform.&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Tibor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2019 08:44:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/estimating-program-execution-time/m-p/887583#M52497</guid>
      <dc:creator>tiborsomogyi</dc:creator>
      <dc:date>2019-04-09T08:44:16Z</dc:date>
    </item>
  </channel>
</rss>

