<?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: LPC5528 Clock Setting in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5528-Clock-Setting/m-p/1771352#M54912</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;XiangJun Rong,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I tried to comment out the code related to configuring RTC OSC, and it led to USB1 device being not able to enumerate.&lt;/P&gt;&lt;P&gt;Also, from the MCUXpresso Config Tools v14, it showed that USB would not work if we didn't enable OSC32kHz_clock, which matched the same result from my test (commenting out the code related to configuring RTC OSC).&lt;/P&gt;&lt;P&gt;Could you please help me check if there is any flaw in my test result? BTW, the sample code I used was generated by MCUXpresso Config Tools v14.&lt;/P&gt;&lt;P&gt;Let me know if I need to provide any.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Peter&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 08 Dec 2023 06:44:00 GMT</pubDate>
    <dc:creator>tks11111</dc:creator>
    <dc:date>2023-12-08T06:44:00Z</dc:date>
    <item>
      <title>LPC5528 Clock Setting</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5528-Clock-Setting/m-p/1770657#M54898</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;Recently I was checking the clock setting of our project. Some questions comes out in my mind.&lt;/P&gt;&lt;P&gt;Here are the questions:&lt;/P&gt;&lt;P&gt;1. The user manual states that we need to enable the 32 kHz clock for USB1_PHY. However, I found a comment in the function USB_DeviceClockInit with the following content inside.&amp;nbsp;&lt;FONT color="#FF0000"&gt;call&amp;nbsp;POWER_DisablePD(kPDRUNCFG_PD_LDOUSBHS); /*!&amp;lt; Ensure xtal32k is on */&lt;BR /&gt;&lt;/FONT&gt;Do we need a xtal32k crystal for USB1? This is strange because I set up the osc32kHz in BOARD_BootClockPLL150M. You can see the following.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;FONT color="#FF0000"&gt;&lt;SPAN&gt;/*!&amp;lt; Configure RTC OSC */&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#FF0000"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;POWER_EnablePD&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;kPDRUNCFG_PD_XTAL32K&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;SPAN&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/*!&amp;lt; Powered down the XTAL 32 kHz RTC oscillator */&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#FF0000"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;POWER_DisablePD&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;kPDRUNCFG_PD_FRO32K&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;SPAN&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/*!&amp;lt; Powered the FRO 32 kHz RTC oscillator */&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#FF0000"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;CLOCK_AttachClk&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;kFRO32K_to_OSC32K&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;SPAN&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/*!&amp;lt; Switch OSC32K to FRO32K */&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#FF0000"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;CLOCK_EnableClock&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;kCLOCK_Rtc&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;SPAN&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /*!&amp;lt; Enable the RTC peripheral clock */&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#FF0000"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;RTC&lt;/SPAN&gt;&lt;SPAN&gt;-&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;CTRL&lt;/SPAN&gt; &lt;SPAN&gt;&amp;amp;=&lt;/SPAN&gt; &lt;SPAN&gt;~&lt;/SPAN&gt;&lt;SPAN&gt;RTC_CTRL_SWRESET_MASK&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;SPAN&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /*!&amp;lt; Make sure the reset bit is cleared */&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN&gt;2. If we do need the xtal32k for USB1, what's the freq tolerance for it?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;3. For xtal32M, it can support the frequency from 12M to 32M. For my project, the peripheral frequencies I need are all below 12 M (except for USB1). Is there any difference in power consumption if I choose 32M instead of 12M?&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2023 10:16:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5528-Clock-Setting/m-p/1770657#M54898</guid>
      <dc:creator>tks11111</dc:creator>
      <dc:date>2023-12-07T10:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: LPC5528 Clock Setting</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5528-Clock-Setting/m-p/1771325#M54908</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;For LPC552x, the 32KHz RTC clock is only used when the USB1 is host and in low power mode, when the USB1 PLL is off and reference clock is also powered down, the&amp;nbsp; 32 kHz clock is used to send Resume to respond to the device remote wake-up (for host mode only). &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope it can help you&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2023 05:51:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5528-Clock-Setting/m-p/1771325#M54908</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2023-12-08T05:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: LPC5528 Clock Setting</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5528-Clock-Setting/m-p/1771352#M54912</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;XiangJun Rong,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I tried to comment out the code related to configuring RTC OSC, and it led to USB1 device being not able to enumerate.&lt;/P&gt;&lt;P&gt;Also, from the MCUXpresso Config Tools v14, it showed that USB would not work if we didn't enable OSC32kHz_clock, which matched the same result from my test (commenting out the code related to configuring RTC OSC).&lt;/P&gt;&lt;P&gt;Could you please help me check if there is any flaw in my test result? BTW, the sample code I used was generated by MCUXpresso Config Tools v14.&lt;/P&gt;&lt;P&gt;Let me know if I need to provide any.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Peter&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2023 06:44:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5528-Clock-Setting/m-p/1771352#M54912</guid>
      <dc:creator>tks11111</dc:creator>
      <dc:date>2023-12-08T06:44:00Z</dc:date>
    </item>
    <item>
      <title>Re: LPC5528 Clock Setting</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5528-Clock-Setting/m-p/1772050#M54920</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I suggest you refer to RTC module init function, I copy it here.&lt;/P&gt;
&lt;DIV style="background-color: #ffffff; padding: 0px 0px 0px 2px;"&gt;
&lt;DIV style="color: #000000; background-color: #ffffff; font-family: 'Consolas'; font-size: 10pt; white-space: nowrap;"&gt;
&lt;P&gt;&lt;SPAN&gt;void&lt;/SPAN&gt; &lt;SPAN&gt;RTC_Init&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;RTC_Type&lt;/SPAN&gt;&lt;SPAN&gt; *base)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;#if&lt;/SPAN&gt;&lt;SPAN&gt; !(defined(FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL) &amp;amp;&amp;amp; FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;/* Enable the RTC peripheral clock */&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt; CLOCK_EnableClock(&lt;/SPAN&gt;&lt;SPAN&gt;kCLOCK_Rtc&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;#endif&lt;/SPAN&gt; &lt;SPAN&gt;/* FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL */&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;#if&lt;/SPAN&gt;&lt;SPAN&gt; !(defined(FSL_FEATURE_RTC_HAS_NO_RESET) &amp;amp;&amp;amp; FSL_FEATURE_RTC_HAS_NO_RESET)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt; RESET_PeripheralReset(&lt;/SPAN&gt;&lt;SPAN&gt;kRTC_RST_SHIFT_RSTn&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;#endif&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;/* Make sure the reset bit is cleared */&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt; base-&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;CTRL&lt;/SPAN&gt;&lt;SPAN&gt; &amp;amp;= ~RTC_CTRL_SWRESET_MASK;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;#if&lt;/SPAN&gt;&lt;SPAN&gt; !(defined(FSL_FEATURE_RTC_HAS_NO_OSC_PD) &amp;amp;&amp;amp; FSL_FEATURE_RTC_HAS_NO_OSC_PD)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;/* Make sure the RTC OSC is powered up */&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt; base-&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;CTRL&lt;/SPAN&gt;&lt;SPAN&gt; &amp;amp;= ~RTC_CTRL_RTC_OSC_PD_MASK;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;#endif&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope it can help you&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;BR&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;XiangJun Rong&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 11 Dec 2023 07:53:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5528-Clock-Setting/m-p/1772050#M54920</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2023-12-11T07:53:34Z</dc:date>
    </item>
  </channel>
</rss>

