<?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のトピックs08sh bus clock</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/s08sh-bus-clock/m-p/174368#M12031</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am running an small applicattion with massive SPI data transfers, and I need to improve the speed of this application. There are only a few lines of code, so I am trying to set the s08Sh at its maximum speed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the internal clock, and I followed next steps:&lt;/P&gt;&lt;P&gt;- Internal bus clock is set at 16MHz.&lt;/P&gt;&lt;P&gt;- Trim frequency at &amp;nbsp; 39062,50.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there something more to do in order to improve the speed of the code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Oct 2011 16:04:50 GMT</pubDate>
    <dc:creator>PW_CTL</dc:creator>
    <dc:date>2011-10-14T16:04:50Z</dc:date>
    <item>
      <title>s08sh bus clock</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/s08sh-bus-clock/m-p/174368#M12031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am running an small applicattion with massive SPI data transfers, and I need to improve the speed of this application. There are only a few lines of code, so I am trying to set the s08Sh at its maximum speed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the internal clock, and I followed next steps:&lt;/P&gt;&lt;P&gt;- Internal bus clock is set at 16MHz.&lt;/P&gt;&lt;P&gt;- Trim frequency at &amp;nbsp; 39062,50.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there something more to do in order to improve the speed of the code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2011 16:04:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/s08sh-bus-clock/m-p/174368#M12031</guid>
      <dc:creator>PW_CTL</dc:creator>
      <dc:date>2011-10-14T16:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: s08sh bus clock</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/s08sh-bus-clock/m-p/174369#M12032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi PW_CTL,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There may be a number of things you can do.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First, is there any reason you are not running at 20 MHz instead if 16 MHz? That would be a 25% improvement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is your code written in C or assembly language?&lt;/P&gt;&lt;P&gt;Are you running polled or with interrupts?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm running older HC08GP32 MCUs at 8 MHz, and I am able to sustain the SPI's maximum transfer rate of 4 MHz (a byte every two microseconds) between MCUs. So I see no reason why you shouldn't be able to do that with an S08 at 16 MHZ.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Oct 2011 03:35:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/s08sh-bus-clock/m-p/174369#M12032</guid>
      <dc:creator>rocco</dc:creator>
      <dc:date>2011-10-15T03:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: s08sh bus clock</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/s08sh-bus-clock/m-p/174370#M12033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi rocco, thanks for your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using processor expert to set up the microcontroller and C code with codewarrior.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As I told you, my application is very small, running in a small loop of only 4-5 lines of c code. I am not using interrupts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, I am reading about 70kbytes/s which is not enough for my purposes. For your comments, there is a problem on my code. I will try to write the main loop in assembly code and check if there is any improvement, but I am not used to write assembly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;About the 20-16MHz, the low-power oscillator can bet set between 2 and 16MHz (my mcu is powered at 3.3V). How to reach the 20MHz? Do I need an external oscillator?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2011 15:10:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/s08sh-bus-clock/m-p/174370#M12033</guid>
      <dc:creator>PW_CTL</dc:creator>
      <dc:date>2011-10-17T15:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: s08sh bus clock</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/s08sh-bus-clock/m-p/174371#M12034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi PW_CTL,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You do not need to re-write your code in assembly language. Instead you can look at the assembly language that was generated by your C code (But I don't know the CodeWorrier option to do that). That way, you should be able to optimize your C code to produce the results you need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What bit-rate do you have the SPI programmed for? What's at the other end?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have not used the SH family, but the clock module looks similar to the others that I have used. So it looks like you can run the clock in FEI mode (FLL Engaged Internal), program the FLL to get a 40 MHz DCOOUT clock, which would give you a 20 MHz bus clock.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2011 15:39:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/s08sh-bus-clock/m-p/174371#M12034</guid>
      <dc:creator>rocco</dc:creator>
      <dc:date>2011-10-17T15:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: s08sh bus clock</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/s08sh-bus-clock/m-p/174372#M12035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks rocco.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when I was reviewing the code in assembly, I found something wrong on my own code in C. Well, not really wrong but very inefficient, in the way it is translated to assembly. I fixed that and the speed of my applicattion is now about twice than I need!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for your help and advices.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2011 16:22:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/s08sh-bus-clock/m-p/174372#M12035</guid>
      <dc:creator>PW_CTL</dc:creator>
      <dc:date>2011-10-17T16:22:10Z</dc:date>
    </item>
  </channel>
</rss>

