<?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: MC9S08QG8 external crystal problem in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/MC9S08QG8-external-crystal-problem/m-p/217586#M18940</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Bigmac,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In effect, I tested OSC_INIT between ICSC2 and ICSC1 set up.&lt;/P&gt;&lt;P&gt;I tried to test OSC init after the 2 registers initialization, without success.&lt;/P&gt;&lt;P&gt;I tried in FBE mode too (LP =0), to enter in debug mode. the CPU stops at the OSC INIT test.&lt;/P&gt;&lt;P&gt;When I delete the test, the CPU works in internal clock mode, why ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Perhaps, I have a hardware problem, I will check my crystal and capacitors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hervé&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Aug 2010 16:57:11 GMT</pubDate>
    <dc:creator>f8ehj</dc:creator>
    <dc:date>2010-08-10T16:57:11Z</dc:date>
    <item>
      <title>MC9S08QG8 external crystal problem</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/MC9S08QG8-external-crystal-problem/m-p/217584#M18938</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 wire a &amp;nbsp;crystal 3.579 Mhz on EXTAL and XTAL pins via 2 capacitors and RF resistor.&lt;/P&gt;&lt;P&gt;I want to use it for the bus clock CPU.&lt;/P&gt;&lt;P&gt;First, to test it, I write a code for blinking a LED. It does'nt work in external clock mode. No problem in internal clock mode.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here the initialization :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I set up ICSC1 like this :&lt;/P&gt;&lt;P&gt;CLKS = 10&lt;/P&gt;&lt;P&gt;RDIV = 000&lt;/P&gt;&lt;P&gt;IREFS=0&lt;/P&gt;&lt;P&gt;IRCLKEN=0&lt;/P&gt;&lt;P&gt;IREFSTEN=0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and ICSC2 like below:&lt;/P&gt;&lt;P&gt;BDIV=01&lt;/P&gt;&lt;P&gt;RANGE, HGO,LP, EREFS =1&lt;/P&gt;&lt;P&gt;ERCLKEN=0&lt;/P&gt;&lt;P&gt;EREFSTEN=0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am waiting until external reference is stable &amp;nbsp;between ICSC2 and ICSC1 :&lt;/P&gt;&lt;P&gt;while (!ICSSC_OSCINIT){}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Must I set IREFS to 1 because my crystal isn't multiple of 32 Khz ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why, when I delete the "while !ICSSC_OSCINIT){}"&amp;nbsp;line, the uC switch in internal clock ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Herve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Aug 2010 04:17:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/MC9S08QG8-external-crystal-problem/m-p/217584#M18938</guid>
      <dc:creator>f8ehj</dc:creator>
      <dc:date>2010-08-10T04:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: MC9S08QG8 external crystal problem</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/MC9S08QG8-external-crystal-problem/m-p/217585#M18939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Herve, and welcome to the forum.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I my understanding is that you are setting ICSC1 register, and then waitingfor the&amp;nbsp;OSCINIT flag, before setting ICSC2 register.&amp;nbsp; Is this correct?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If so, the crystal will not oscillate because you do not yet have EREFS bit set for compatibility with an external crystal.&amp;nbsp; If you need to monitor OSCINIT, this should be done after both registers ICS1 and ICS2 are setup.&amp;nbsp; I presume that you intend using FBELP mode.&amp;nbsp; I would also be possible to use FBE mode.&amp;nbsp; Note that you will not be able to debug using FBELP mode because the FLL is stopped.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mac&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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, 10 Aug 2010 06:58:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/MC9S08QG8-external-crystal-problem/m-p/217585#M18939</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2010-08-10T06:58:12Z</dc:date>
    </item>
    <item>
      <title>Re: MC9S08QG8 external crystal problem</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/MC9S08QG8-external-crystal-problem/m-p/217586#M18940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Bigmac,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In effect, I tested OSC_INIT between ICSC2 and ICSC1 set up.&lt;/P&gt;&lt;P&gt;I tried to test OSC init after the 2 registers initialization, without success.&lt;/P&gt;&lt;P&gt;I tried in FBE mode too (LP =0), to enter in debug mode. the CPU stops at the OSC INIT test.&lt;/P&gt;&lt;P&gt;When I delete the test, the CPU works in internal clock mode, why ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Perhaps, I have a hardware problem, I will check my crystal and capacitors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hervé&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Aug 2010 16:57:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/MC9S08QG8-external-crystal-problem/m-p/217586#M18940</guid>
      <dc:creator>f8ehj</dc:creator>
      <dc:date>2010-08-10T16:57:11Z</dc:date>
    </item>
  </channel>
</rss>

