<?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 external oscillator Promblem in ColdFire/68K Microcontrollers and Processors</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF52259-external-oscillator-Promblem/m-p/146093#M3201</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Mudwog,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Is&amp;nbsp;your problem about USB OK?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have someproblem about clock system,and try to resolve it by myself .&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>Mon, 19 Mar 2012 09:43:14 GMT</pubDate>
    <dc:creator>cathychang</dc:creator>
    <dc:date>2012-03-19T09:43:14Z</dc:date>
    <item>
      <title>MCF52259 external oscillator Promblem</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF52259-external-oscillator-Promblem/m-p/146090#M3198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used a&amp;nbsp; 48 MHz crystal in my board MCF52259(Circuit connect as the same as the MCF52259EVB),I used the below code to PLL,but not successful , system clock is 16Mhz,and still is 16Mhz in EXTAL pin . why?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/*Required if booting with internal relaxation oscillator on, crystal off, &amp;amp; pll off, clkmod[1:0]=00 &amp;amp; xtal=1 */&amp;nbsp;&lt;BR /&gt;&amp;nbsp; MCF_CLOCK_OCLR = 0xC0;&amp;nbsp;&amp;nbsp;&amp;nbsp; //turn on crystal&amp;nbsp; //0xF0&lt;BR /&gt;&amp;nbsp; MCF_CLOCK_CCLR = 0x00;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;//switch to crystal&lt;BR /&gt;&amp;nbsp;&amp;nbsp;MCF_CLOCK_OCHR = 0x00;&amp;nbsp;&amp;nbsp;&amp;nbsp; //turn off relaxation osc&amp;nbsp;&lt;BR /&gt;&amp;nbsp;/* The PLL pre divider - 48MHz / 6 = 8MHz */&lt;BR /&gt;&amp;nbsp;MCF_CLOCK_CCHR = 0x05;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;/* The PLL pre-divider affects this!&lt;BR /&gt;&amp;nbsp; * Multiply 48Mhz reference crystal /CCHR+1 by 8 to acheive system clock of 64Mhz&lt;BR /&gt;&amp;nbsp; */&amp;nbsp;&lt;BR /&gt;&amp;nbsp;MCF_CLOCK_SYNCR = 0x0;&lt;BR /&gt;&amp;nbsp;MCF_CLOCK_SYNCR |= MCF_CLOCK_SYNCR_CLKSRC | MCF_CLOCK_SYNCR_PLLMODE;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;//48&lt;BR /&gt;&amp;nbsp;MCF_CLOCK_SYNCR |= MCF_CLOCK_SYNCR_MFD(4) | MCF_CLOCK_SYNCR_RFD(1);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;MCF_CLOCK_SYNCR |= MCF_CLOCK_SYNCR_PLLEN;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;while (!(MCF_CLOCK_SYNSR &amp;amp; MCF_CLOCK_SYNSR_LOCK))&lt;BR /&gt;&amp;nbsp;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;BR /&gt;&amp;nbsp;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I learned that it maybe has problem with external 48 MHz crystal ----" you use a 48Mhz crystal on 3rd overtone, you need a 48Mhz crystal working on fundamental frequency.", i dont know which crystal is 3rd overtone or not??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;why system clock is not change when used the above code and modifed the parameters of MCF_CLOCK_SYNCR_MFD??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see the&amp;nbsp;table 7-1 and table 7-2, i want to know&amp;nbsp;&amp;nbsp;what is the crystal oscillator ,Relaxation oscillator ,external oscillator and on-chip oscillator? what is the different of those?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table 7-1. Clocking Modes&lt;/P&gt;&lt;P&gt;CLKMOD[1:0]&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;XTAL&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Clocking Mode&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;00&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MHz crystal oscillator bypass with PLL disabled&lt;/SPAN&gt;&lt;BR /&gt;00&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Relaxation oscillator with PLL disabled&lt;BR /&gt;01&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;&amp;nbsp;&amp;nbsp; Not&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;applicable MHz crystal oscillator with PLL disabled&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table 7-4. Clocking Modes&lt;/P&gt;&lt;P&gt;CLKMOD[1:0]&amp;nbsp;&amp;nbsp; &amp;nbsp;XTAL&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Clocking Mode&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;00&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #ff0000;"&gt;PLL disabled, clock driven by external oscillator&lt;/SPAN&gt;&lt;BR /&gt;00&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;&amp;nbsp;&amp;nbsp; 1&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; PLL disabled, clock driven by on-chip oscillator&lt;BR /&gt;01&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;&amp;nbsp;&amp;nbsp; &amp;nbsp;N/A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PLL disabled, clock driven by external crystal&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found Table 7-14 in MCF52259RM involves the external oscillator mode and the external crystal mode, what is the different between the external oscillator mode and external crystal mode?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Table 7-14. OCLR Field Descriptions&lt;/P&gt;&lt;P&gt;bit[6]--Reference Source bit.&lt;/P&gt;&lt;P&gt;0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; External oscillator is running in external oscillator mode.&lt;BR /&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; External oscillator is running in external crystal mode.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for you reading ,waiting for your answer ....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2012 17:11:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF52259-external-oscillator-Promblem/m-p/146090#M3198</guid>
      <dc:creator>cathychang</dc:creator>
      <dc:date>2012-03-14T17:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: MCF52259 external oscillator Promblem</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF52259-external-oscillator-Promblem/m-p/146091#M3199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Possibly because you're using a third-harmonic crystal in a non-harmonic circuit.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just type "48MHz" into the Search Box at upper right and read through the two pages of previous questions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You need a 48MHz Fundamental Mode crystal.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2012 05:23:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF52259-external-oscillator-Promblem/m-p/146091#M3199</guid>
      <dc:creator>TomE</dc:creator>
      <dc:date>2012-03-15T05:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: MCF52259 external oscillator Promblem</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF52259-external-oscillator-Promblem/m-p/146092#M3200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cathychang,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am running on the&amp;nbsp;MCF52259EVB, with the 48MegaHz external crystal.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The crystal is selected for the USB section&amp;nbsp;in my&amp;nbsp;INIT_USB subroutine, because the USB section required 48MegaHz, and from what I've read it just plain won't work with any other frequency.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But before the INIT_USB is called, the external crystal is enabled and the pll is setup to run the system clock at 80 megahz.&amp;nbsp; This part of my system has been running fine for a while now.&amp;nbsp; (Although I did have some problems figuring it out early on).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attached &amp;nbsp;is an excerpt from my power up&amp;nbsp;module that does the clock configuration.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mudwog&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>Thu, 15 Mar 2012 11:31:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF52259-external-oscillator-Promblem/m-p/146092#M3200</guid>
      <dc:creator>Mudwog</dc:creator>
      <dc:date>2012-03-15T11:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: MCF52259 external oscillator Promblem</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF52259-external-oscillator-Promblem/m-p/146093#M3201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Mudwog,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Is&amp;nbsp;your problem about USB OK?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have someproblem about clock system,and try to resolve it by myself .&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>Mon, 19 Mar 2012 09:43:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF52259-external-oscillator-Promblem/m-p/146093#M3201</guid>
      <dc:creator>cathychang</dc:creator>
      <dc:date>2012-03-19T09:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: MCF52259 external oscillator Promblem</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF52259-external-oscillator-Promblem/m-p/146094#M3202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I replied earlier suggesting you might have installed a Third Harmonic crystal when you need a Fundamental Mode one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did you miss it, know it isn't your problem, or??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For reference, look for "overtone oscillator" here:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.electronics-tutorials.ws/oscillator/crystal.html" rel="nofollow noopener noreferrer noopener noreferrer" target="_blank"&gt;http://www.electronics-tutorials.ws/oscillator/crystal.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's one of the previous posts I pointed you to:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.freescale.com/message/66903#66903" rel="nofollow noopener noreferrer noopener noreferrer" target="_blank" title="https://community.freescale.com/message/66903#66903"&gt;https://community.freescale.com/message/66903#66903&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;YodaC Wrote:I make a new design for MCF 52259 with a common HC49crystal of 48MHz.But the crystal oscillate @16Mhz.BugMan responded:Because you use a 48Mhz crystal on 3rd overtone, you needa 48Mhz crystal working on fundamental frequency.pgo responded:Just an extra note - the 48MHz ABM7 crystal  is 3rd overtone bydefault - You need to specify the fundamental mode operation whenordering.  This may be true of the other one. (Just to re-enforcewhat BugMan said!)e.g.   ABM7-48.000MHZ-D2Y-F-T (The 'F' is important!)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 08:47:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF52259-external-oscillator-Promblem/m-p/146094#M3202</guid>
      <dc:creator>TomE</dc:creator>
      <dc:date>2020-10-29T08:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: MCF52259 external oscillator Promblem</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF52259-external-oscillator-Promblem/m-p/146095#M3203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi TomE,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;I changed the fundamental crystal ,but my issues is still not resolved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2012 12:35:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF52259-external-oscillator-Promblem/m-p/146095#M3203</guid>
      <dc:creator>cathychang</dc:creator>
      <dc:date>2012-03-19T12:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: MCF52259 external oscillator Promblem</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF52259-external-oscillator-Promblem/m-p/146096#M3204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Because &amp;nbsp;the new crystal is be changed &amp;nbsp;is not correct, modified the hardware( parallel CLcal between&amp;nbsp; Y1 and&amp;nbsp; C7), the system clock can be lock in some define value .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank for TomE,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2012 12:07:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF52259-external-oscillator-Promblem/m-p/146096#M3204</guid>
      <dc:creator>cathychang</dc:creator>
      <dc:date>2012-03-20T12:07:43Z</dc:date>
    </item>
  </channel>
</rss>

