<?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: Wrong PLL code from CFinit!? in ColdFire/68K Microcontrollers and Processors</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Wrong-PLL-code-from-CFinit/m-p/138031#M1998</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Hi.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;You might want to refer to the relevant section in the MCF5213 reference manual (p115, section 6.8.3, in MCF5213RM v3).&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;As you state, step 4 is unnecessary, and is not included in the description in the manual.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The manual suggests that the system clock could indeed be affected by overshoot if the desired RFD value were written at the same time&amp;nbsp;that the clock source is switched to PLL, which could be of concern if the system clock is close to the maximum.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Regarding the maximum speed, the next section in the manual states:&lt;/DIV&gt;&lt;BLOCKQUOTE&gt;&lt;DIV&gt;&lt;FONT face="Times New Roman"&gt;&lt;FONT face="Arial"&gt;The PLL can multiply the reference clock frequency&lt;/FONT&gt; &lt;FONT face="Arial"&gt;by 4x to 18x, &lt;EM&gt;provided that the system clock frequency remains within the range listed in electrical&lt;/EM&gt;&lt;/FONT&gt; &lt;FONT face="Arial"&gt;&lt;EM&gt;specifications&lt;/EM&gt;.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;DIV&gt;&lt;FONT face="Times New Roman"&gt;&lt;FONT face="Arial"&gt;So I'm guessing that 180 MHz is not an option!&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Times New Roman"&gt;&lt;FONT face="Arial"&gt;&lt;/FONT&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Times New Roman"&gt;&lt;FONT face="Arial"&gt;Steve.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Jun 2007 15:25:51 GMT</pubDate>
    <dc:creator>sjmelnikoff</dc:creator>
    <dc:date>2007-06-25T15:25:51Z</dc:date>
    <item>
      <title>Wrong PLL code from CFinit!?</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Wrong-PLL-code-from-CFinit/m-p/138030#M1997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;SPAN&gt;Hello All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;IMO the MCF5213 PLL code from Coldfire INIT is somewhat strange:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Set CLKSRC to input clock, MFD to desired value, RFD to desired value +1 "to avoid frequency overshoot".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Wait for PLL lock.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Set correct RFD.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;4. Wait _again_ for PLL lock (although it's already locked).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;5. Set CLKSRC to input clock.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As far as I see, most of this is unnecessary. Since sysclock isn't affected by a "frequency overshoot", I don't care about. Certainly unnecessary is step 4, since the RFD is behind the PLL *) and doesn't affect it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would set CLKSRC to input clock, RFD and MFD to the desired value in a separate write operation, wait for lock and then switch to PLL clock.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anything I'm missing?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Besides this, I would like to know whether the PLL VCO is really able to run at up to 180MHz (10MHz max. reference clock * 18).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Oliver&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;*) is it? The reference manual doesn't state this explicitly (as so many other details), but you can read it between the lines.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2007 01:51:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Wrong-PLL-code-from-CFinit/m-p/138030#M1997</guid>
      <dc:creator>Obetz</dc:creator>
      <dc:date>2007-06-25T01:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong PLL code from CFinit!?</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Wrong-PLL-code-from-CFinit/m-p/138031#M1998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Hi.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;You might want to refer to the relevant section in the MCF5213 reference manual (p115, section 6.8.3, in MCF5213RM v3).&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;As you state, step 4 is unnecessary, and is not included in the description in the manual.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The manual suggests that the system clock could indeed be affected by overshoot if the desired RFD value were written at the same time&amp;nbsp;that the clock source is switched to PLL, which could be of concern if the system clock is close to the maximum.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Regarding the maximum speed, the next section in the manual states:&lt;/DIV&gt;&lt;BLOCKQUOTE&gt;&lt;DIV&gt;&lt;FONT face="Times New Roman"&gt;&lt;FONT face="Arial"&gt;The PLL can multiply the reference clock frequency&lt;/FONT&gt; &lt;FONT face="Arial"&gt;by 4x to 18x, &lt;EM&gt;provided that the system clock frequency remains within the range listed in electrical&lt;/EM&gt;&lt;/FONT&gt; &lt;FONT face="Arial"&gt;&lt;EM&gt;specifications&lt;/EM&gt;.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;DIV&gt;&lt;FONT face="Times New Roman"&gt;&lt;FONT face="Arial"&gt;So I'm guessing that 180 MHz is not an option!&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Times New Roman"&gt;&lt;FONT face="Arial"&gt;&lt;/FONT&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Times New Roman"&gt;&lt;FONT face="Arial"&gt;Steve.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2007 15:25:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Wrong-PLL-code-from-CFinit/m-p/138031#M1998</guid>
      <dc:creator>sjmelnikoff</dc:creator>
      <dc:date>2007-06-25T15:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong PLL code from CFinit!?</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Wrong-PLL-code-from-CFinit/m-p/138032#M1999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;Hello Steve,&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;the procedure in the reference manual states nothing about switching sysclock to ref clock, but the INIT code does so, so you can't compare them. The INIT code is like using suspenders and belt together.&lt;BR /&gt;&lt;BR /&gt;Regarding the method from the manual: I wouldn't feel good if I knew that my sysclock rides on some PLL settling transient, so I prefer to switch to refclock during a PLL change. Usually there is no time penalty since the PLL settling takes some time, anyway. Even with a 2MHz sysclock (the lowest allowed reference frequency), reading SYNSR takes only&amp;nbsp; 6us. There is no benefit in "waiting faster".&lt;BR /&gt;&lt;BR /&gt;The remaining question is, whether a too high frequency on the (inactive) sysclock multiplexer input hurts, or whether the RFD divider explodes while generating more than 80MHz &amp;lt;g&amp;gt;.&lt;BR /&gt;&lt;BR /&gt;Regarding your guess about 180MHz, the manual says the opposite: according to the text, you _can_ multiply a 10MHz refclock by 18, that's 180MHz output from the PLL VCO. Obviously, you need to divide it with an appropriate RFD value to get an allowed sysclock.&lt;BR /&gt;&lt;BR /&gt;The lower limit of the VCO output range seems to be 12MHz (3MHz * 4 or 2MHz * 6), that's a respectable 15:1 range.&lt;BR /&gt;&lt;BR /&gt;Oliver&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2007 16:05:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Wrong-PLL-code-from-CFinit/m-p/138032#M1999</guid>
      <dc:creator>Obetz</dc:creator>
      <dc:date>2007-06-25T16:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong PLL code from CFinit!?</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Wrong-PLL-code-from-CFinit/m-p/138033#M2000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Hi Oliver. In reply:&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;BLOCKQUOTE&gt;&lt;DIV&gt;&lt;HR /&gt;&lt;/DIV&gt;&lt;DIV&gt;the procedure in the reference manual states nothing about switching sysclock to ref clock,&lt;/DIV&gt;&lt;DIV&gt;&lt;HR /&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;DIV&gt;Indeed; I hadn't noticed that, as I took it as read that most people would switch to the reference clock before changing the PLL settings - in which case, as you say, it doesn't matter about clock overshoot.&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;DIV&gt;&lt;HR /&gt;Regarding your guess about 180MHz, the manual says the opposite: according to the text, you _can_ multiply a 10MHz refclock by 18, that's 180MHz output from the PLL VCO.&lt;HR /&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;DIV&gt;Also true, and the datasheet says nothing to the contrary.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Mind if I take back my earlier post? &lt;IMG alt=":smileyhappy:" class="emoticon emoticon-smileyhappy" id="smileyhappy" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-happy.gif" title="Smiley Happy" /&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Steve.&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2007 16:24:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Wrong-PLL-code-from-CFinit/m-p/138033#M2000</guid>
      <dc:creator>sjmelnikoff</dc:creator>
      <dc:date>2007-06-25T16:24:24Z</dc:date>
    </item>
  </channel>
</rss>

