<?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>topic Re: CPU cycles in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/CPU-cycles/m-p/130693#M1052</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;What do you mean with clock cycle? Do you mean bus cycles, oscillator cycles?&lt;/DIV&gt;&lt;DIV&gt;In any case, the conversion between CPU cycles and bus or oscillator cycles depends on your configuration (oscillator frequency, PPL settings, ....).&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;CrasyCat&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Sep 2006 21:22:42 GMT</pubDate>
    <dc:creator>CrasyCat</dc:creator>
    <dc:date>2006-09-20T21:22:42Z</dc:date>
    <item>
      <title>CPU cycles</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/CPU-cycles/m-p/130690#M1049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello all,&lt;/DIV&gt;&lt;DIV&gt;I am using code warrior development environment for HC08 and HC12. When debugging the applications by means of the full chip simulator I can rget a feeling of the execution time by reading the amount of "CPU cycles" needed (in the register window).&lt;/DIV&gt;&lt;DIV&gt;By the way, are the "CPU cycles" corresponding to the number of clocks required to run the application or shall I multiply the CPU cycles by a certain factor to get the number of CLOCK CYCLES?&lt;/DIV&gt;&lt;DIV&gt;If so, which are these factors for HC08, HCS08, HC12, HCS12?&lt;/DIV&gt;&lt;DIV&gt;Thank you very much...&lt;/DIV&gt;&lt;DIV&gt;Spa&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2006 15:50:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/CPU-cycles/m-p/130690#M1049</guid>
      <dc:creator>spa</dc:creator>
      <dc:date>2006-09-19T15:50:01Z</dc:date>
    </item>
    <item>
      <title>Re: CPU cycles</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/CPU-cycles/m-p/130691#M1050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;For HC12, HCS12 you can use the full chip simulator to get an idea of the execution&amp;nbsp;time for a function or a portion of a function.&lt;/DIV&gt;&lt;DIV&gt;I would do it as follows:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; - Set a breakpoint at the beginning of the function.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; - run to that function&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; - In the status bar (on the bottom of HI-WAVE window, double click on the cycle count. This will&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set the cycle count in the status bar to 0.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; - Point to the end of the function (or end of sequence you want to measure), click with right mouse button&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; and select "Run to Cursor"&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; - When application is stopped, you see the number of cycle needed to reach that instruction in the&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; status bar.&lt;/DIV&gt;&lt;DIV&gt;Number of cycle there are number of CPU Cycles.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Note that for HC08 you cannot use the status bar&lt;IMG alt=":smileysad:" class="emoticon emoticon-smileysad" id="smileysad" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-sad.gif" title="Smiley Sad" /&gt;.&lt;/DIV&gt;&lt;DIV&gt;You have to enable trace in the Trace component to get cycle counts.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;CrasyCat&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2006 20:39:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/CPU-cycles/m-p/130691#M1050</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2006-09-19T20:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: CPU cycles</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/CPU-cycles/m-p/130692#M1051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello,&lt;/DIV&gt;&lt;DIV&gt;thanks for your feedback! Do you also know how many clock cycles correspond to 1 CPU cycle for HC08, S08, RS08, HC12, HCS12?&lt;/DIV&gt;&lt;DIV&gt;Many thanks&lt;/DIV&gt;&lt;DIV&gt;Spa&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2006 21:53:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/CPU-cycles/m-p/130692#M1051</guid>
      <dc:creator>spa</dc:creator>
      <dc:date>2006-09-19T21:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: CPU cycles</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/CPU-cycles/m-p/130693#M1052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;What do you mean with clock cycle? Do you mean bus cycles, oscillator cycles?&lt;/DIV&gt;&lt;DIV&gt;In any case, the conversion between CPU cycles and bus or oscillator cycles depends on your configuration (oscillator frequency, PPL settings, ....).&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;CrasyCat&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Sep 2006 21:22:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/CPU-cycles/m-p/130693#M1052</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2006-09-20T21:22:42Z</dc:date>
    </item>
  </channel>
</rss>

