<?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: Switch between external crystal oscillator and fro on LPC546xx</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Switch-between-external-crystal-oscillator-and-fro-on-LPC546xx/m-p/872457#M34815</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jerry,&lt;/P&gt;&lt;P&gt;I currently don't have LPC54628 board but I make a quick test on my LPC54608 board.&lt;/P&gt;&lt;P&gt;I use 12M external OSC, PLL, output System clock 48M, main_clock 48M. external OSC works well from my side.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;clock diagram:&lt;/STRONG&gt;&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/33932i1CD524F923CF0D76/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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The accordingly initialization code is attached.&lt;/P&gt;&lt;P&gt;If your external osc is not workable, you can't even debug code. for example, during clock initialization, when you execute/debug code of switch MAIN_CLK to&amp;nbsp; to system PLL, debug fails and loses connection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To check clock setting, you can set CLKOUTSELA register to orient clk_in or main_clk or pll_clk to CLKOUT pin, measure this pin with scope. see if the output is correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if your external OSC configuration is wrong, normally the code will be stuck there during running; if you are doing debug, you will see debug lose connection during clock configuration code. The popped up error message such as " Target error from register access",etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will not switch to&amp;nbsp;internal FRO automatically by MCU when&amp;nbsp;external crystal osc is failed.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jun Zhang&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Jan 2019 07:36:50 GMT</pubDate>
    <dc:creator>ZhangJennie</dc:creator>
    <dc:date>2019-01-16T07:36:50Z</dc:date>
    <item>
      <title>Switch between external crystal oscillator and fro on LPC546xx</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Switch-between-external-crystal-oscillator-and-fro-on-LPC546xx/m-p/872456#M34814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear&lt;/P&gt;&lt;P&gt;I have&amp;nbsp;two questions on switching between external crystal osc and internal fro.&lt;/P&gt;&lt;P&gt;MCU: LPC54628&lt;/P&gt;&lt;P&gt;1. In defalut, LPC54628 uses intenal FRO 12M&amp;nbsp;&amp;nbsp;on reset. if I want to switch to external osc(XTALin)&amp;nbsp;as CLK_IN, what procedure should be followed to promise the stable.&amp;nbsp; Is there any status we can check the Eternal OSC works well.&lt;/P&gt;&lt;P&gt;2. What will be occured when&amp;nbsp;external crystal osc is failed, does it&amp;nbsp;switch to&amp;nbsp;internal FRO automatically by MCU?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2019 03:08:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Switch-between-external-crystal-oscillator-and-fro-on-LPC546xx/m-p/872456#M34814</guid>
      <dc:creator>jerrycai</dc:creator>
      <dc:date>2019-01-14T03:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: Switch between external crystal oscillator and fro on LPC546xx</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Switch-between-external-crystal-oscillator-and-fro-on-LPC546xx/m-p/872457#M34815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jerry,&lt;/P&gt;&lt;P&gt;I currently don't have LPC54628 board but I make a quick test on my LPC54608 board.&lt;/P&gt;&lt;P&gt;I use 12M external OSC, PLL, output System clock 48M, main_clock 48M. external OSC works well from my side.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;clock diagram:&lt;/STRONG&gt;&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/33932i1CD524F923CF0D76/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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The accordingly initialization code is attached.&lt;/P&gt;&lt;P&gt;If your external osc is not workable, you can't even debug code. for example, during clock initialization, when you execute/debug code of switch MAIN_CLK to&amp;nbsp; to system PLL, debug fails and loses connection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To check clock setting, you can set CLKOUTSELA register to orient clk_in or main_clk or pll_clk to CLKOUT pin, measure this pin with scope. see if the output is correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if your external OSC configuration is wrong, normally the code will be stuck there during running; if you are doing debug, you will see debug lose connection during clock configuration code. The popped up error message such as " Target error from register access",etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will not switch to&amp;nbsp;internal FRO automatically by MCU when&amp;nbsp;external crystal osc is failed.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jun Zhang&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2019 07:36:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Switch-between-external-crystal-oscillator-and-fro-on-LPC546xx/m-p/872457#M34815</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2019-01-16T07:36:50Z</dc:date>
    </item>
  </channel>
</rss>

