<?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: Improving deep-sleep performance on the LPC1114 in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/Improving-deep-sleep-performance-on-the-LPC1114/m-p/584869#M26469</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by rkiryanov on Fri Feb 26 01:12:16 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: KTownsend&lt;/STRONG&gt;&lt;BR /&gt;This is what I'm using at present:&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you configured unused pins as GPIO, out, low? Floating pins can consume some current. Also, is it possible to wake up with timer from deep sleep?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 00:10:49 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T00:10:49Z</dc:date>
    <item>
      <title>Improving deep-sleep performance on the LPC1114</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Improving-deep-sleep-performance-on-the-LPC1114/m-p/584858#M26458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by ktownsend on Tue Feb 23 17:08:49 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I've been testing out a prototype design with an LPC1114 + 868MHz transceiver, and since low-power is the main reason I opted for the 1114, I was a bit disappointed with the results in deep sleep mode. I'm sure that there is significant room for improvement in the SW, but I was wondering if anyone else has been working with the sleep modes to be able to give some tips on getting the power consumption as low as possible in SW (the HW is obviously another issue entirely).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For the entire board, I'm using around 4.4mA at 12MHz, and when I go into deep-sleep mode it drops to around 1.9mA, shutting off the following peripherals:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
pmuSleep(pmuSleepMode_DeepSleep, 
&amp;nbsp; SCB_PDSLEEPCFG_SYSPLL_PD |
&amp;nbsp; SCB_PDSLEEPCFG_WDTOSC_PD |
&amp;nbsp; SCB_PDSLEEPCFG_ADC_PD |
&amp;nbsp; SCB_PDSLEEPCFG_BOD_PD);&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to use a timer to raise an interrupt every 15 minutes, for example, to wake the device up to check for messages, and then go back into deep sleep. Does anyone have any suggestions about configuring this to get the power consumption as low as possible without having to go into power down mode (which is nice at &amp;lt;0.1mA, but fairly limited in that it can only be woken up with the WAKEUP pin).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've been testing a number of combinations, but if someone can suggest a solid starting point for a common scenario like this it would save me some grunt work.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:10:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Improving-deep-sleep-performance-on-the-LPC1114/m-p/584858#M26458</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: Improving deep-sleep performance on the LPC1114</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Improving-deep-sleep-performance-on-the-LPC1114/m-p/584859#M26459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by igorsk on Tue Feb 23 18:04:50 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe try also powering down the flash.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"In addition, the flash may be powered down in Deep-sleep mode resulting in savings in static leakage power - however at the expense of longer wake-up times for the flash memory."&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;BTW, where is this function from?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[B]Edit[/B]: okay, found &lt;/SPAN&gt;&lt;A href="http://http://www.microbuilder.eu/Projects/LPC1343ReferenceDesign/CodeBaseDocumentation.aspx#pmuSleep"&gt;the source&lt;/A&gt;&lt;SPAN&gt;, but posting code like that is not very useful when we can't see the implementation.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:10:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Improving-deep-sleep-performance-on-the-LPC1114/m-p/584859#M26459</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: Improving deep-sleep performance on the LPC1114</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Improving-deep-sleep-performance-on-the-LPC1114/m-p/584860#M26460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by ktownsend on Tue Feb 23 18:44:33 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: igorsk&lt;/STRONG&gt;&lt;BR /&gt;[B]Edit[/B]: okay, found &lt;A href="http://http://www.microbuilder.eu/Projects/LPC1343ReferenceDesign/CodeBaseDocumentation.aspx#pmuSleep"&gt;the source&lt;/A&gt;, but posting code like that is not very useful when we can't see the implementation.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry ... it was just to give an indication of the bits being set.&amp;nbsp; I should have just listed the peripherals by name.&amp;nbsp; I'm just playing around with different settings now, comparing the IRC to the external crystal, etc.&amp;nbsp; The internal oscillator is less accurate, but since 12MHz is probably fast enough in this case it probably allows me to shut more peripheral blocks off and should cause that many problems.&amp;nbsp; I left the flash on simply because I was worried it would slow down the wakeup process, but I should probably test it out rather than just running on assumptions.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:10:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Improving-deep-sleep-performance-on-the-LPC1114/m-p/584860#M26460</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: Improving deep-sleep performance on the LPC1114</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Improving-deep-sleep-performance-on-the-LPC1114/m-p/584861#M26461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by igorsk on Tue Feb 23 19:08:33 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;The manual says:&lt;/SPAN&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;The flash power-up sequence for waking up from Deep-sleep mode takes 100 &amp;amp;#956;s. Note that the flash does not need to be initialized in this case. If the flash is powered down, the user must wait for this time period before resuming flash operations. The power-up sequence after reset takes slightly longer to allow for the flash to initialize.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not sure what exactly "the user must wait" mean... you can't execute instructions from powered down flash anyway, so it should happen automatically, right?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Unless they mean when you're executing from RAM?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:10:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Improving-deep-sleep-performance-on-the-LPC1114/m-p/584861#M26461</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: Improving deep-sleep performance on the LPC1114</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Improving-deep-sleep-performance-on-the-LPC1114/m-p/584862#M26462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by ktownsend on Tue Feb 23 20:18:25 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I didn't find the manual terribly clear on that either.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I think I'm going to put another board together without the LPC1114 just to get a rough idea of how much power the other components on the board are consuming ... should at least help me determine the real difference between sleep/deepsleep/powerdown in terms of power consumption.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Given that the 1114 is really aiming for the low power market, it would be nice to see some sort of app note on sleep and deepsleep, along with some simple examples of handling the wake on a timer interrupt, etc.&amp;nbsp; It's rather time consuming trying to put together little pieces of information from ARM/NXP/etc. to get the whole picture.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Kevin.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:10:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Improving-deep-sleep-performance-on-the-LPC1114/m-p/584862#M26462</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: Improving deep-sleep performance on the LPC1114</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Improving-deep-sleep-performance-on-the-LPC1114/m-p/584863#M26463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by rkiryanov on Wed Feb 24 00:14:03 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: KTownsend&lt;/STRONG&gt;&lt;BR /&gt;Does anyone have any suggestions about configuring this to get the power consumption as low as possible&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Turn off all unused peripherals, set the lowest possible frequency (kHz), configure all unused pins as "GPIO, out, no hysteresis, low" and sleep. Also, welcome to &lt;/SPAN&gt;&lt;A href="http://http://knowledgebase.nxp.com/showthread.php?t=76"&gt;Power consumption tuning on Cortex-M0&lt;/A&gt;&lt;SPAN&gt; :)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:10:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Improving-deep-sleep-performance-on-the-LPC1114/m-p/584863#M26463</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:10:45Z</dc:date>
    </item>
    <item>
      <title>Re: Improving deep-sleep performance on the LPC1114</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Improving-deep-sleep-performance-on-the-LPC1114/m-p/584864#M26464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by ktownsend on Thu Feb 25 16:40:00 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I was able to get down to [B]0.49mA[/B] in deep sleep mode by paying a bit more attention to the datasheet (compared to 1.47mA previously).&amp;nbsp; There are several bits that are 'reserved' but apparently still need to be set to a certain state during deep sleep mode, as follows (see PDSLEEPCFG in the UM):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For the 1114: bit 9 to 0, and bits 11+12 to 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For the 1343: bit 9 and 11 to 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This shaved off a full 1mA of power consumption.&amp;nbsp; It slipped past me since I hadn't added a define to my system header file, given that the bits are reserved and I didn't think to add them in.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;0.49mA still feels a bit high to me, but it's definately reasonable and I will do some tests powering down the flash as well to see how much power I can save and how long it takes to begin execution after wakeup, etc.&amp;nbsp; Deep sleep is a lot more useful than power down since you can still exit with a simple interrupt.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:10:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Improving-deep-sleep-performance-on-the-LPC1114/m-p/584864#M26464</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:10:45Z</dc:date>
    </item>
    <item>
      <title>Re: Improving deep-sleep performance on the LPC1114</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Improving-deep-sleep-performance-on-the-LPC1114/m-p/584865#M26465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by rkiryanov on Thu Feb 25 22:31:35 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: KTownsend&lt;/STRONG&gt;&lt;BR /&gt;0.49mA&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If it is very sad. I haven't a board still, but I was hoping for 5-50 uA in sleep mode (not deep sleep) at 30kHz. 500uA is unacceptable. Can you upload your code?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:10:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Improving-deep-sleep-performance-on-the-LPC1114/m-p/584865#M26465</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: Improving deep-sleep performance on the LPC1114</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Improving-deep-sleep-performance-on-the-LPC1114/m-p/584866#M26466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by ktownsend on Fri Feb 26 00:37:47 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: rkiryanov&lt;/STRONG&gt;&lt;BR /&gt;If it is very sad. I haven't a board still, but I was hoping for 5-50 uA in sleep mode (not deep sleep) at 30kHz. 500uA is unacceptable. Can you upload your code?&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That's indeed still high ... too high for my own needs ... but I'm sure I can get it lower with&amp;nbsp; mix of HW and SW.&amp;nbsp; It's always a slow, iterative process to get the power as low as possible.&amp;nbsp; I still haven't tried all of the SW combinations (I'm kind of shooting in the dark since it's a new chip), and afterwards I need to look at the HW.&amp;nbsp; When I say .49mA, I'm talking about the current consumed by the entire board (my own ... not the LPCXpresso) including an AT86RF212 radio transceiver in sleep mode, with all of the supporting HW that goes with it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;50uA in sleep mode is unrealistic, though.&amp;nbsp; The user manual states 2mA in sleep mode at 12MHz (versus 3mA normally) ... though 6µA in deep sleep sounds great.&amp;nbsp; I didn't even bother looking much at sleep mode because of that.&amp;nbsp; Power-down mode isn't that useful to me either ... it's more appropriate for designing peripherals that are controlled by an external device.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Kevin.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:10:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Improving-deep-sleep-performance-on-the-LPC1114/m-p/584866#M26466</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: Improving deep-sleep performance on the LPC1114</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Improving-deep-sleep-performance-on-the-LPC1114/m-p/584867#M26467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by rkiryanov on Fri Feb 26 00:45:07 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: KTownsend&lt;/STRONG&gt;&lt;BR /&gt;the entire board&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Probably, this is the problem. I will receive board next week and check it on my desk.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: KTownsend&lt;/STRONG&gt;&lt;BR /&gt;The&amp;nbsp; user manual states 2mA in sleep mode at 12MHz (versus 3mA normally)&amp;nbsp; ...&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Try [B]KHz[/B] - watchdog oscillator (400KHz) with divider 10 to 20.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:10:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Improving-deep-sleep-performance-on-the-LPC1114/m-p/584867#M26467</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:10:48Z</dc:date>
    </item>
    <item>
      <title>Re: Improving deep-sleep performance on the LPC1114</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Improving-deep-sleep-performance-on-the-LPC1114/m-p/584868#M26468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by ktownsend on Fri Feb 26 01:04:46 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I've got it down to 0.28mA turning off pretty much everything, though I need to do some SW test to determine the consequences of that. On the board I have the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MCP130T: ~45µA&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ADP121: ~30µA&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AT86RF212: &amp;lt;1µA (sleep)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I used 10µF ceramic caps instead of tantalums, etc., to save power, and was careful with discrete selection, but that means that at .28mA, minus external components, the LPC1114 and remaining components is using around 0.2mA in deep sleep at present, and I suspect there is still room for improvement ... I just need to do a lot of testing to shave off that last little bit. I think I can eventually get the total board to around 0.1mA though, which should be alright for me. I was planning on running at ~240:1 duty cycle, waking up maybe 5s every 20 minutes. At those power rates I can easily run from a small solar cell with a 2.5V supercapacitor (the board is design for 1.8V) forever ... no battery needed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That said ... it would have been nice to have more information on getting the most from the deep sleep mode, and some examples from NXP or an app note. It's been a lot of trial and error, and I've had to make some decisions where I wasn't 100% clear on the consequences.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This is what I'm using at present:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; // Enter deep sleep mode
&amp;nbsp;&amp;nbsp;&amp;nbsp; pmuDeepSleep(SCB_PDSLEEPCFG_IRCOUT_PD |
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SCB_PDSLEEPCFG_IRC_PD |
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SCB_PDSLEEPCFG_FLASH_PD |
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SCB_PDSLEEPCFG_BOD_PD |
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SCB_PDSLEEPCFG_ADC_PD |
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SCB_PDSLEEPCFG_WDTOSC_PD |
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SCB_PDSLEEPCFG_SYSPLL_PD);
 
...
void pmuDeepSleep(U32 sleepCtrl)
{
&amp;nbsp; SCB_PDAWAKECFG = SCB_PDRUNCFG;
&amp;nbsp; // Datasheet indicates bits 11 and 12 must also be set to 1 for DS
&amp;nbsp; // and that bit 9 must be set to 0
&amp;nbsp; sleepCtrl &amp;amp;= ~(1 &amp;lt;&amp;lt; 9);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // 9&amp;nbsp; = MAIN_REGUL_PD
&amp;nbsp; sleepCtrl |= (1 &amp;lt;&amp;lt; 11) | (1 &amp;lt;&amp;lt; 12);&amp;nbsp;&amp;nbsp; // 12 = LP_REGUL_PD, 11 = ???
&amp;nbsp; SCB_PDSLEEPCFG = sleepCtrl;
&amp;nbsp; SCB_SCR |= SCB_SCR_SLEEPDEEP;
&amp;nbsp; __asm volatile ("WFI");
&amp;nbsp; return;
}
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:10:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Improving-deep-sleep-performance-on-the-LPC1114/m-p/584868#M26468</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:10:48Z</dc:date>
    </item>
    <item>
      <title>Re: Improving deep-sleep performance on the LPC1114</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Improving-deep-sleep-performance-on-the-LPC1114/m-p/584869#M26469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by rkiryanov on Fri Feb 26 01:12:16 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: KTownsend&lt;/STRONG&gt;&lt;BR /&gt;This is what I'm using at present:&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you configured unused pins as GPIO, out, low? Floating pins can consume some current. Also, is it possible to wake up with timer from deep sleep?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:10:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Improving-deep-sleep-performance-on-the-LPC1114/m-p/584869#M26469</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: Improving deep-sleep performance on the LPC1114</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Improving-deep-sleep-performance-on-the-LPC1114/m-p/584870#M26470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by ktownsend on Fri Feb 26 01:19:08 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: rkiryanov&lt;/STRONG&gt;&lt;BR /&gt;Did you configured unused pins as GPIO, out, low? Floating pins can consume some current.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have to go through it pin by pin to determine which pins I need to be in which state, and then explicitly set the rest, but there are definately a few µA that can be shaved off with that.&amp;nbsp; Up until now I've been trying to make the code as generic as possible, so didn't get into configuring things pin by pin for this particular project.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I find it kind of annoying that the internal pull-up resistors are all enabled by default, though, since it adds more code and a potential problem for people who don't pay enough attention to the UM.&amp;nbsp; I understand the idea behind the decision ... but they are trying to compensate for bad SW design in HW, and just making things more work in the long run.&amp;nbsp; I've been wondering as well ... do the internal pull ups ONLY affect GPIO?&amp;nbsp; If I'm using a pin as SPI, for example, do I still need to clear the internal resistor ... or is that only necessary when the pin multiplexing is set to GPIO?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:10:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Improving-deep-sleep-performance-on-the-LPC1114/m-p/584870#M26470</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: Improving deep-sleep performance on the LPC1114</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Improving-deep-sleep-performance-on-the-LPC1114/m-p/584871#M26471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by rkiryanov on Fri Feb 26 01:22:12 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: KTownsend&lt;/STRONG&gt;&lt;BR /&gt;do I still need to clear the internal resistor ...&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On LPC2000 pull up/pull down works with SPI.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:10:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Improving-deep-sleep-performance-on-the-LPC1114/m-p/584871#M26471</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: Improving deep-sleep performance on the LPC1114</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Improving-deep-sleep-performance-on-the-LPC1114/m-p/584872#M26472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by ktownsend on Fri Feb 26 01:25:03 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: rkiryanov&lt;/STRONG&gt;&lt;BR /&gt;Also, is it possible to wake up with timer from deep sleep?&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry ... I missed that last part.&amp;nbsp; I haven't yet gotten around to testing the wakeup code.&amp;nbsp; Obviously you can't use a HW debugger for that, so I've been putting it off just trying to get the deep sleep consumption as low as possible.&amp;nbsp; When I said I wasn't sure of the consequences of shutting certain things off, etc., thats what I meant ... I need to play around with it and see what's possible for wakeup, etc., and how long it takes.&amp;nbsp; I'll probably start working on that tommorow.&amp;nbsp; There are a number of issues I'll need to deal with the the RTOS level as well going into and coming out of deep sleep.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:10:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Improving-deep-sleep-performance-on-the-LPC1114/m-p/584872#M26472</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: Improving deep-sleep performance on the LPC1114</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Improving-deep-sleep-performance-on-the-LPC1114/m-p/584873#M26473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by ktownsend on Fri Feb 26 01:27:38 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: rkiryanov&lt;/STRONG&gt;&lt;BR /&gt;On LPC2000 pull up/pull down works with SPI.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Just as a precaution, I've been disabling the internal resistor on any pin I used.&amp;nbsp; I wish this would have been the default state, though.&amp;nbsp; The internal resistors are very useful and are a good way to reduce the total BOM count (and this required surface area) ... but it's troublesome to add one more potential problem by making them almost all default to enabled and pulled high, just to compensate for people writing bad code and not controlling their pin states properly.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:10:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Improving-deep-sleep-performance-on-the-LPC1114/m-p/584873#M26473</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: Improving deep-sleep performance on the LPC1114</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Improving-deep-sleep-performance-on-the-LPC1114/m-p/584874#M26474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by rkiryanov on Fri Feb 26 01:57:51 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;How do you plan to start from 12MHz IRC to deep sleep? LPC1114 will draw all energy from supercap on morning.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:10:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Improving-deep-sleep-performance-on-the-LPC1114/m-p/584874#M26474</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: Improving deep-sleep performance on the LPC1114</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Improving-deep-sleep-performance-on-the-LPC1114/m-p/584875#M26475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by ktownsend on Fri Feb 26 02:17:02 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: rkiryanov&lt;/STRONG&gt;&lt;BR /&gt;How do you plan to start from 12MHz IRC to deep sleep? LPC1114 will draw all energy from supercap on morning.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I need to modify the code to switch to the IRC first, as the UM suggests ... I'm just comparing different settings to get an idea of how much power each peripheral is consuming. I've already put together some code to handle all of this, I've just been busy trying to get a sense of which peripherals should be left on and which should be disabled, etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;As for the supercap, I think a large enough one should be more than enough for a couple days power combined with an efficient solar cell. Something like a 25F cap can make it through more than a day without sunlight. If I can get to around 100µA total in deep sleep, I'll only be consuming ~.166mAh with a 240:1 duty cycle.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;With a 25F supercap on a 1.8V system, I should have 81 joules (E = 1.8² * 25 = 81). 81 joules / 1.8V = 45A; 45 / 3600 seconds = 0.0125Ah (or 12.5mAh).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Those are ideal figures, but if a 25F supercap on a 1.8V system will give me 12.5mAh, that should be enough to power my system for ~75 hours. If we don't have any sun during 75 hours we'll have far bigger problems than my little embedded device. :-)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That said ... it's all theoretical. I need to test this all out with a real board and see if it really works out. But even if it only performs half as well, that should still be sufficient, and having a battery-less system definately has a lot of advantages.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's a blog post I put together a while back thinking about this: &lt;/SPAN&gt;&lt;A href="http://"&gt;http://www.microbuilder.eu/blog/09-11-13/Using_Supercapacitors_as_a_Power_Source.aspx&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:10:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Improving-deep-sleep-performance-on-the-LPC1114/m-p/584875#M26475</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: Improving deep-sleep performance on the LPC1114</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Improving-deep-sleep-performance-on-the-LPC1114/m-p/584876#M26476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by rkiryanov on Fri Feb 26 02:26:10 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;You calculations are wrong. Backup time calculted as&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;T = C * (U_charge - U_cutoff - I * R_supercap) / (I + I_leakage)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And 25F is the super cool supercap.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:10:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Improving-deep-sleep-performance-on-the-LPC1114/m-p/584876#M26476</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: Improving deep-sleep performance on the LPC1114</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Improving-deep-sleep-performance-on-the-LPC1114/m-p/584877#M26477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by ktownsend on Fri Feb 26 03:06:29 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: rkiryanov&lt;/STRONG&gt;&lt;BR /&gt;And 25F is the super cool supercap.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Just don't lick it when it's fully charged or your tongue will probably explode :p&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It looks interesting on paper, but it's something I'll have to test out in practice to see how it really works out.&amp;nbsp; I'm worried about the life of the supercap as well and temperature, amongst other things.&amp;nbsp; A 1.8V system with a 2.5V supercap is still cutting it closer than I'd like for something capable of exploding, but you have other problems putting two supercaps in series to get above 2.5V, like ensuring equal charging, etc.&amp;nbsp; It's next on the ToDo list, though.&amp;nbsp; I've designed the sensor nodes in a way that the power cell is independent of the node anyway ... if the supercap/solar combination doesn't work, I can easily go to a LIPO or NIMH battery as well, though that has it's own problems.&amp;nbsp; I really need to get &amp;lt;100µA first, though, in deep sleep, and work out all the details with the wakeup.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:10:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Improving-deep-sleep-performance-on-the-LPC1114/m-p/584877#M26477</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:10:55Z</dc:date>
    </item>
  </channel>
</rss>

