<?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: LPC845 running at 30 MHz in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC845-running-at-30-MHz/m-p/959018#M38005</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A _jive_internal="true" data-content-finding="Community" data-userid="292078" data-username="lubomirbogdanov" href="https://community.nxp.com/people/lubomirbogdanov"&gt;Lubomir Bogdanov&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt;From the User Manual of LPC845, we can know:&lt;/P&gt;&lt;P&gt;Fclkout = M * Fclkin&lt;/P&gt;&lt;P&gt;In you case, Fclkin = 12MHZ,&lt;/P&gt;&lt;P&gt;M = MSEL +1,&lt;/P&gt;&lt;P&gt;MSEL:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/83228i0FD51B3397A45BEB/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and FCLKOUT must be lower than 30 MHz.&lt;/P&gt;&lt;P&gt;So in your case, the the max of Fclkout is 24MHZ, and the system clock is 24MHZ, can't 30MHZ.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Jul 2019 08:59:34 GMT</pubDate>
    <dc:creator>Alice_Yang</dc:creator>
    <dc:date>2019-07-25T08:59:34Z</dc:date>
    <item>
      <title>LPC845 running at 30 MHz</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC845-running-at-30-MHz/m-p/959017#M38004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there!&lt;/P&gt;&lt;P&gt;I'm trying to run a LPC845 at 30 MHz with an external crystal resonator of value 12 MHz. I try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLOCK_EnableClock(kCLOCK_Iocon);&lt;BR /&gt; CLOCK_EnableClock(kCLOCK_Swm);&lt;BR /&gt; GPIO_PortInit(GPIO, 0);&lt;BR /&gt; GPIO_PortInit(GPIO, 1);&lt;/P&gt;&lt;P&gt;//---------------------------------------------------------------&lt;/P&gt;&lt;P&gt;clock_sys_pll_t pll_config;&lt;/P&gt;&lt;P&gt;pll_config.src = kCLOCK_SysPllSrcExtClk;&lt;BR /&gt; pll_config.targetFreq = 30000000;&lt;/P&gt;&lt;P&gt;POWER_DisablePD(kPDRUNCFG_PD_SYSOSC);&lt;BR /&gt; CLOCK_InitSysOsc(12000000);&lt;BR /&gt; CLOCK_InitSystemPll(&amp;amp;pll_config);&lt;BR /&gt; CLOCK_SetCoreSysClkDiv(1);&lt;BR /&gt; CLOCK_SetMainClkSrc(kCLOCK_MainClkSrcSysPll);&lt;/P&gt;&lt;P&gt;SystemCoreClock = CLOCK_GetMainClkFreq();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but SystemCoreClock returns 24000000 Hz. If I connect an oscilloscope probe at the XTAL I can see a 12-MHz oscillation, my PLL locks (I can tell because CLOCK_InitSystemPll( ) returns and does not block) but I suspect I still might be running off of the FRO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried a target frequency of 60 MHz and a division factor of 2 but no luck - then SystemCoreClock is 60000000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance,&lt;/P&gt;&lt;P&gt;Lubo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2019 20:43:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC845-running-at-30-MHz/m-p/959017#M38004</guid>
      <dc:creator>lubomirbogdanov</dc:creator>
      <dc:date>2019-07-23T20:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: LPC845 running at 30 MHz</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC845-running-at-30-MHz/m-p/959018#M38005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A _jive_internal="true" data-content-finding="Community" data-userid="292078" data-username="lubomirbogdanov" href="https://community.nxp.com/people/lubomirbogdanov"&gt;Lubomir Bogdanov&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt;From the User Manual of LPC845, we can know:&lt;/P&gt;&lt;P&gt;Fclkout = M * Fclkin&lt;/P&gt;&lt;P&gt;In you case, Fclkin = 12MHZ,&lt;/P&gt;&lt;P&gt;M = MSEL +1,&lt;/P&gt;&lt;P&gt;MSEL:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/83228i0FD51B3397A45BEB/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and FCLKOUT must be lower than 30 MHz.&lt;/P&gt;&lt;P&gt;So in your case, the the max of Fclkout is 24MHZ, and the system clock is 24MHZ, can't 30MHZ.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2019 08:59:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC845-running-at-30-MHz/m-p/959018#M38005</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2019-07-25T08:59:34Z</dc:date>
    </item>
  </channel>
</rss>

