<?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>8-bit Microcontrollers中的主题 Re: CPU cycles vs. Instruction cycles vs. BUS cycles vs. Oscillator cycles</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/CPU-cycles-vs-Instruction-cycles-vs-BUS-cycles-vs-Oscillator/m-p/131028#M2631</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;OK, that's what I thought, although the diagram shows the line going directly from the ICG to the CPU block, which made me think that the CPU block was operating on 4 MHz.&amp;nbsp; I guess it might actually be, but it might operate internally such that it essentially divides by 2 as it executes instructions.&amp;nbsp; Having done micro-code for a bit-slice micro before, I know how that works.&amp;nbsp; Anyway, I appreciate your response.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Grazie!&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Apr 2007 03:03:29 GMT</pubDate>
    <dc:creator>Luigi</dc:creator>
    <dc:date>2007-04-19T03:03:29Z</dc:date>
    <item>
      <title>CPU cycles vs. Instruction cycles vs. BUS cycles vs. Oscillator cycles</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/CPU-cycles-vs-Instruction-cycles-vs-BUS-cycles-vs-Oscillator/m-p/131024#M2627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;I am migrating from another micro to the HCS08AW32 processor and I wanted to be sure I know how the clocks work.&amp;nbsp; From what I gather in the manual, if I have an external 4 MHz resonator, and my ICGC2 register is set to divide by 1, I think I have IGCOUT of 4 MHz, right?&amp;nbsp; The block diagram shows that connecting directly to the CPU block, so can I assume that instructions are running with an instruction cycle time of 250 nS (i.e. 4 MHz)?&amp;nbsp; Or is the 4 MHz divided down such that a CPU cycle is more than one oscillator cycle?&amp;nbsp; My CodeWarrior debugger shows what I think is BUSCLK cycles which is IGCOUT/2 or 2 MHz.&amp;nbsp; But it looks like BUSCLK is used by internal peripherals like the TPM, so I am not sure what the speed of a CPU cycle is.&amp;nbsp; Can someone get me straight on this?&amp;nbsp; Thanks&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2007 00:02:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/CPU-cycles-vs-Instruction-cycles-vs-BUS-cycles-vs-Oscillator/m-p/131024#M2627</guid>
      <dc:creator>Luigi</dc:creator>
      <dc:date>2007-04-19T00:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: CPU cycles vs. Instruction cycles vs. BUS cycles vs. Oscillator cycles</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/CPU-cycles-vs-Instruction-cycles-vs-BUS-cycles-vs-Oscillator/m-p/131025#M2628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;All 9S08 MCUs have a final division by 2 to derive the bus clock.&amp;nbsp; This of course is after any dividers or prescalers (e.g., RDIV, BDIV, etc) are applied.&amp;nbsp; In other words, if all prescalers are set to divide by 1, the final bus clock will be exactly half the original clock (or FLL derived clock, ICSOUT, or ICGOUT).&amp;nbsp; If you look at the block diagrams, there is always a /2 block right before the BUSCLK&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;With a 4MHz clock you can't get any higher than 2MHz bus.&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2007 00:15:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/CPU-cycles-vs-Instruction-cycles-vs-BUS-cycles-vs-Oscillator/m-p/131025#M2628</guid>
      <dc:creator>tonyp</dc:creator>
      <dc:date>2007-04-19T00:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: CPU cycles vs. Instruction cycles vs. BUS cycles vs. Oscillator cycles</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/CPU-cycles-vs-Instruction-cycles-vs-BUS-cycles-vs-Oscillator/m-p/131026#M2629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Yes, I can see that about BUSCLK.&amp;nbsp; But I am wondering what speed the CPU instructions are running at.&amp;nbsp; If an instruction takes 2 "cycles", what cycles are they talking about, oscillator cycles?&amp;nbsp; The thing about CodeWarrior's debugger is it seems to indicate BUSCLK cycles.&amp;nbsp; I just wonder how fast instructions actually run.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2007 01:52:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/CPU-cycles-vs-Instruction-cycles-vs-BUS-cycles-vs-Oscillator/m-p/131026#M2629</guid>
      <dc:creator>Luigi</dc:creator>
      <dc:date>2007-04-19T01:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: CPU cycles vs. Instruction cycles vs. BUS cycles vs. Oscillator cycles</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/CPU-cycles-vs-Instruction-cycles-vs-BUS-cycles-vs-Oscillator/m-p/131027#M2630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;Ciao Luigi&lt;BR /&gt;In general the &lt;SPAN&gt;CPUs&lt;/SPAN&gt; are running on the BUSCLK so a instruction using two cycles uses 2 &lt;SPAN&gt;BUSCLKs&lt;/SPAN&gt; or in your case four &lt;SPAN&gt;osc&lt;/SPAN&gt; cycles. I would do the calculations &lt;SPAN&gt;always&lt;/SPAN&gt; based on &lt;SPAN&gt;BUSCLKs&lt;/SPAN&gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Saluti&lt;/SPAN&gt; &lt;SPAN&gt;Joerg&lt;/SPAN&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2007 02:31:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/CPU-cycles-vs-Instruction-cycles-vs-BUS-cycles-vs-Oscillator/m-p/131027#M2630</guid>
      <dc:creator>joerg</dc:creator>
      <dc:date>2007-04-19T02:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: CPU cycles vs. Instruction cycles vs. BUS cycles vs. Oscillator cycles</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/CPU-cycles-vs-Instruction-cycles-vs-BUS-cycles-vs-Oscillator/m-p/131028#M2631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;OK, that's what I thought, although the diagram shows the line going directly from the ICG to the CPU block, which made me think that the CPU block was operating on 4 MHz.&amp;nbsp; I guess it might actually be, but it might operate internally such that it essentially divides by 2 as it executes instructions.&amp;nbsp; Having done micro-code for a bit-slice micro before, I know how that works.&amp;nbsp; Anyway, I appreciate your response.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Grazie!&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2007 03:03:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/CPU-cycles-vs-Instruction-cycles-vs-BUS-cycles-vs-Oscillator/m-p/131028#M2631</guid>
      <dc:creator>Luigi</dc:creator>
      <dc:date>2007-04-19T03:03:29Z</dc:date>
    </item>
  </channel>
</rss>

