<?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>LPC MicrocontrollersのトピックRe: LPC824, PLL post divider is not working?</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC824-PLL-post-divider-is-not-working/m-p/554871#M14846</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There's nothing wrong with the post divider!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;M is the divider between output of the PLL block and the phase detector. Therefore, the PLL cannot but provide M times the reference frequency there.&lt;/P&gt;&lt;P&gt;Now the PLL adjusts the output frequency by changing the CCO clock frequency. The P divider ensures that the CCO can operate in its guaranteed frequency range. A 60 MHz output can only be achieved with a 240 MHz CCO, and the P divider ratio must be four. Your calculation is completely right!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sometimes it is possible that the system works even with an incorrect P divider setting. Assume you want to get 90 MHz out. The correct CCO frequency is 180 MHz here (P divider ratio = 2), but it *might* still work with a P divider ratio of 4, as the resulting CCO frequency of 360 MHz is not too far out of the guaranteed operating window.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Jul 2016 05:46:01 GMT</pubDate>
    <dc:creator>rolfmeeser</dc:creator>
    <dc:date>2016-07-12T05:46:01Z</dc:date>
    <item>
      <title>LPC824, PLL post divider is not working?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC824-PLL-post-divider-is-not-working/m-p/554870#M14845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After several hours of struggle and confusing manual, here is the problem on LPC824:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;According to LPC82x User Manual, pag. 56, the PLL block have some high frequency oscillator (called CCO) that can work (can be locked) in FCCO = 156...320 MHz range.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After CCO, exists a post divider that can be set to 4 divider values (1,2,4 and 8) automatically further divided by 2 for 50 % duty-cycle, resulting in real P = 2,4,8 or 16. This is for obtaining FCLKOUT (MAIN CLOCK) that is limited to 100MHz.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To close the PLL loop, exists also a M divider (called feedback in user manual) that can be set such as real divider values = 1...32&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now when injecting 12 MHz from IRC into PLL and set M = 5, MAIN CLOCK will be 60 MHz with no effect of changing P value. That is, any value set to P the clock will be 60 MHz (IRC * M). Since FCCO can be locked only in 156...320 MHz range, we deduce that lock is produced at 240 MHz and real P is 4 (P = 2, 2*P = 4).&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We enabled CLOCKOUT to monitor MAIN SYSTEM CLOCK and this indeed outputs 60 MHz, 72 MHz or whatever M is set to multiply the 12 MHz IRC.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any value programmed in P bits (pag. 35, SYSPLLCTRL register) have no effect.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Taking example from table 57 (pag. 58) if keep M=5 and set P = 4 (real P = 8) the CCO should (still) lock on 240 MHz but MAIN CLOCK should be 30 MHz (well under 100 MHz limit). Instead, example keep the MAIN CLOCK = 60 MHz and modify the SYSTEM CLOCK from SYSAHBCLKDIV register.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appears that P divider is just not working, and set at fixed value P = 2 (real P for PLL formula = 4) regarding PSEL bits setting in SYSPLLCTRL register.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone confirm this?&lt;/P&gt;&lt;P&gt;Tnx,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Jul 2016 14:44:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC824-PLL-post-divider-is-not-working/m-p/554870#M14845</guid>
      <dc:creator>rianzu</dc:creator>
      <dc:date>2016-07-09T14:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: LPC824, PLL post divider is not working?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC824-PLL-post-divider-is-not-working/m-p/554871#M14846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There's nothing wrong with the post divider!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;M is the divider between output of the PLL block and the phase detector. Therefore, the PLL cannot but provide M times the reference frequency there.&lt;/P&gt;&lt;P&gt;Now the PLL adjusts the output frequency by changing the CCO clock frequency. The P divider ensures that the CCO can operate in its guaranteed frequency range. A 60 MHz output can only be achieved with a 240 MHz CCO, and the P divider ratio must be four. Your calculation is completely right!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sometimes it is possible that the system works even with an incorrect P divider setting. Assume you want to get 90 MHz out. The correct CCO frequency is 180 MHz here (P divider ratio = 2), but it *might* still work with a P divider ratio of 4, as the resulting CCO frequency of 360 MHz is not too far out of the guaranteed operating window.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jul 2016 05:46:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC824-PLL-post-divider-is-not-working/m-p/554871#M14846</guid>
      <dc:creator>rolfmeeser</dc:creator>
      <dc:date>2016-07-12T05:46:01Z</dc:date>
    </item>
  </channel>
</rss>

