<?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: MC9S08SH8 external clocksource in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/MC9S08SH8-external-clocksource/m-p/162788#M9976</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Peg!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have no special timing requirement. But I think its better to&amp;nbsp;use an erternal. Then I can be sure to get no problems between the nodes. All of the nodes will then have same busclock and its very easy&amp;nbsp;to use an crystal.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Dec 2009 01:17:59 GMT</pubDate>
    <dc:creator>mnemonic</dc:creator>
    <dc:date>2009-12-22T01:17:59Z</dc:date>
    <item>
      <title>MC9S08SH8 external clocksource</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/MC9S08SH8-external-clocksource/m-p/162783#M9971</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 use a 12Mhz external crystal on MC9S08SH8 device. But it seems that the Busclock is devided by two. How can I use the full&amp;nbsp;12Mhz as busclock? Please look at my configuration for ICSC1 and ICSC2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ICSC1 is configured as CLKS 10, RDIV 000, IREFS 0, IRCLKEN 0, IREFSTEN 0&lt;/P&gt;&lt;P&gt;ICSC2 is configured as BDIV 00, RANGE 1, HGO 1, LP 0, EREFS 1, ERCLKEN 1, EREFSTEN 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wrote a small testroutine for SCI module. It only work correctly with BR Factor HEX 27. So Busclock must be ~6Mhz.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;_Startup:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LDHX&amp;nbsp;&amp;nbsp; #RAMEnd+1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; initialize the stack pointer&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TXS&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CLI&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; enable interrupts&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lda #%00000011&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; Watchdog off,Stopmode off, Resetpin enabled, BDM enabled&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sta SOPT1&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lda #%10000000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; use external crystal&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sta ICSC1&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lda #%00110111&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sta ICSC2&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; jsr delay1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; external Clocksource needs some time.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; jsr SCI_init&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone tell me how to use 12Mhz external crystal/12Mhz Buscklock(or more)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Dec 2009 20:55:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/MC9S08SH8-external-clocksource/m-p/162783#M9971</guid>
      <dc:creator>mnemonic</dc:creator>
      <dc:date>2009-12-20T20:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: MC9S08SH8 external clocksource</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/MC9S08SH8-external-clocksource/m-p/162784#M9972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know about the SH8 in particular, but if its ICS module behaves like most other members:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is no RDIV setting to bring the 12MHz crystal down to within a 31.25-39.0625KHz range so that you use the FLL to multiply it again to some higher value.&amp;nbsp; You can only use it as is.&amp;nbsp; Which means, you cannot do better than crystal/2 for bus.&amp;nbsp; If you're stuck with this crystal, you're stuck with this bus.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But, if a bus clock of 12MHz is what you're interested in, you can also achieve this with a 24MHz crystal (without the FLL), or (with the FLL, CLKS=00), you'll need (for example) a 4MHz crystal divided down to 31.25KHz (RDIV=7 - divide by 128) and FLL=1536 (DRS=10, DMX32=0) and BDIV=01 (/2 - reset default).&amp;nbsp; Or, an 8MHz crystal with the RDIV setting for /256, or a 2MHz, or a 1MHz with similar adjustments.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS. I just looked at the SH8 datasheet and the FLL seems to be fixed at 1024xReference.&amp;nbsp; So, my suggestions won't work for you.&amp;nbsp; The FLL output can only go between 32MHz and 40MHz which does not have a direct (2^n) division to get the 12MHz.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by tonyp on&lt;/SPAN&gt; &lt;SPAN class="local-date"&gt;2009-12-20&lt;/SPAN&gt; &lt;SPAN class="local-time"&gt;07:16 PM&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Dec 2009 00:57:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/MC9S08SH8-external-clocksource/m-p/162784#M9972</guid>
      <dc:creator>tonyp</dc:creator>
      <dc:date>2009-12-21T00:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: MC9S08SH8 external clocksource</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/MC9S08SH8-external-clocksource/m-p/162785#M9973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks tonyp!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I understand what you writing. I am working on an RS485 Bus system and need a very stable and precise Busclock for my nodes. At this moment I&amp;nbsp;do not know 6Mhz is enouch for Busclock. But I will see this at development. If I will get problems I will find another way. Crystals on SH8 Controllers should not bigger than 16Mhz. If I will use an Oscillator I think I&amp;nbsp;can choose this up to 40Mhz.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not shure what I should use for such an application. I think an external source would be the best solution. What do you think about?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Dec 2009 03:33:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/MC9S08SH8-external-clocksource/m-p/162785#M9973</guid>
      <dc:creator>mnemonic</dc:creator>
      <dc:date>2009-12-21T03:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: MC9S08SH8 external clocksource</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/MC9S08SH8-external-clocksource/m-p/162786#M9974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think for a typical RS485 system you can get by with the internal oscillator's stability (when trimmed).&amp;nbsp; Unless your specific application has special timing requirements.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, if you must use a crystal, you can use a 1, 2, 4, or 8 MHz crystal and the FLL to get 32MHz (16MHz bus).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or, use the internal reference (trimmed for 39.0625KHz) to get 40MHz (20MHz bus).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Dec 2009 05:17:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/MC9S08SH8-external-clocksource/m-p/162786#M9974</guid>
      <dc:creator>tonyp</dc:creator>
      <dc:date>2009-12-21T05:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: MC9S08SH8 external clocksource</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/MC9S08SH8-external-clocksource/m-p/162787#M9975</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;Indeed, I have thousands of '485 networks based on Freescale processors running on their internal oscillators without problem. You must have some special timing requirements for them to be insufficient.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Dec 2009 12:57:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/MC9S08SH8-external-clocksource/m-p/162787#M9975</guid>
      <dc:creator>peg</dc:creator>
      <dc:date>2009-12-21T12:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: MC9S08SH8 external clocksource</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/MC9S08SH8-external-clocksource/m-p/162788#M9976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Peg!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have no special timing requirement. But I think its better to&amp;nbsp;use an erternal. Then I can be sure to get no problems between the nodes. All of the nodes will then have same busclock and its very easy&amp;nbsp;to use an crystal.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2009 01:17:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/MC9S08SH8-external-clocksource/m-p/162788#M9976</guid>
      <dc:creator>mnemonic</dc:creator>
      <dc:date>2009-12-22T01:17:59Z</dc:date>
    </item>
  </channel>
</rss>

