<?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: Kinetis sleep enable/disable in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-sleep-enable-disable/m-p/341366#M16488</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;sorry not to be more specific.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes I want to disable sleep mode in ISR which can occur just before sleep mode entry instruction. I think only HW based sleep mode disable can handle this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Sep 2014 05:13:34 GMT</pubDate>
    <dc:creator>martindusek</dc:creator>
    <dc:date>2014-09-17T05:13:34Z</dc:date>
    <item>
      <title>Kinetis sleep enable/disable</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-sleep-enable-disable/m-p/341364#M16486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;is there any HW control of sleep mode enable/disable in Kinetis K MCUs? I can see SMC-&amp;gt;PMPROT register, but it is writable only once after reset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using a variable, setting it true or false and then checking before sleep mode entry is not an option as there is a need to disable sleep mode when an asynchronous (interrupt) event occurs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2014 06:15:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-sleep-enable-disable/m-p/341364#M16486</guid>
      <dc:creator>martindusek</dc:creator>
      <dc:date>2014-09-05T06:15:28Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis sleep enable/disable</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-sleep-enable-disable/m-p/341365#M16487</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 am not quite understand what you really would like to do? Why&amp;nbsp; "here is a need to disable sleep mode when an asynchronous (interrupt) event occurs."? If more information provide, it will much helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 07:39:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-sleep-enable-disable/m-p/341365#M16487</guid>
      <dc:creator>miduo</dc:creator>
      <dc:date>2014-09-16T07:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis sleep enable/disable</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-sleep-enable-disable/m-p/341366#M16488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;sorry not to be more specific.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes I want to disable sleep mode in ISR which can occur just before sleep mode entry instruction. I think only HW based sleep mode disable can handle this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 05:13:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-sleep-enable-disable/m-p/341366#M16488</guid>
      <dc:creator>martindusek</dc:creator>
      <dc:date>2014-09-17T05:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis sleep enable/disable</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-sleep-enable-disable/m-p/341367#M16489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the clarification! Kinetis devices execute the "WFI" instruction to enter low power modes, but WFI is a conditional instruction, so you may define a macro for this instruction with a condition, and change the condition to FAIL in the ISR which happens right before this intruction, so that this instruction does not execute at all in such case. Please kindly refer to the following for more details.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/46011iA83F6878FDDBF81E/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/46012i34DE6EB0DB67BC43/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.png" alt="2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 06:28:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-sleep-enable-disable/m-p/341367#M16489</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2014-09-17T06:28:12Z</dc:date>
    </item>
  </channel>
</rss>

