<?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>ColdFire/68K Microcontrollers and ProcessorsのトピックRe: Problem with instruction executing timing</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Problem-with-instruction-executing-timing/m-p/207959#M9996</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;scifi wrote:&lt;BR /&gt;&lt;P&gt;Setting and resetting an output involves synchronization between the CPU and a slower peripheral bus. I'm not sure where you'd find information on how long it takes.&lt;/P&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the Coldfire V2 derivatives have very slow peripherals and extremly slow peripherals (e.g. ports, 12 waitstates or so).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sadly the docs don't tell you what you need to know before you start your design.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Oliver&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Aug 2009 01:32:52 GMT</pubDate>
    <dc:creator>Obetz</dc:creator>
    <dc:date>2009-08-21T01:32:52Z</dc:date>
    <item>
      <title>Problem with instruction executing timing</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Problem-with-instruction-executing-timing/m-p/207956#M9993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have done a little program to verify my instruction executing timing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My program is composed of :&lt;/P&gt;&lt;P&gt;-Set an output&lt;/P&gt;&lt;P&gt;-Reset the same output&lt;/P&gt;&lt;P&gt;-Increase an integer variable (6times)&lt;/P&gt;&lt;P&gt;-Set the output&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I&amp;nbsp;capture my output&amp;nbsp;an logical analyser.&lt;/P&gt;&lt;P&gt;The time for execute this program (47 processor cycles between the set and the reset) is about 1,975us. That mean one cycle timing is&amp;nbsp;about 42ns.&amp;nbsp;That done&amp;nbsp;about 24Misps, in the data sheet it's write 56Misps.&lt;/P&gt;&lt;P&gt;I don't understand why I haven't the better performance because I use an external oscillator at 25Mhz like the Evaluation board (MCF25535EVB) and the MCF initialisation is the same.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have check all the register and is good.&amp;nbsp;Anybody have an idea?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Florent&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2009 23:40:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Problem-with-instruction-executing-timing/m-p/207956#M9993</guid>
      <dc:creator>FloP</dc:creator>
      <dc:date>2009-08-17T23:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with instruction executing timing</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Problem-with-instruction-executing-timing/m-p/207957#M9994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think that calculating the number of cycles a program would take to execute is so easy. Setting and resetting an output involves synchronization between the CPU and a slower peripheral bus. I'm not sure where you'd find information on how long it takes. Increasing an integer variable is straighforward when the variable is held in a CPU register. It could be more complicated when it's in a RAM: you have to take into account the latency of accessing the type of memory involved.&lt;/P&gt;&lt;P&gt;If I was to measure CPU frequency, I would put together a program consisting 100 NOP's in a long 'for' loop. And I would use a stopwatch to time that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2009 01:54:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Problem-with-instruction-executing-timing/m-p/207957#M9994</guid>
      <dc:creator>scifi</dc:creator>
      <dc:date>2009-08-18T01:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with instruction executing timing</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Problem-with-instruction-executing-timing/m-p/207958#M9995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Thank you for you advice.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;I have configurate a timer at frecency syteme divided by 2 (30Mhz =&amp;gt; 33ns) and maximum modulo 30000 for a timer timing cycle of 1ms. In each interupt I toggle an output for use an external capture (it's for verify my clock systeme).&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;I checked that and I it's good.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;After,&amp;nbsp;in my main program, I capture my timer 2 times (for know how many times take a capture), I execute 100 nop (and in an other test 200 nop) and capture the timer.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;The result are :&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;The timer indicate 7 between two captures demand, 182 for 100nop and 357 for 200nop.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;If I decreasse 7 to the result of 100nop and 200nop I find 175 and 350. That mean 1nop take 3.5 clock processor (1nop = 58ns) and I conclude I have a processor which can execute about 17Mips.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;It's very strange!&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;I have an other problem, I have a pre-divider frequency of my external oscillator for use after the pll. But this pre-divider don't have any effect on my frequency, if I done 4 or 0 in the register CCHR I have the same result... But if a increase the pll multiplier performance are increase but all périphéral (COM...)doesn't work, that mean my processor frequency is not good.&lt;/FONT&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2009 16:25:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Problem-with-instruction-executing-timing/m-p/207958#M9995</guid>
      <dc:creator>FloP</dc:creator>
      <dc:date>2009-08-18T16:25:10Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with instruction executing timing</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Problem-with-instruction-executing-timing/m-p/207959#M9996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;scifi wrote:&lt;BR /&gt;&lt;P&gt;Setting and resetting an output involves synchronization between the CPU and a slower peripheral bus. I'm not sure where you'd find information on how long it takes.&lt;/P&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the Coldfire V2 derivatives have very slow peripherals and extremly slow peripherals (e.g. ports, 12 waitstates or so).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sadly the docs don't tell you what you need to know before you start your design.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Oliver&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2009 01:32:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Problem-with-instruction-executing-timing/m-p/207959#M9996</guid>
      <dc:creator>Obetz</dc:creator>
      <dc:date>2009-08-21T01:32:52Z</dc:date>
    </item>
  </channel>
</rss>

