<?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: How to use LPC4357 RTC?</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-use-LPC4357-RTC/m-p/886650#M35530</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I've tried the workaround:&lt;/P&gt;&lt;P&gt;&amp;nbsp; - Don't use the pin 180 and 181 of LQFP208: Same issue. If I use Watchdog along with RTC, the application will reset.&lt;/P&gt;&lt;P&gt;&amp;nbsp; - Use external oscillator: RTC won't work at all because the 32kHz signal is not detected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. If you try&amp;nbsp;&lt;A class="link-titled" href="https://pastebin.com/QaGpBsbL" title="https://pastebin.com/QaGpBsbL"&gt;[C] LPC4357 RTC + Wwatchdog - Pastebin.com&lt;/A&gt;&amp;nbsp;&amp;nbsp;your application will not run for second time ( after clicking restart, and then run button).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I sense that writing to RTC register (even after waiting 2 seconds during initialization) will cause the some glitch that slows down the processor, thus watchdog reset will trigger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I disable watchdog reset option, I will enter watchdog timeout interrupt when running with RTC enabled. If RTC is not enabled, I will not enter watchdog timeout. Seems like RTC is causing the main cpu to become unstable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Mar 2019 10:25:55 GMT</pubDate>
    <dc:creator>uaz</dc:creator>
    <dc:date>2019-03-14T10:25:55Z</dc:date>
    <item>
      <title>How to use LPC4357 RTC?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-use-LPC4357-RTC/m-p/886646#M35526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any guide on how to use LPC4357 RTC correctly?&lt;/P&gt;&lt;P&gt;I'm having many issues with the RTC:&lt;/P&gt;&lt;P&gt;1. Using 32.768khz crystal:&amp;nbsp;everytime I update RTC time, the cpu will become glitchy. My freertos will freeze for 1-2 seconds. I tried without RTC, no issue with my freertos. Then I realised about the errata which might cause&amp;nbsp;this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Using external 32.768khz oscillator (connected to RTCX1, RTCX2 open): Unable to countdown LPC_ATIMER-&amp;gt;DOWNCOUNTER. Looks like rtc peripheral is not getting the clock signal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I configure external the external oscillator? I can't find any info, and I just use the same CREG0 clock setting as the crystal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you recommend an external oscillator that can work straight away with this MCU?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Mar 2019 07:10:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-use-LPC4357-RTC/m-p/886646#M35526</guid>
      <dc:creator>uaz</dc:creator>
      <dc:date>2019-03-12T07:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to use LPC4357 RTC?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-use-LPC4357-RTC/m-p/886647#M35527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.&lt;BR /&gt;To provide the fastest possible support, I'd highly recommend you to refer to the periph_rtc in the LPC4357's LPCOpen library, this demo shows how to use the RTC, generate periodic interrupts,&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/support/developer-resources/software-development-tools/lpc-developer-resources-/lpcopen-libraries-and-examples/lpcopen-software-development-platform-lpc43xx:LPCOPEN-SOFTWARE-FOR-LPC43XX" title="https://www.nxp.com/support/developer-resources/software-development-tools/lpc-developer-resources-/lpcopen-libraries-and-examples/lpcopen-software-development-platform-lpc43xx:LPCOPEN-SOFTWARE-FOR-LPC43XX"&gt;LPCOpen Software for LPC43XX | NXP&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;and use the alarm interrupt.&lt;BR /&gt;Hope it helps.&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>Wed, 13 Mar 2019 02:36:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-use-LPC4357-RTC/m-p/886647#M35527</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2019-03-13T02:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to use LPC4357 RTC?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-use-LPC4357-RTC/m-p/886648#M35528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've tried the example from lpcOpen. Results:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. 32kHz crystal: working&lt;/P&gt;&lt;P&gt;2. 32kHz oscillator: Stuck in the ATIMER downcount loop during initialization. Seems like RTC peripheral is not getting 32khz clock&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also found that using 32kHz crystal + RTC is buggy when I use Watchdog at the same time.&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can try the following code:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://pastebin.com/QaGpBsbL" title="https://pastebin.com/QaGpBsbL"&gt;[C] LPC4357 RTC + Wwatchdog - Pastebin.com&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The program can run the first time, but it won't run the second time after I click 'Restart' button.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Mar 2019 10:15:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-use-LPC4357-RTC/m-p/886648#M35528</guid>
      <dc:creator>uaz</dc:creator>
      <dc:date>2019-03-13T10:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to use LPC4357 RTC?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-use-LPC4357-RTC/m-p/886649#M35529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;BR /&gt;1. The 'bug' may cause the RTC to fail to run when using the external 32kHz oscillator, please follow the workaround to fix it.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_5.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/75253i88D7D71149F67588/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_5.png" alt="pastedImage_5.png" /&gt;&lt;/span&gt;&lt;BR /&gt;2. Whether you mean that the demo (&lt;A data-content-finding="Community" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fpastebin.com%2FQaGpBsbL" rel="nofollow" target="_blank"&gt;[C] LPC4357 RTC + Wwatchdog - Pastebin.com&lt;/A&gt;&amp;nbsp;) only can work once and it won't run anymore after reset.&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, 14 Mar 2019 06:32:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-use-LPC4357-RTC/m-p/886649#M35529</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2019-03-14T06:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to use LPC4357 RTC?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-use-LPC4357-RTC/m-p/886650#M35530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I've tried the workaround:&lt;/P&gt;&lt;P&gt;&amp;nbsp; - Don't use the pin 180 and 181 of LQFP208: Same issue. If I use Watchdog along with RTC, the application will reset.&lt;/P&gt;&lt;P&gt;&amp;nbsp; - Use external oscillator: RTC won't work at all because the 32kHz signal is not detected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. If you try&amp;nbsp;&lt;A class="link-titled" href="https://pastebin.com/QaGpBsbL" title="https://pastebin.com/QaGpBsbL"&gt;[C] LPC4357 RTC + Wwatchdog - Pastebin.com&lt;/A&gt;&amp;nbsp;&amp;nbsp;your application will not run for second time ( after clicking restart, and then run button).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I sense that writing to RTC register (even after waiting 2 seconds during initialization) will cause the some glitch that slows down the processor, thus watchdog reset will trigger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I disable watchdog reset option, I will enter watchdog timeout interrupt when running with RTC enabled. If RTC is not enabled, I will not enter watchdog timeout. Seems like RTC is causing the main cpu to become unstable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Mar 2019 10:25:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-use-LPC4357-RTC/m-p/886650#M35530</guid>
      <dc:creator>uaz</dc:creator>
      <dc:date>2019-03-14T10:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to use LPC4357 RTC?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-use-LPC4357-RTC/m-p/886651#M35531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi，&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;BR /&gt;I've run the application on my board: MCB4357(please check the attachment), it can work well after clicking the restart button, it doesn't encounter the issue you mentioned.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/77680i77BE09B6834CB8E9/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="text-align: center;"&gt;Fig 1 MCB4357 board&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/77501iB045560F9FC10233/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 style="text-align: center;"&gt;Fig 2 Testing&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>Fri, 15 Mar 2019 09:35:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-use-LPC4357-RTC/m-p/886651#M35531</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2019-03-15T09:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to use LPC4357 RTC?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-use-LPC4357-RTC/m-p/886652#M35532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Strange. I have confirmed that my mcu will stall/glitch whenever I write to the RTC registers. It probably caused by the board design since I'm using my own board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I would like to try external oscillator but I need more info how to provide external clock to the internal rtc. I did the following and both did not work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. RTCX1 signal: External oscillator with DC offset. ATIMER-&amp;gt;DOWNCOUNT will not count down. No clock signal detected on RTCX2.&lt;span class="lia-inline-image-display-wrapper" image-alt="DS0013.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/77547i05F99709247B03AB/image-size/large?v=v2&amp;amp;px=999" role="button" title="DS0013.PNG" alt="DS0013.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. RTCX1 signal:&amp;nbsp;&lt;SPAN&gt;External oscillator without DC offset. ATIMER-&amp;gt;DOWNCOUNT will not count down too. In addition, debugging will crash when I click 'restart'.&amp;nbsp;No clock signal detected on RTCX2.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="DS0014.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/77551iD7C8EF1259B5977D/image-size/large?v=v2&amp;amp;px=999" role="button" title="DS0014.PNG" alt="DS0014.PNG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Do you have suggestion on recommended external oscillator parts?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any particular setting that I need to set if using external oscillator?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2019 04:33:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-use-LPC4357-RTC/m-p/886652#M35532</guid>
      <dc:creator>uaz</dc:creator>
      <dc:date>2019-03-18T04:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to use LPC4357 RTC?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-use-LPC4357-RTC/m-p/886653#M35533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="289740" data-username="uaz" href="https://community.nxp.com/people/uaz"&gt;uaz&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;Hi，&lt;BR /&gt;Thanks for your reply.&lt;BR /&gt;According to the datasheet, RTCX1 signal meets the amplitude's requirement, so please check the coupling capacitance by yourself.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_14.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/77734i62DE6A130C3C943B/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_14.png" alt="pastedImage_14.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Actually, I have no idea except for the aforementioned workaround, maybe you can share the schematic about the external oscillator connection.&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>Mon, 18 Mar 2019 07:06:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-use-LPC4357-RTC/m-p/886653#M35533</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2019-03-18T07:06:42Z</dc:date>
    </item>
  </channel>
</rss>

