<?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のトピックIO Port speed does not match BUSCLK frequency</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/IO-Port-speed-does-not-match-BUSCLK-frequency/m-p/160755#M9703</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just a quick question, maybe this is another basic thing, but it seems I missing something. I am trying to drive IO pin (among other things &lt;SPAN aria-label="Happy" class="emoticon_happy emoticon-inline" style="height:16px;width:16px;"&gt;&lt;/SPAN&gt;) and is vital for the project to drive it as fast as possible. I am using S08JM60 mcu, CW 10.1 with PE (-Ot), 2MHz external crystal (set so the "Internal Bus Clock" = 24MHz, "PLL output cock freq." = 48MHz ). Looking in the assembly code i could see:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="j-rte-table"&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style=""&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 10pt; color: #008000;"&gt; 34&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style=""&gt;&lt;/TD&gt;&lt;TD style=""&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 10pt; color: #008000;"&gt; SCLK_SetVal();&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 10pt; color: #ff0000;"&gt;1bda:&amp;nbsp;&amp;nbsp; 1E06 BSET 7,0x06&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class="j-rte-table"&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style=""&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 10pt; color: #008000;"&gt; 36&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style=""&gt;&lt;/TD&gt;&lt;TD style=""&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 10pt; color: #008000;"&gt; SCLK_ClrVal();&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 10pt; color: #ff0000;"&gt;1bdc:&amp;nbsp;&amp;nbsp; 1F06 BCLR 7,0x06&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am assuming that each of this instructions should take only one clock cycle (BUSCLK=24MHz), so the pulse length&amp;nbsp;&amp;nbsp; __|'''''''''|__&amp;nbsp; should be ~41,6ns. But obviously I can see something different on oscilloscope, where the pulse length is ~208ns (4.8MHz). It seems, that everything is running slower than I think the real possibilities are. Could somebody enlighten me into this?&amp;nbsp; What about core frequency, shouldn't be execution of instruction even faster (48MHz) if i am not trying to access GPIO? Is it possible to twiddle with IO faster than 200ns?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your time,&lt;/P&gt;&lt;P&gt;Rasto.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 Oct 2012 13:16:14 GMT</pubDate>
    <dc:creator>RastislavMatula</dc:creator>
    <dc:date>2012-10-31T13:16:14Z</dc:date>
    <item>
      <title>IO Port speed does not match BUSCLK frequency</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/IO-Port-speed-does-not-match-BUSCLK-frequency/m-p/160755#M9703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just a quick question, maybe this is another basic thing, but it seems I missing something. I am trying to drive IO pin (among other things &lt;SPAN aria-label="Happy" class="emoticon_happy emoticon-inline" style="height:16px;width:16px;"&gt;&lt;/SPAN&gt;) and is vital for the project to drive it as fast as possible. I am using S08JM60 mcu, CW 10.1 with PE (-Ot), 2MHz external crystal (set so the "Internal Bus Clock" = 24MHz, "PLL output cock freq." = 48MHz ). Looking in the assembly code i could see:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="j-rte-table"&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style=""&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 10pt; color: #008000;"&gt; 34&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style=""&gt;&lt;/TD&gt;&lt;TD style=""&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 10pt; color: #008000;"&gt; SCLK_SetVal();&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 10pt; color: #ff0000;"&gt;1bda:&amp;nbsp;&amp;nbsp; 1E06 BSET 7,0x06&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class="j-rte-table"&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style=""&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 10pt; color: #008000;"&gt; 36&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style=""&gt;&lt;/TD&gt;&lt;TD style=""&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 10pt; color: #008000;"&gt; SCLK_ClrVal();&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 10pt; color: #ff0000;"&gt;1bdc:&amp;nbsp;&amp;nbsp; 1F06 BCLR 7,0x06&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am assuming that each of this instructions should take only one clock cycle (BUSCLK=24MHz), so the pulse length&amp;nbsp;&amp;nbsp; __|'''''''''|__&amp;nbsp; should be ~41,6ns. But obviously I can see something different on oscilloscope, where the pulse length is ~208ns (4.8MHz). It seems, that everything is running slower than I think the real possibilities are. Could somebody enlighten me into this?&amp;nbsp; What about core frequency, shouldn't be execution of instruction even faster (48MHz) if i am not trying to access GPIO? Is it possible to twiddle with IO faster than 200ns?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your time,&lt;/P&gt;&lt;P&gt;Rasto.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2012 13:16:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/IO-Port-speed-does-not-match-BUSCLK-frequency/m-p/160755#M9703</guid>
      <dc:creator>RastislavMatula</dc:creator>
      <dc:date>2012-10-31T13:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: IO Port speed does not match BUSCLK frequency</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/IO-Port-speed-does-not-match-BUSCLK-frequency/m-p/160756#M9704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See 7.5 HCS08 Instruction Set Summary in JM60 datasheet. BSET and BCLR each take 5 bus clock cycles. Thta's why you see pulse width of 5 bus clock cycles.&lt;/P&gt;&lt;P&gt;STA and STX instructions with DIR address mode take 3 cycles. You can preload A and X registers with bit masks to set and clear specific pin, then usa STA and STX to toggle pin little faster.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2012 16:40:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/IO-Port-speed-does-not-match-BUSCLK-frequency/m-p/160756#M9704</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2012-10-31T16:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: IO Port speed does not match BUSCLK frequency</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/IO-Port-speed-does-not-match-BUSCLK-frequency/m-p/160757#M9705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much for quick reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well, that's quite new information for me, when I look to instruction set summary :smileyhappy:. I was under impression, that S08 is faster than atmega, since it could run at much higher frequency. I guess I always jumped over that "big ugly table" never caring about its content. Anyway I will tray to deal with it somehow, but it is good to know what is the root cause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot,&lt;/P&gt;&lt;P&gt;Rasto.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2012 21:14:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/IO-Port-speed-does-not-match-BUSCLK-frequency/m-p/160757#M9705</guid>
      <dc:creator>RastislavMatula</dc:creator>
      <dc:date>2012-11-01T21:14:21Z</dc:date>
    </item>
  </channel>
</rss>

