<?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: Integrated RTC to human reaadable format in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Integrated-RTC-to-human-reaadable-format/m-p/1998202#M57293</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;XiangJun&amp;nbsp;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks for the information. I am trying to get an RTC working on a&amp;nbsp;MKV58F1M0xxx24 (not sure it has one, though -- can't find it in the docs).&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I included your files and tried compiling my project. There are lots of compilation errors. Among others, the following are undeclared:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;RTC_CTRL_ALARMDPD_EN_MASK&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;RTC_CTRL_WAKEDPD_EN_MASK&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;RTC_CTRL_ALARM1HZ_MASK&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;RTC_CTRL_WAKE1KHZ_MASK&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;etc.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Also, the core datatype&amp;nbsp;RTC_Type is not defined.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Am I missing a header file somewhere?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks again,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Robert&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 20 Nov 2024 19:15:16 GMT</pubDate>
    <dc:creator>robertholm73</dc:creator>
    <dc:date>2024-11-20T19:15:16Z</dc:date>
    <item>
      <title>Integrated RTC to human reaadable format</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Integrated-RTC-to-human-reaadable-format/m-p/1011233#M39634</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;Some&amp;nbsp;microcontrollers from NXP include a RTC module (which&amp;nbsp;is not a true RTC chip). This module has a 32 bit counter that counts once per second to keep track the time even when the main power supply is absent. The company ST does the same with its uC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to keep track of the time in the format we're used to, we need to convert the integer value of the counter to day/month/year, hh:mm:ss. In a console program it's too easy because of the library functions in &amp;lt;time.h&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm wondering whether we can use such library in order to convert seconds to calendar/time, as mentioned, in our projects. I understand we need to provide&amp;nbsp;somehow&amp;nbsp;to the library the integer seconds from our uC when our system boots up.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't found the time.c file in the MCUXpresso installation. Looking inside this file (if it exists) I might figure out how to inject my counter (I hope so). Has&amp;nbsp;someone tried to use time.h and time.c module in tiny uC (LPC11U68, for example)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There's always the option to code our own algorithms in case what I'm asking is not possible, or even worst,&amp;nbsp;to use an external I2C chip. Any hints?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Dec 2019 03:49:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Integrated-RTC-to-human-reaadable-format/m-p/1011233#M39634</guid>
      <dc:creator>fjrg76</dc:creator>
      <dc:date>2019-12-23T03:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: Integrated RTC to human reaadable format</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Integrated-RTC-to-human-reaadable-format/m-p/1011234#M39635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Javier,&lt;/P&gt;&lt;P&gt;We have similar function in SDK package, the 32 bits RTC counter value can be converted to year,month,day, hour, minute and second.&lt;/P&gt;&lt;P&gt;I attach the rtc.c fsl_rtc.c and fsl_rtc.h here, the fsl_rtc.c is rtc driver.&lt;/P&gt;&lt;P&gt;You can download sdk package from the link:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/design/software/development-software/mcuxpresso-software-and-tools/mcuxpresso-software-development-kit-sdk:MCUXpresso-SDK" title="https://www.nxp.com/design/software/development-software/mcuxpresso-software-and-tools/mcuxpresso-software-development-kit-sdk:MCUXpresso-SDK"&gt;MCUXpresso SDK | Software Development for Kinetis, LPC, and i.MX MCUs | NXP&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The attached file is based on LPC55S69 sdk package.&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;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Dec 2019 13:36:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Integrated-RTC-to-human-reaadable-format/m-p/1011234#M39635</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2019-12-23T13:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: Integrated RTC to human reaadable format</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Integrated-RTC-to-human-reaadable-format/m-p/1011235#M39636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, thank you for your prompt answer. I didn't see any attached file, so I guess it's embedded in the link you provided. I'll check it out ASAP.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Meanwhile, I can tell I found my way to get around this issue. I adapted the more general conversions algorithms from &lt;A href="http://howardhinnant.github.io/date_algorithms.html"&gt;here&lt;/A&gt;&amp;nbsp;(by Howard Hinnant)&amp;nbsp;to an embedded chip (LPC11U68). I'll will post them, again, ASAP and I'll will also post&amp;nbsp;my answer here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Dec 2019 22:24:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Integrated-RTC-to-human-reaadable-format/m-p/1011235#M39636</guid>
      <dc:creator>fjrg76</dc:creator>
      <dc:date>2019-12-28T22:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: Integrated RTC to human reaadable format</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Integrated-RTC-to-human-reaadable-format/m-p/1998202#M57293</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;XiangJun&amp;nbsp;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks for the information. I am trying to get an RTC working on a&amp;nbsp;MKV58F1M0xxx24 (not sure it has one, though -- can't find it in the docs).&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I included your files and tried compiling my project. There are lots of compilation errors. Among others, the following are undeclared:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;RTC_CTRL_ALARMDPD_EN_MASK&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;RTC_CTRL_WAKEDPD_EN_MASK&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;RTC_CTRL_ALARM1HZ_MASK&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;RTC_CTRL_WAKE1KHZ_MASK&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;etc.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Also, the core datatype&amp;nbsp;RTC_Type is not defined.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Am I missing a header file somewhere?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks again,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Robert&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2024 19:15:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Integrated-RTC-to-human-reaadable-format/m-p/1998202#M57293</guid>
      <dc:creator>robertholm73</dc:creator>
      <dc:date>2024-11-20T19:15:16Z</dc:date>
    </item>
  </channel>
</rss>

