<?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 Sleep mode in MKW01Z in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Sleep-mode-in-MKW01Z/m-p/716533#M43971</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use use sleep mode, but I can only wake in 65535 ms&amp;nbsp; seconds in maximum only.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to wake i time in 30 minutes. Is it possible to do?&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code for sleep mode:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; PWRP_Init();&lt;BR /&gt; PWRP_ConfigureXCVRMode(pwrp_xcvr_sleep);&lt;BR /&gt; // Set timer source for wake up&amp;nbsp;&lt;SPAN&gt;LPTM&lt;/SPAN&gt;&lt;BR /&gt; PWRP_SetWakeUpSource(0x01);&lt;BR /&gt; &lt;SPAN&gt;PWRP_UpdateLPTMRCount(60 * 1000);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Enter_VLPS();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Apr 2018 17:53:41 GMT</pubDate>
    <dc:creator>sergiiparadiuk</dc:creator>
    <dc:date>2018-04-30T17:53:41Z</dc:date>
    <item>
      <title>Sleep mode in MKW01Z</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Sleep-mode-in-MKW01Z/m-p/716533#M43971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use use sleep mode, but I can only wake in 65535 ms&amp;nbsp; seconds in maximum only.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to wake i time in 30 minutes. Is it possible to do?&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code for sleep mode:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; PWRP_Init();&lt;BR /&gt; PWRP_ConfigureXCVRMode(pwrp_xcvr_sleep);&lt;BR /&gt; // Set timer source for wake up&amp;nbsp;&lt;SPAN&gt;LPTM&lt;/SPAN&gt;&lt;BR /&gt; PWRP_SetWakeUpSource(0x01);&lt;BR /&gt; &lt;SPAN&gt;PWRP_UpdateLPTMRCount(60 * 1000);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Enter_VLPS();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2018 17:53:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Sleep-mode-in-MKW01Z/m-p/716533#M43971</guid>
      <dc:creator>sergiiparadiuk</dc:creator>
      <dc:date>2018-04-30T17:53:41Z</dc:date>
    </item>
    <item>
      <title>Re: Sleep mode in MKW01Z</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Sleep-mode-in-MKW01Z/m-p/716534#M43972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sergii&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The LPTMR has a pre-scaler that can decrease its counting speed by /2, /4, /8 .../64k. If you enable that with an appropriate setting you can get much long delays up to 49.7 days from LPO clock.&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;EM&gt;uTasker developer and supporter (+5'000 hours experience on +60 Kinetis derivatives in +80 product developments)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;SPAN&gt;Kinetis: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis.html&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2018 19:18:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Sleep-mode-in-MKW01Z/m-p/716534#M43972</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2018-04-30T19:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: Sleep mode in MKW01Z</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Sleep-mode-in-MKW01Z/m-p/716535#M43973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you for response, but I read this too, but how could I do from API?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2018-04-30 22:19 GMT+03:00 mjbcswitzerland &amp;lt;admin@community.nxp.com&amp;gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE level="1"&gt;&lt;P&gt;NXP Community&lt;/P&gt;&lt;P&gt;&amp;lt;https://community.freescale.com/resources/statics/1000/35400-NXP-Community-Email-banner-600x75.jpg&amp;gt;&lt;/P&gt;&lt;P&gt;Re: Sleep mode in MKW01Z&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reply from Mark Butcher&lt;/P&gt;&lt;P&gt;&amp;lt;https://community.nxp.com/people/mjbcswitzerland?et=watches.email.thread&amp;gt;&lt;/P&gt;&lt;P&gt;in &lt;STRONG&gt;Kinetis Microcontrollers&lt;/STRONG&gt; - View the full discussion&lt;/P&gt;&lt;P&gt;&amp;lt;https://community.nxp.com/message/1010274?commentID=1010274&amp;amp;et=watches.email.thread#comment-1010274&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2018 19:28:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Sleep-mode-in-MKW01Z/m-p/716535#M43973</guid>
      <dc:creator>sergiiparadiuk</dc:creator>
      <dc:date>2018-04-30T19:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: Sleep mode in MKW01Z</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Sleep-mode-in-MKW01Z/m-p/716536#M43974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sergii&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know the API that you are using - you will need to read its documentation or check its implemention. If it doesn't support the pre-scaler setting you can simply do the following (after you call the setup).&lt;/P&gt;&lt;P&gt;1. Disable the LPTMR with &lt;STRONG&gt;LPTMR0_CSR &amp;amp;= ~1;&lt;/STRONG&gt;&lt;BR /&gt;2. Set the pre-scaler value you need (assuming LPO clock)&lt;BR /&gt;&lt;STRONG&gt;LPTMR0_PSR = (LPO_CLOCK_SOURCE | (DIVIDE_VALUE &amp;lt;&amp;lt; 3));&lt;/STRONG&gt;&lt;BR /&gt;3. Re-enable again &lt;STRONG&gt;LPTMR0_CSR |= 1;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;where &lt;EM&gt;DIVIDE_VALUE&lt;/EM&gt; is 1 for divide by 2, 2 for divide by 4, 3 for divide by 8, 4 for divide by 16 etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will then increase the timeout value that you set by this factor.&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;BR /&gt;&lt;EM&gt;uTasker developer and supporter (+5'000 hours experience on +60 Kinetis derivatives in +80 product developments)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;SPAN&gt;Kinetis: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis.html&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2018 21:18:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Sleep-mode-in-MKW01Z/m-p/716536#M43974</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2018-04-30T21:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: Sleep mode in MKW01Z</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Sleep-mode-in-MKW01Z/m-p/716537#M43975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks. It helped!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2018-05-01 0:19 GMT+03:00 mjbcswitzerland &amp;lt;admin@community.nxp.com&amp;gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE level="1"&gt;&lt;P&gt;NXP Community&lt;/P&gt;&lt;P&gt;&amp;lt;https://community.freescale.com/resources/statics/1000/35400-NXP-Community-Email-banner-600x75.jpg&amp;gt;&lt;/P&gt;&lt;P&gt;Re: Sleep mode in MKW01Z&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reply from Mark Butcher&lt;/P&gt;&lt;P&gt;&amp;lt;https://community.nxp.com/people/mjbcswitzerland?et=watches.email.thread&amp;gt;&lt;/P&gt;&lt;P&gt;in &lt;STRONG&gt;Kinetis Microcontrollers&lt;/STRONG&gt; - View the full discussion&lt;/P&gt;&lt;P&gt;&amp;lt;https://community.nxp.com/message/1010279?commentID=1010279&amp;amp;et=watches.email.thread#comment-1010279&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 May 2018 21:32:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Sleep-mode-in-MKW01Z/m-p/716537#M43975</guid>
      <dc:creator>sergiiparadiuk</dc:creator>
      <dc:date>2018-05-01T21:32:57Z</dc:date>
    </item>
  </channel>
</rss>

