<?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 How to make KEA128 enter sleep mode ? in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-make-KEA128-enter-sleep-mode/m-p/621039#M37162</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i want to make kea128 enter stop mode , here are my configuration code bellow&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PMC-&amp;gt;SPMSC1 = 0x80;&lt;BR /&gt; PMC-&amp;gt;SPMSC2 = 0x00;&lt;BR /&gt; PMC-&amp;gt;SPMSC1 &amp;amp;= ~PMC_SPMSC1_LVWIE_MASK;&lt;BR /&gt; /* disable LVD in stop mode */&lt;BR /&gt; PMC-&amp;gt;SPMSC1 &amp;amp;= ~(PMC_SPMSC1_LVDE_MASK | PMC_SPMSC1_LVDRE_MASK |&lt;BR /&gt; PMC_SPMSC1_LVDSE_MASK);&lt;BR /&gt; /* Set the SLEEPDEEP bit to enable deep sleep mode (STOP) */&lt;BR /&gt; SCB-&amp;gt;SCR |= SCB_SCR_SLEEPDEEP_Msk;&lt;BR /&gt; /* Not using KEIL's uVision, so use the standard assembly command */&lt;BR /&gt; __WFI;&lt;/P&gt;&lt;P&gt;while(1)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but &amp;nbsp;MCU don't go to sleep , it continue run codes in while loop, rather stop in the front of while ! what i should do to make kea128 enter sleep mode ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Nov 2016 09:32:48 GMT</pubDate>
    <dc:creator>buckzheng</dc:creator>
    <dc:date>2016-11-01T09:32:48Z</dc:date>
    <item>
      <title>How to make KEA128 enter sleep mode ?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-make-KEA128-enter-sleep-mode/m-p/621039#M37162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i want to make kea128 enter stop mode , here are my configuration code bellow&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PMC-&amp;gt;SPMSC1 = 0x80;&lt;BR /&gt; PMC-&amp;gt;SPMSC2 = 0x00;&lt;BR /&gt; PMC-&amp;gt;SPMSC1 &amp;amp;= ~PMC_SPMSC1_LVWIE_MASK;&lt;BR /&gt; /* disable LVD in stop mode */&lt;BR /&gt; PMC-&amp;gt;SPMSC1 &amp;amp;= ~(PMC_SPMSC1_LVDE_MASK | PMC_SPMSC1_LVDRE_MASK |&lt;BR /&gt; PMC_SPMSC1_LVDSE_MASK);&lt;BR /&gt; /* Set the SLEEPDEEP bit to enable deep sleep mode (STOP) */&lt;BR /&gt; SCB-&amp;gt;SCR |= SCB_SCR_SLEEPDEEP_Msk;&lt;BR /&gt; /* Not using KEIL's uVision, so use the standard assembly command */&lt;BR /&gt; __WFI;&lt;/P&gt;&lt;P&gt;while(1)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but &amp;nbsp;MCU don't go to sleep , it continue run codes in while loop, rather stop in the front of while ! what i should do to make kea128 enter sleep mode ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Nov 2016 09:32:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-make-KEA128-enter-sleep-mode/m-p/621039#M37162</guid>
      <dc:creator>buckzheng</dc:creator>
      <dc:date>2016-11-01T09:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to make KEA128 enter sleep mode ?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-make-KEA128-enter-sleep-mode/m-p/621040#M37163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hunter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I copy your code to the FRDM-KEAZ128_Driver Testcode, and test the power consumption on my FRDM-KEA128 board, the power consumption is just 132uA, so it can enter stop mode successfully.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Now, please take care two points.&lt;/P&gt;&lt;P&gt;1. Did you add any other interrupt in your code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Because interrupt will wake up the stop mode.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Please disable the interrupt, then try again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. After you download the code with debugger, please power down your board, remove your debugger(except you use the onboard debugger like FRDM board), then power on and test the power consumption again, power off and power on the board after downloading the code is very important, don't just press the reset button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;If you still have question, please let me know!&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Kerry&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, 02 Nov 2016 08:04:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-make-KEA128-enter-sleep-mode/m-p/621040#M37163</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2016-11-02T08:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to make KEA128 enter sleep mode ?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-make-KEA128-enter-sleep-mode/m-p/621041#M37164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello, Kerry!&amp;nbsp;thanks for your reply! I made a mistake , I use keil to compile my project, but &amp;nbsp;this function "&lt;SPAN style="color: #51626f; background-color: #ffffff; font-size: 14px;"&gt;__WFI&lt;/SPAN&gt;" is defined "__wfi", rather than the instruction "WFI"! &amp;nbsp;So MCU did'nt enter sleep mode! The true synax is "__WFI()" &amp;nbsp;in keil !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2016 13:35:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-make-KEA128-enter-sleep-mode/m-p/621041#M37164</guid>
      <dc:creator>buckzheng</dc:creator>
      <dc:date>2016-11-02T13:35:58Z</dc:date>
    </item>
  </channel>
</rss>

