<?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>LPCXpresso IDEのトピックpower down</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/power-down/m-p/588080#M27967</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Frankb on Tue Dec 04 06:31:03 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a LPC11U14, which I want to power down as much as possible using a push button. I have tried, but failed miserable so far... I was wondering if there is an example somewhere which can help me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So far I have connected the push button to a GPIO pin interrupt. In this interrupt I wrote the following code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;LPC_PMU-&amp;gt;PCON = (1UL&amp;lt;&amp;lt;1);
SCB-&amp;gt;SCR = (1UL&amp;lt;&amp;lt;2);&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately I donÂ´t see the power consumption going down at all when I push the button. I do see that the button indeed triggers the interrupt, so that is not the problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any tips? Unfortunately I do not have the opportunity to pull the WAKEUP pin high, so I guess that deep power down is out of the question.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EDIT: I have added the line &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;__WFI();&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;to my code and now it goes into power down mode. Also I have made sure that all the registers are reset to their reset values before going into power down mode. I see that now that Idd = 1.1 mA. Is it possible to get this down further? Into the uA range?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 01:23:17 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T01:23:17Z</dc:date>
    <item>
      <title>power down</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/power-down/m-p/588080#M27967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Frankb on Tue Dec 04 06:31:03 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a LPC11U14, which I want to power down as much as possible using a push button. I have tried, but failed miserable so far... I was wondering if there is an example somewhere which can help me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So far I have connected the push button to a GPIO pin interrupt. In this interrupt I wrote the following code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;LPC_PMU-&amp;gt;PCON = (1UL&amp;lt;&amp;lt;1);
SCB-&amp;gt;SCR = (1UL&amp;lt;&amp;lt;2);&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately I donÂ´t see the power consumption going down at all when I push the button. I do see that the button indeed triggers the interrupt, so that is not the problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any tips? Unfortunately I do not have the opportunity to pull the WAKEUP pin high, so I guess that deep power down is out of the question.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EDIT: I have added the line &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;__WFI();&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;to my code and now it goes into power down mode. Also I have made sure that all the registers are reset to their reset values before going into power down mode. I see that now that Idd = 1.1 mA. Is it possible to get this down further? Into the uA range?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:23:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/power-down/m-p/588080#M27967</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: power down</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/power-down/m-p/588081#M27968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by pboogaards on Wed Dec 05 12:29:13 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Frank&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I would recommend reviewing the PMU example in the Sample Code Bundles found at &lt;/SPAN&gt;&lt;A href="http://"&gt;http://www.lpcware.com/gfiles/devper/lpc11Uxx&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;The example covers sleep, deep sleep, power-down, and deep power-down.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Paul&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:23:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/power-down/m-p/588081#M27968</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: power down</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/power-down/m-p/588082#M27969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Frankb on Thu Dec 06 05:56:35 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Great, thanks! I have used part of the code from the example to use in my own code, but now I have the problem that the code "hangs" when it wakes up. When I am in debug mode I see that when the Wake up interrupt is triggered, the code returns close to the __WFI(); command. When I press "step over" it goes to the first line after __WFI(); Now when I press play the code runs as it should. But if IÂ´m not in debug mode the microprocessor doesnt do anything anymore after waking up. Any ideas why this could be?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:23:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/power-down/m-p/588082#M27969</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: power down</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/power-down/m-p/588083#M27970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Frankb on Fri Dec 07 02:58:32 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Ok I found the problem. The wake up code didn´t work properly because I called the power down inside an interrupt. When I instead made an variable that switches in the interrupt and then move the power down code into an if loop in the main loop the waking up worked fine.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:23:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/power-down/m-p/588083#M27970</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:23:19Z</dc:date>
    </item>
  </channel>
</rss>

