<?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: mcf52259 oscillator question in ColdFire/68K Microcontrollers and Processors</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/mcf52259-oscillator-question/m-p/293699#M12081</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; I think you mean the &lt;SPAN style="font-size: 10pt;"&gt;procedure should be&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;internal clock -&amp;gt;external oscillator-&amp;gt;external oscillator with PLL&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Yes, you are correct. I thought it was possible to run the CPU from the Reference Clock while running the PLL from the External clock, but that's not possible. I think that you have to run on PLL Bypass, start the PLL and then don't switch over to it until the registers say it is OK or you can crash the CPU.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Is there any way other than"&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;wait a while&lt;/SPAN&gt;" to realize it?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;I meant to say that you would have to read the Data Sheet for the external oscillator that you're using, and then do whatever it says. it may have a "maximum startup time" or a "maximum stabilization time" after you program it that you will have to guarantee in your programming of the MCF52259. It may have some registers that you can read back to check its state. In the simplest case you'll have to wait for the "Data Sheet Guaranteed Maximum", but rather than type in over 80 words (like I've just done now) I decided to summarize that as "wait a while".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Tom&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Sep 2013 13:09:51 GMT</pubDate>
    <dc:creator>TomE</dc:creator>
    <dc:date>2013-09-10T13:09:51Z</dc:date>
    <item>
      <title>mcf52259 oscillator question</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/mcf52259-oscillator-question/m-p/293696#M12078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all:&lt;/P&gt;&lt;P&gt;I want to design a board with mcf52259 and need some advice.&lt;/P&gt;&lt;P&gt;The clock will be generated from an ic chip.The chip should be configed via i2c before working.&lt;/P&gt;&lt;P&gt;If I want to use the internal clock to boot the system,and then config the ic chip, swith the internal&amp;nbsp; clock to the external clock,which clock mod should i choose?I mean the CLKMOD[1:0] and the XTAL pin.I have confused on the description of the three pin.&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; &lt;/SPAN&gt;Are they just only useful in booting sequecne?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Thanks. Best regards.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;HuQi&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Sep 2013 15:33:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/mcf52259-oscillator-question/m-p/293696#M12078</guid>
      <dc:creator>anvaya</dc:creator>
      <dc:date>2013-09-09T15:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: mcf52259 oscillator question</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/mcf52259-oscillator-question/m-p/293697#M12079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; .I have confused on the description of the three pin.&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;Are they just only useful in booting sequecne?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MCF52259 Reference Manual:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;7.3.5 Clock Mode Selection (CLKMOD[1:0])&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;These digital inputs are &lt;STRONG&gt;sampled during reset&lt;/STRONG&gt; (all resets including cold and warm resets) and determine&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;which clock source should be used as the system clock, as illustrated in Table 7-1.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;CLKMOD[1:0]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XTAL&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Clocking Mode&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;Yes, they are only sampled at reset, which for you is when you boot. After that your code can change the clock setup by writing to control registers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should wire it to start in "PLL disabled, clock driven by on-chip oscillator". CLKMOD [0:1] are dedicated pins on this chip so you can tie them both to ground.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The XTAL pin needs to be pulled high. I'd pull it high with a 1k to 10k resistor in case it gets enabled as an output somehow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Start up on the internal clock, start the external oscillator, wait a while for it to stabilise and then switch to the external clock.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you should look for some example code that shows how to enable the PLL and switch over to it (if you are using the PLL). I suspect you have to start the PLL while in PLL Bypass mode, then you have to WAIT until the PLL is stable (SYNSR[LOCK] bit and maybe others) and only then switch over to the PLL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Sep 2013 23:29:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/mcf52259-oscillator-question/m-p/293697#M12079</guid>
      <dc:creator>TomE</dc:creator>
      <dc:date>2013-09-09T23:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: mcf52259 oscillator question</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/mcf52259-oscillator-question/m-p/293698#M12080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you ,Tom.&lt;/P&gt;&lt;P&gt;I think you mean the &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;procedure should be&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;internal clock -&amp;gt;&lt;SPAN&gt;external oscillator&lt;/SPAN&gt;-&amp;gt;&lt;SPAN&gt;external oscillator&lt;/SPAN&gt; with PLL.It is just what i want.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Another question,&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; you said"start the external oscillator, wait a while for it to stabilise and then switch to the external clock".&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;I want to check out the working status of the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;external oscillator.If it works well,the system will run under&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;external oscillator&lt;/SPAN&gt;,else &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;the system will still run &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;under&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;internal clock.Is there any way other than"&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;wait a while&lt;/SPAN&gt;" to realize it?You know,if the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;external oscillator not exist,the system can't work again!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Sep 2013 11:41:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/mcf52259-oscillator-question/m-p/293698#M12080</guid>
      <dc:creator>anvaya</dc:creator>
      <dc:date>2013-09-10T11:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: mcf52259 oscillator question</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/mcf52259-oscillator-question/m-p/293699#M12081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; I think you mean the &lt;SPAN style="font-size: 10pt;"&gt;procedure should be&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;internal clock -&amp;gt;external oscillator-&amp;gt;external oscillator with PLL&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Yes, you are correct. I thought it was possible to run the CPU from the Reference Clock while running the PLL from the External clock, but that's not possible. I think that you have to run on PLL Bypass, start the PLL and then don't switch over to it until the registers say it is OK or you can crash the CPU.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Is there any way other than"&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;wait a while&lt;/SPAN&gt;" to realize it?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;I meant to say that you would have to read the Data Sheet for the external oscillator that you're using, and then do whatever it says. it may have a "maximum startup time" or a "maximum stabilization time" after you program it that you will have to guarantee in your programming of the MCF52259. It may have some registers that you can read back to check its state. In the simplest case you'll have to wait for the "Data Sheet Guaranteed Maximum", but rather than type in over 80 words (like I've just done now) I decided to summarize that as "wait a while".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Tom&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Sep 2013 13:09:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/mcf52259-oscillator-question/m-p/293699#M12081</guid>
      <dc:creator>TomE</dc:creator>
      <dc:date>2013-09-10T13:09:51Z</dc:date>
    </item>
  </channel>
</rss>

