<?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: Using RTC on LPC-Link2 in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Using-RTC-on-LPC-Link2/m-p/641224#M25361</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carlos,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply, but unfortunately it did not help me much.&lt;/P&gt;&lt;P&gt;I do not find the periph_rtc example waiting for the RTC to be fully initialized. Also, the periph_rtc demo does not run through&amp;nbsp;Chip_RTC_Init(LPC_RTC).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you tell me if the pseudo-code above is correct? When does the program need to wait a few seconds to fully initialize?&lt;/P&gt;&lt;P&gt;If any of my statements do not make sense or are incorrect, please point out the mistakes. Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Nov 2016 18:55:37 GMT</pubDate>
    <dc:creator>mtenw</dc:creator>
    <dc:date>2016-11-23T18:55:37Z</dc:date>
    <item>
      <title>Using RTC on LPC-Link2</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Using-RTC-on-LPC-Link2/m-p/641221#M25358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have been trying to run the periph_rtc example on the LPC-Link2 (LPC4370) board but was not successful. So questions come up:&lt;/P&gt;&lt;P&gt;- Can we run periph_rtc example on LPC-Link2 board? Or it requires other board modification, perhaps adding an external oscillator?&lt;/P&gt;&lt;P&gt;- If RTC can be used on LPC-Link2 board directly. Can anybody kindly point out the tips?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2016 01:41:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Using-RTC-on-LPC-Link2/m-p/641221#M25358</guid>
      <dc:creator>mtenw</dc:creator>
      <dc:date>2016-11-09T01:41:51Z</dc:date>
    </item>
    <item>
      <title>Re: Using RTC on LPC-Link2</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Using-RTC-on-LPC-Link2/m-p/641222#M25359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is the code to enable RTC, set time, and read time from it. I use the LPC-Link2 as the debug probe and connect to another LPC-Link2 board. The program was unable to run through the do-while loop after the LPC_RTC-&amp;gt;CCR |= RTC_CCR_CTCRST statement. Then it crashed eventually. What is the problem? Please help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chip_Clock_RTCEnable();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delay(3000);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Disable RTC */&lt;BR /&gt;LPC_RTC-&amp;gt;CCR &amp;amp;= (~RTC_CCR_CLKEN) &amp;amp; RTC_CCR_BITMASK;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Disable Calibration */&lt;BR /&gt;LPC_RTC-&amp;gt;CCR |= RTC_CCR_CCALEN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Reset RTC Clock */&lt;BR /&gt;LPC_RTC-&amp;gt;CCR |= RTC_CCR_CTCRST;&lt;BR /&gt;do {&lt;BR /&gt;} while ((LPC_RTC-&amp;gt;CCR &amp;amp; RTC_CCR_CTCRST) != RTC_CCR_CTCRST);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Finish resetting RTC clock */&lt;BR /&gt;LPC_RTC-&amp;gt;CCR &amp;amp;= (~RTC_CCR_CTCRST) &amp;amp; RTC_CCR_BITMASK;&lt;BR /&gt;do {&lt;BR /&gt;} while (LPC_RTC-&amp;gt;CCR &amp;amp; RTC_CCR_CTCRST);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Clear counter increment and alarm interrupt */&lt;BR /&gt;LPC_RTC-&amp;gt;ILR = RTC_IRL_RTCCIF | RTC_IRL_RTCALF;&lt;BR /&gt;while (LPC_RTC-&amp;gt;ILR != 0) {}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Clear all register to be default */&lt;BR /&gt;LPC_RTC-&amp;gt;CIIR = 0x00;&lt;BR /&gt;LPC_RTC-&amp;gt;AMR = 0xFF;&lt;BR /&gt;LPC_RTC-&amp;gt;CALIBRATION = 0x00;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;// Set time&lt;BR /&gt;Chip_RTC_SetFullTime(LPC_RTC, &amp;amp;FullTime);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Enable RTC time counters&lt;BR /&gt;Chip_RTC_Enable(LPC_RTC, ENABLE);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Read time&lt;BR /&gt;Chip_RTC_GetFullTime(LPC_RTC, &amp;amp;FullTime);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2016 18:45:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Using-RTC-on-LPC-Link2/m-p/641222#M25359</guid>
      <dc:creator>mtenw</dc:creator>
      <dc:date>2016-11-09T18:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: Using RTC on LPC-Link2</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Using-RTC-on-LPC-Link2/m-p/641223#M25360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mtenw,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are no special connection requirements to run this example but please notice that it will take a few seconds to fully initialize the demo and start running, this is due to the implementation of this RTC block in the 3-core system (many different timing domains) and due to the strong focus on low power implementation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Carlos Mendoza&lt;BR /&gt;Technical Support Engineer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Nov 2016 17:47:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Using-RTC-on-LPC-Link2/m-p/641223#M25360</guid>
      <dc:creator>Carlos_Mendoza</dc:creator>
      <dc:date>2016-11-23T17:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: Using RTC on LPC-Link2</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Using-RTC-on-LPC-Link2/m-p/641224#M25361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carlos,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply, but unfortunately it did not help me much.&lt;/P&gt;&lt;P&gt;I do not find the periph_rtc example waiting for the RTC to be fully initialized. Also, the periph_rtc demo does not run through&amp;nbsp;Chip_RTC_Init(LPC_RTC).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you tell me if the pseudo-code above is correct? When does the program need to wait a few seconds to fully initialize?&lt;/P&gt;&lt;P&gt;If any of my statements do not make sense or are incorrect, please point out the mistakes. Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Nov 2016 18:55:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Using-RTC-on-LPC-Link2/m-p/641224#M25361</guid>
      <dc:creator>mtenw</dc:creator>
      <dc:date>2016-11-23T18:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: Using RTC on LPC-Link2</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Using-RTC-on-LPC-Link2/m-p/641225#M25362</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;&amp;nbsp; I was also want to use RTC on LPC-Link2. &amp;nbsp;I notice from the LPC-Link2 schematic (Revision C) that the VBAT pin is NOT connected VIO_3V3 but to GND via a capacitor. &amp;nbsp;I could not find C19 from the board. &amp;nbsp;Can NXP support verify this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2017 04:51:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Using-RTC-on-LPC-Link2/m-p/641225#M25362</guid>
      <dc:creator>hmyoong</dc:creator>
      <dc:date>2017-02-24T04:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: Using RTC on LPC-Link2</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Using-RTC-on-LPC-Link2/m-p/641226#M25363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Mtenw,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I am using LPC4367 for my development and I also faced the same issue while executing&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;"LPC_RTC-&amp;gt;CCR |= RTC_CCR_CTCRST statement"&amp;nbsp; it crashed eventually.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;But then I found problem is in my customize board where the&amp;nbsp;32.768KHZ crystal required for the RTC was connected in reverse. So&amp;nbsp; modified the same and checked , now it is working.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I refered the schematic of OM13088 and replicated the same and now it is working fine.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Thanks&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Gaurav More&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2019 04:27:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Using-RTC-on-LPC-Link2/m-p/641226#M25363</guid>
      <dc:creator>gauravmore</dc:creator>
      <dc:date>2019-05-17T04:27:07Z</dc:date>
    </item>
  </channel>
</rss>

