<?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: RTC on K64FX512M12 and 1sec ISR in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/RTC-on-K64FX512M12-and-1sec-ISR/m-p/415977#M23683</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Neil&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I don't think that roll-over-protection is a theme since it will roll-over only in about 2109 (which is the same issue that UTC generally has).&lt;/P&gt;&lt;P&gt;2. Yes, the counter can be written to at any time by the processor in supervisor mode.&lt;/P&gt;&lt;P&gt;3. The K64 has battery backup for the clock domain. When the processor has been power cycled this can be detected in the reset status register.&lt;/P&gt;&lt;P&gt;4. If the VBAT domain is power cycled the RTC has a flag to show that it hasn't been configured so that the configuration can be performed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the following for more details&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.utasker.com/docs/uTasker/uTasker_Time.pdf" title="http://www.utasker.com/docs/uTasker/uTasker_Time.pdf"&gt;http://www.utasker.com/docs/uTasker/uTasker_Time.pdf&lt;/A&gt; &lt;/P&gt;&lt;P&gt;In the uTakser project there is a complete Gregorian calendar time/date implementation for the K64, including SNTP for synchronising to a time server.&lt;/P&gt;&lt;P&gt;It also has low leakage support for using the RTC time as wake up support.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kinetis: &lt;A href="http://www.utasker.com/kinetis.html" title="http://www.utasker.com/kinetis.html"&gt;µTasker Kinetis support&lt;/A&gt; &lt;/P&gt;&lt;P&gt;K64: &lt;A href="http://www.utasker.com/kinetis/FRDM-K64F.html" title="http://www.utasker.com/kinetis/FRDM-K64F.html"&gt;µTasker Kinetis FRDM-K64F support&lt;/A&gt;&amp;nbsp; / &lt;A href="http://www.utasker.com/kinetis/TWR-K64F120M.html" title="http://www.utasker.com/kinetis/TWR-K64F120M.html"&gt;µTasker Kinetis TWR-K64F120M support&lt;/A&gt;&amp;nbsp; / &lt;A href="http://www.utasker.com/kinetis/TWR-K65F180M.html" title="http://www.utasker.com/kinetis/TWR-K65F180M.html"&gt;µTasker Kinetis TWR-K65F180M support&lt;/A&gt; &lt;/P&gt;&lt;P&gt;RTC/Time Management: &lt;A href="http://www.utasker.com/docs/uTasker/uTasker_Time.pdf" title="http://www.utasker.com/docs/uTasker/uTasker_Time.pdf"&gt;http://www.utasker.com/docs/uTasker/uTasker_Time.pdf&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;EM&gt;For the complete "out-of-the-box" Kinetis experience and faster time to market&lt;/EM&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Aug 2015 00:11:29 GMT</pubDate>
    <dc:creator>mjbcswitzerland</dc:creator>
    <dc:date>2015-08-07T00:11:29Z</dc:date>
    <item>
      <title>RTC on K64FX512M12 and 1sec ISR</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/RTC-on-K64FX512M12-and-1sec-ISR/m-p/415976#M23682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So after looking at the RTC on the (K64 Sub-Family Reference Manual).&amp;nbsp; I find that RTC doesn't have time and date,&lt;/P&gt;&lt;P&gt;instead there is a 32-bit seconds counter with roll-over protection.&amp;nbsp; The RTC has a 1sec ISR, that I believe that it is &lt;/P&gt;&lt;P&gt;always going after it has been activated in software.&amp;nbsp; I some questions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; What is "with roll-over protection"?&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; Is it possible to write to the 32-bit second counter register?&lt;/P&gt;&lt;P&gt;3.&amp;nbsp; When a power down situation occurs is there a flag that is set to detect it?&lt;/P&gt;&lt;P&gt;4.&amp;nbsp; When power is restore is there a flag that is set to detect it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2015 17:07:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/RTC-on-K64FX512M12-and-1sec-ISR/m-p/415976#M23682</guid>
      <dc:creator>neilporven</dc:creator>
      <dc:date>2015-08-05T17:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: RTC on K64FX512M12 and 1sec ISR</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/RTC-on-K64FX512M12-and-1sec-ISR/m-p/415977#M23683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Neil&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I don't think that roll-over-protection is a theme since it will roll-over only in about 2109 (which is the same issue that UTC generally has).&lt;/P&gt;&lt;P&gt;2. Yes, the counter can be written to at any time by the processor in supervisor mode.&lt;/P&gt;&lt;P&gt;3. The K64 has battery backup for the clock domain. When the processor has been power cycled this can be detected in the reset status register.&lt;/P&gt;&lt;P&gt;4. If the VBAT domain is power cycled the RTC has a flag to show that it hasn't been configured so that the configuration can be performed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the following for more details&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.utasker.com/docs/uTasker/uTasker_Time.pdf" title="http://www.utasker.com/docs/uTasker/uTasker_Time.pdf"&gt;http://www.utasker.com/docs/uTasker/uTasker_Time.pdf&lt;/A&gt; &lt;/P&gt;&lt;P&gt;In the uTakser project there is a complete Gregorian calendar time/date implementation for the K64, including SNTP for synchronising to a time server.&lt;/P&gt;&lt;P&gt;It also has low leakage support for using the RTC time as wake up support.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kinetis: &lt;A href="http://www.utasker.com/kinetis.html" title="http://www.utasker.com/kinetis.html"&gt;µTasker Kinetis support&lt;/A&gt; &lt;/P&gt;&lt;P&gt;K64: &lt;A href="http://www.utasker.com/kinetis/FRDM-K64F.html" title="http://www.utasker.com/kinetis/FRDM-K64F.html"&gt;µTasker Kinetis FRDM-K64F support&lt;/A&gt;&amp;nbsp; / &lt;A href="http://www.utasker.com/kinetis/TWR-K64F120M.html" title="http://www.utasker.com/kinetis/TWR-K64F120M.html"&gt;µTasker Kinetis TWR-K64F120M support&lt;/A&gt;&amp;nbsp; / &lt;A href="http://www.utasker.com/kinetis/TWR-K65F180M.html" title="http://www.utasker.com/kinetis/TWR-K65F180M.html"&gt;µTasker Kinetis TWR-K65F180M support&lt;/A&gt; &lt;/P&gt;&lt;P&gt;RTC/Time Management: &lt;A href="http://www.utasker.com/docs/uTasker/uTasker_Time.pdf" title="http://www.utasker.com/docs/uTasker/uTasker_Time.pdf"&gt;http://www.utasker.com/docs/uTasker/uTasker_Time.pdf&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;EM&gt;For the complete "out-of-the-box" Kinetis experience and faster time to market&lt;/EM&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2015 00:11:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/RTC-on-K64FX512M12-and-1sec-ISR/m-p/415977#M23683</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2015-08-07T00:11:29Z</dc:date>
    </item>
  </channel>
</rss>

