<?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: LPC822 XTAL configuration</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC822-XTAL-configuration/m-p/1190194#M43063</link>
    <description>&lt;P&gt;Hello Alexis,&lt;/P&gt;&lt;P&gt;Yes, I've set&amp;nbsp;&lt;SPAN&gt;pins PIO0_8 and the PIO0_9 to the XTALIN/XTALOUT function and I've verified that next code lines appears in pin_mux.c file:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;/* XTALIN connect to P0_8 */&lt;BR /&gt;SWM_SetFixedPinSelect(SWM0, kSWM_XTALIN, true);&lt;/P&gt;&lt;P&gt;/* XTALOUT connect to P0_9 */&lt;BR /&gt;SWM_SetFixedPinSelect(SWM0, kSWM_XTALOUT, true);&lt;/P&gt;&lt;P&gt;Pins are correct and system oscillator module is working because I can see 8MHz signal in CLKOUT pin when I select "clk_in" in CLKOUTSEL.&lt;/P&gt;&lt;P&gt;It seems that the problem is in the Main Clock Selector. I select "PLL input" signal with "CLOCK_SetMainClkSrc(kCLOCK_MainClkSrcSysPllin);" but no clock appears at "Main clock".&lt;/P&gt;&lt;P&gt;Is necesary that PLL module was enabled for catching the "PLL input" signal ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much,&lt;/P&gt;&lt;P&gt;Asier&lt;/P&gt;</description>
    <pubDate>Fri, 27 Nov 2020 08:56:14 GMT</pubDate>
    <dc:creator>asier</dc:creator>
    <dc:date>2020-11-27T08:56:14Z</dc:date>
    <item>
      <title>LPC822 XTAL configuration</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC822-XTAL-configuration/m-p/1188964#M43040</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;My code was working with 12MHz IRC_OSC and looking for accuracy I've decided to use a XTAL, so&amp;nbsp;I'm trying to configure an external 8MHz cristal oscilator. To do that, I've used mcuxpresso's clock configurator and code generator.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not able to run code with 8MHz SYS-OSC input. Code continues running at 12MHz with IRC. If I disable IRC_Osc, code is not executed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my code of clock configuration:&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;void BOARD_BootClockRUN(void)&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;{&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;/*!&amp;lt; Set up the clock sources */&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;/*!&amp;lt; Set up IRC */&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;POWER_DisablePD(kPDRUNCFG_PD_IRC_OUT); /*!&amp;lt; Ensure IRC OUT is on */&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;POWER_DisablePD(kPDRUNCFG_PD_IRC); /*!&amp;lt; Ensure IRC is on */&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;POWER_DisablePD(kPDRUNCFG_PD_SYSOSC); /*!&amp;lt; Ensure SYSOSC is on */&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;CLOCK_InitSysOsc(8000000U); /*!&amp;lt; Set main osc freq */&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;CLOCK_Select(kSYSPLL_From_SysOsc); /*!&amp;lt; set sysosc to pll select */&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;CLOCK_SetMainClkSrc(kCLOCK_MainClkSrcSysPllin); /*!&amp;lt; select pllin for main clock */&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;CLOCK_Select(kCLKOUT_From_MainClk); /*!&amp;lt; select main osc or mclkin for CLKOUT */&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;CLOCK_SetCoreSysClkDiv(1U);&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;CLOCK_SetClkDivider(kCLOCK_DivClkOut, 1U); /*!&amp;lt; set CLOCKOUT div */&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;CLOCK_UpdateClkOUTsrc(); /*!&amp;lt; updates the clock source of the CLKOUT pin */&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;CLOCK_SetClkDivider(kCLOCK_DivUsartClk, 1U); /*!&amp;lt; set UART div */&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;SYSCON-&amp;gt;UARTFRGDIV = 0; /*!&amp;gt; Set UARTFRGDIV */&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;CLOCK_SetUARTFRGMULT(0U); /*!&amp;lt; Set UARTFRGMULT */&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;POWER_EnablePD(kPDRUNCFG_PD_IRC_OUT); /*!&amp;lt; Disable IRC OUT */&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;POWER_EnablePD(kPDRUNCFG_PD_IRC); /*!&amp;lt; Disable IRC */&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;/*!&amp;lt; Set SystemCoreClock variable. */&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;SystemCoreClock = BOARD_BOOTCLOCKRUN_CORE_CLOCK;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Any helping with that ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Asier.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:01:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC822-XTAL-configuration/m-p/1188964#M43040</guid>
      <dc:creator>asier</dc:creator>
      <dc:date>2020-11-25T16:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: LPC822 XTAL configuration</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC822-XTAL-configuration/m-p/1189091#M43045</link>
      <description>&lt;P&gt;I forgot to mention that Im asigning CLKOUT to PIO0_4 pin. When selecting "clk_in" on CLKOUTSEL, I can see 8MHz in the output pin, but selecting "main_clk" option no signal appear.&lt;/P&gt;&lt;P&gt;In the other hand, if I leave IRC_osc enabled and we select "main_clk" option in&amp;nbsp;CLKOUTSEL, IRC_osc 12MHz signal appears in CLKOUT.&lt;/P&gt;&lt;P&gt;It seems like if MAINCLKSEL is not changing to "PLL input" mode but it stays at "IRC_clk" mode.&lt;/P&gt;&lt;P&gt;Any idea what I'm doing wrong ?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Asier.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 15:59:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC822-XTAL-configuration/m-p/1189091#M43045</guid>
      <dc:creator>asier</dc:creator>
      <dc:date>2020-11-25T15:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: LPC822 XTAL configuration</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC822-XTAL-configuration/m-p/1189874#M43059</link>
      <description>&lt;P&gt;I've tried with next:&lt;/P&gt;&lt;P&gt;SYSCON-&amp;gt;MAINCLKSEL = 0x01; // Main clock source select: PLL input&lt;BR /&gt;SYSCON-&amp;gt;MAINCLKUEN = 0x01; // Updtate new MAINCLKSEL clock source&lt;/P&gt;&lt;P&gt;but no way.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm stuck. Anybody there for helping ?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Asier.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Nov 2020 17:48:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC822-XTAL-configuration/m-p/1189874#M43059</guid>
      <dc:creator>asier</dc:creator>
      <dc:date>2020-11-26T17:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: LPC822 XTAL configuration</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC822-XTAL-configuration/m-p/1190030#M43061</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/79750"&gt;@asier&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Did you check that the pins PIO0_8 and the PIO0_9 are set to the XTALIN/XTALOUT function? This is not set by default.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Alexis Andalon&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2020 03:49:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC822-XTAL-configuration/m-p/1190030#M43061</guid>
      <dc:creator>Alexis_A</dc:creator>
      <dc:date>2020-11-27T03:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: LPC822 XTAL configuration</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC822-XTAL-configuration/m-p/1190194#M43063</link>
      <description>&lt;P&gt;Hello Alexis,&lt;/P&gt;&lt;P&gt;Yes, I've set&amp;nbsp;&lt;SPAN&gt;pins PIO0_8 and the PIO0_9 to the XTALIN/XTALOUT function and I've verified that next code lines appears in pin_mux.c file:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;/* XTALIN connect to P0_8 */&lt;BR /&gt;SWM_SetFixedPinSelect(SWM0, kSWM_XTALIN, true);&lt;/P&gt;&lt;P&gt;/* XTALOUT connect to P0_9 */&lt;BR /&gt;SWM_SetFixedPinSelect(SWM0, kSWM_XTALOUT, true);&lt;/P&gt;&lt;P&gt;Pins are correct and system oscillator module is working because I can see 8MHz signal in CLKOUT pin when I select "clk_in" in CLKOUTSEL.&lt;/P&gt;&lt;P&gt;It seems that the problem is in the Main Clock Selector. I select "PLL input" signal with "CLOCK_SetMainClkSrc(kCLOCK_MainClkSrcSysPllin);" but no clock appears at "Main clock".&lt;/P&gt;&lt;P&gt;Is necesary that PLL module was enabled for catching the "PLL input" signal ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much,&lt;/P&gt;&lt;P&gt;Asier&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2020 08:56:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC822-XTAL-configuration/m-p/1190194#M43063</guid>
      <dc:creator>asier</dc:creator>
      <dc:date>2020-11-27T08:56:14Z</dc:date>
    </item>
  </channel>
</rss>

