<?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 and Sleep-Mode in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/RTC-and-Sleep-Mode/m-p/361932#M18445</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your reply .. I think I am on the trace! I use the hack where the 32 khz is looped back from PTC3 to PTC1 as described here: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-94734" title="https://community.freescale.com/docs/DOC-94734"&gt;https://community.freescale.com/docs/DOC-94734&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I use LLS mode (&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM&gt;DOM_STOP and Low power mode settings/Operation mode settings/Stop operation mode = LLS &lt;/EM&gt;&lt;/SPAN&gt;) but the RTC clock generation does not work when the controller is sleeping. I think this does not work in LLS mode because the output pins are latched.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it true that I need to use an external 32 khz clock generator for the RTC if I want to use it in LLS mode?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx, Dominic&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Oct 2014 19:50:48 GMT</pubDate>
    <dc:creator>astdom01</dc:creator>
    <dc:date>2014-10-30T19:50:48Z</dc:date>
    <item>
      <title>RTC and Sleep-Mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/RTC-and-Sleep-Mode/m-p/361929#M18442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just started useing Kinetis L25 Controller with ProcessorExport. Now I face a Problem when I try to use the Sleep-Mode with a running RTC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an auto-initializing RTC-Component which is running well.&lt;/P&gt;&lt;P&gt;I have "Very low power modes" and "Low leakage stop mode" allowed in "Cpu/Low power mode Settings/Allowed power modes".&lt;/P&gt;&lt;P&gt;I have all Settings disabled in "Cpu/Low power mode Settings/LLWU Settings/Settings" even "RTC" and "RTC_Seconds"&lt;/P&gt;&lt;P&gt;(See image below)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I Switch to the sleep-mode with the following command:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Cpu_SetOperationMode(&lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: 10pt;"&gt;DOM_SLEEP&lt;/EM&gt;&lt;SPAN style="font-size: 10pt;"&gt;, NULL, NULL);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Without RTC I remain in sleep-mode forever. With the RTC enabled I just wake up again with &lt;/SPAN&gt;ERR_OK as return code. I do not really understand this behaviour because RTC and RTC_Seconds are disabled in the LLWU settings. Can anyone give me a hint what is happening here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for any help .. Dominic&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="llwu_settings.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/45853i8ABAEAB49BABE3E0/image-size/large?v=v2&amp;amp;px=999" role="button" title="llwu_settings.png" alt="llwu_settings.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 11:13:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/RTC-and-Sleep-Mode/m-p/361929#M18442</guid>
      <dc:creator>astdom01</dc:creator>
      <dc:date>2014-10-29T11:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: RTC and Sleep-Mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/RTC-and-Sleep-Mode/m-p/361930#M18443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hm, I think I found my mistake partly.. when I use &lt;SPAN style="font-size: 10pt;"&gt;&lt;EM&gt;DOM_SLEEP I use VLPS mode and not LLS mode as I expected. In VLPS mode LLWU is not used and therefore LLWU configuration has no effect (as I understand). Instead AWIC is used and that explaines why the controller wakes up on RTC interrupt.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM&gt;In this sense my program behaves as expected now - as long as I use the debugger to run it. When I flash the programm and power the device without debugger attached it remains in sleep mode and does not wake up. That's very strange! I hope to find this problem too.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM&gt;Thank you for any hint. Best regards, Dominic&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 22:11:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/RTC-and-Sleep-Mode/m-p/361930#M18443</guid>
      <dc:creator>astdom01</dc:creator>
      <dc:date>2014-10-29T22:11:54Z</dc:date>
    </item>
    <item>
      <title>Re: Re: RTC and Sleep-Mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/RTC-and-Sleep-Mode/m-p/361931#M18444</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;You need to check that the source clock your are using for the RTC module is also enable in VLLSx mode, also depends on the VLLS mode you are entering.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="note.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/47150iBE6CFD8BB2A09C9E/image-size/large?v=v2&amp;amp;px=999" role="button" title="note.jpg" alt="note.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can refer to the Table 5-1 Clock Summary of the &lt;A href="http://cache.freescale.com/files/32bit/doc/ref_manual/KL25P80M48SF0RM.pdf?fasp=1&amp;amp;WT_TYPE=Reference%20Manuals&amp;amp;WT_VENDOR=FREESCALE&amp;amp;WT_FILE_FORMAT=pdf&amp;amp;WT_ASSET=Documentation&amp;amp;fileExt=.pdf" title="http://cache.freescale.com/files/32bit/doc/ref_manual/KL25P80M48SF0RM.pdf?fasp=1&amp;amp;WT_TYPE=Reference%20Manuals&amp;amp;WT_VENDOR=FREESCALE&amp;amp;WT_FILE_FORMAT=pdf&amp;amp;WT_ASSET=Documentation&amp;amp;fileExt=.pdf"&gt;Reference Manual&lt;/A&gt; to see which clock are enable in VLLSx modes; also refer to the Table 7-1 Chip power modes there you can find specific information for each mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; font-weight: inherit; font-style: inherit; font-size: 12.7273px; font-family: inherit; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: Arial, sans-serif;"&gt;I hope this information can help you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12.7273px; font-family: inherit; color: #3d3d3d;"&gt;Regards,&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12.7273px; font-family: inherit; color: #3d3d3d;"&gt;Adrian&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12.7273px; font-family: inherit; color: #3d3d3d;"&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12.7273px; font-family: inherit; color: #3d3d3d;"&gt;Note: If this post answers your question, please click the Correct Answer button. It would be nice!&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12.7273px; font-family: inherit; color: #3d3d3d;"&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 03:38:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/RTC-and-Sleep-Mode/m-p/361931#M18444</guid>
      <dc:creator>adriancano</dc:creator>
      <dc:date>2014-10-30T03:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: RTC and Sleep-Mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/RTC-and-Sleep-Mode/m-p/361932#M18445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your reply .. I think I am on the trace! I use the hack where the 32 khz is looped back from PTC3 to PTC1 as described here: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-94734" title="https://community.freescale.com/docs/DOC-94734"&gt;https://community.freescale.com/docs/DOC-94734&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I use LLS mode (&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM&gt;DOM_STOP and Low power mode settings/Operation mode settings/Stop operation mode = LLS &lt;/EM&gt;&lt;/SPAN&gt;) but the RTC clock generation does not work when the controller is sleeping. I think this does not work in LLS mode because the output pins are latched.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it true that I need to use an external 32 khz clock generator for the RTC if I want to use it in LLS mode?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx, Dominic&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 19:50:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/RTC-and-Sleep-Mode/m-p/361932#M18445</guid>
      <dc:creator>astdom01</dc:creator>
      <dc:date>2014-10-30T19:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: RTC and Sleep-Mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/RTC-and-Sleep-Mode/m-p/361933#M18446</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;I hadn't done it but regarding the Reference manual also the LPO can be selected as the ERCLK32K clock source, check the comments on the &lt;A _jive_internal="true" data-containerid="2019" data-containertype="14" data-content-finding="Community" data-objectid="94734" data-objecttype="102" href="https://community.nxp.com/docs/DOC-94734"&gt;https://community.freescale.com/docs/DOC-94734&lt;/A&gt; document. Some members present a different way to use the RTC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="rtc clock.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/43828i1B8ED1082AFEC4BE/image-size/large?v=v2&amp;amp;px=999" role="button" title="rtc clock.jpg" alt="rtc clock.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The LPO clock remains on VLLS3 mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; font-weight: inherit; font-style: inherit; font-size: 12.7273px; font-family: inherit; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: Arial, sans-serif;"&gt;I hope this information can help you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12.7273px; font-family: inherit; color: #3d3d3d;"&gt;Regards,&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12.7273px; font-family: inherit; color: #3d3d3d;"&gt;Adrian&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12.7273px; font-family: inherit; color: #3d3d3d;"&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12.7273px; font-family: inherit; color: #3d3d3d;"&gt;Note: If this post answers your question, please click the Correct Answer button. It would be nice!&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12.7273px; font-family: inherit; color: #3d3d3d;"&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 21:25:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/RTC-and-Sleep-Mode/m-p/361933#M18446</guid>
      <dc:creator>adriancano</dc:creator>
      <dc:date>2014-10-30T21:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: RTC and Sleep-Mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/RTC-and-Sleep-Mode/m-p/361934#M18447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dominic-san,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;almost all MGC clock would stop in the low power mode. You could choose LPO as the CLKOUT because LPO did not stop even in the low power mode. However in the case, the clock loop-back would not be needed because LPO could directly drive RTC. The only disadvantage to use LPO, the time would be longer by 32 times because LPO runs at 1kHz. Do this help you?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Yasuhiko Koumoto.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2014 10:43:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/RTC-and-Sleep-Mode/m-p/361934#M18447</guid>
      <dc:creator>yasuhikokoumoto</dc:creator>
      <dc:date>2014-10-31T10:43:03Z</dc:date>
    </item>
  </channel>
</rss>

