<?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 LPC51U68 current consumption too high in Deep Sleep  in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC51U68-current-consumption-too-high-in-Deep-Sleep/m-p/1093764#M41897</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are aiming to use the LPC51U68 for a product that will be battery powered and on 24/7, and in deep sleep when quiescent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the moment we are developing on the LPCXpresso51U68 development board and for these tests I have removed all external connection except the USB debug lead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With both my own code and the example project "lpcxpresso51u68_power_manager_lpc" I am measuring a deep sleep current of around 800uA on JP6, whereas the chip datasheet gives a maximum of 17uA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this a limitation of the board, or is there extra code needed to further reduce the consumption?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated. It is a bit of a show stopper if we can't get this down to near the datasheet figure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tim.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Apr 2020 08:22:44 GMT</pubDate>
    <dc:creator>timjanes</dc:creator>
    <dc:date>2020-04-14T08:22:44Z</dc:date>
    <item>
      <title>LPC51U68 current consumption too high in Deep Sleep</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC51U68-current-consumption-too-high-in-Deep-Sleep/m-p/1093764#M41897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are aiming to use the LPC51U68 for a product that will be battery powered and on 24/7, and in deep sleep when quiescent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the moment we are developing on the LPCXpresso51U68 development board and for these tests I have removed all external connection except the USB debug lead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With both my own code and the example project "lpcxpresso51u68_power_manager_lpc" I am measuring a deep sleep current of around 800uA on JP6, whereas the chip datasheet gives a maximum of 17uA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this a limitation of the board, or is there extra code needed to further reduce the consumption?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated. It is a bit of a show stopper if we can't get this down to near the datasheet figure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tim.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2020 08:22:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC51U68-current-consumption-too-high-in-Deep-Sleep/m-p/1093764#M41897</guid>
      <dc:creator>timjanes</dc:creator>
      <dc:date>2020-04-14T08:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: LPC51U68 current consumption too high in Deep Sleep</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC51U68-current-consumption-too-high-in-Deep-Sleep/m-p/1093765#M41898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/timjames"&gt;timjames&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm glad to help!&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Since I´m doing home office&amp;nbsp; , it is difficult for me help you with&amp;nbsp; testings on my side. However I hope this can help you by the moment.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can implement &lt;STRONG&gt;additional code&lt;/STRONG&gt; to reduce the power consumption.&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you may already know, the&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;project readme&lt;/STRONG&gt;,&amp;nbsp; provides advice for this.&lt;/P&gt;&lt;P&gt;Here you can see some recommendations.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;UL&gt;&lt;LI&gt;Configure all pins as GPIO with pull-up resistor disabled in the IOCON block.&lt;/LI&gt;&lt;LI&gt;Configure GPIO pins as outputs using the GPIO DIR register.&lt;/LI&gt;&lt;LI&gt;Write 1 to the GPIO CLR register to drive the outputs LOW.&lt;/LI&gt;&lt;LI&gt;All peripherals disabled.&lt;/LI&gt;&lt;/UL&gt;&lt;/BLOCKQUOTE&gt;&lt;P lang="es-MX"&gt;&lt;A href="https://www.nxp.com/docs/en/data-sheet/LPC51U68.pdf#page=28"&gt;Table 8. Peripheral configuration in reduced power modes&lt;/A&gt;&amp;nbsp;provides information related to the active peripherals in power down modes.&lt;/P&gt;&lt;P lang="es-MX"&gt;&lt;/P&gt;&lt;P&gt;Is factible that&amp;nbsp; some path related to the MCU VDD&amp;nbsp; &amp;nbsp;could sink additional current.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,Diego.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2020 23:25:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC51U68-current-consumption-too-high-in-Deep-Sleep/m-p/1093765#M41898</guid>
      <dc:creator>diego_charles</dc:creator>
      <dc:date>2020-04-16T23:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: LPC51U68 current consumption too high in Deep Sleep</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC51U68-current-consumption-too-high-in-Deep-Sleep/m-p/1093766#M41899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had not seen the readme. It has helped somewhat, but I am still a long way off, seeing a curent of 450uA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been through the schematic and set all pins to GPIO without pullup/pulldown. Those that are being driven by other sources on the board I have set as inputs and the all others as outputs driven low.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking at AHBCLKCTRL0/1&amp;nbsp;just before calling&amp;nbsp;&amp;nbsp;POWER_EnterDeepSleep only ROM, FLASH, FMC and PINT are running.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am calling&lt;/P&gt;&lt;P&gt;POWER_EnterDeepSleep(SYSCON_PDRUNCFG_PDEN_SRAM0_MASK);&lt;/P&gt;&lt;P&gt;which I believe is turning off everything except SRAM0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have now built a minimal LPC51U68 system, started a new&amp;nbsp; project, used configtools to set all PIO to output, no pullup/down and initial value of 0. The clock is the 12Mhz FRO. With nothing connected to any PIO I am still seeing a current around 450uA, so presumably something is still powered on or being clocked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is my very simple code. I have not yet setup any means of wakeup in this test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Tim.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#include &amp;lt;stdio.h&amp;gt;&lt;BR /&gt;#include "board.h"&lt;BR /&gt;#include "peripherals.h"&lt;BR /&gt;#include "pin_mux.h"&lt;BR /&gt;#include "clock_config.h"&lt;BR /&gt;#include "LPC51U68.h"&lt;BR /&gt;#include "fsl_debug_console.h"&lt;BR /&gt;#include "fsl_gpio.h"&lt;BR /&gt;/* TODO: insert other include files here. */&lt;/P&gt;&lt;P&gt;/* TODO: insert other definitions and declarations here. */&lt;/P&gt;&lt;P&gt;/*&lt;BR /&gt; * @brief Application entry point.&lt;BR /&gt; */&lt;BR /&gt;int main(void) {&lt;/P&gt;&lt;P&gt;volatile uint32_t count = 0;&lt;/P&gt;&lt;P&gt;/* Init board hardware. */&lt;BR /&gt; BOARD_InitBootPins();&lt;BR /&gt; BOARD_InitBootClocks();&lt;BR /&gt; BOARD_InitBootPeripherals();&lt;BR /&gt; /* Init FSL debug console. -- NOT Using Console */ &lt;BR /&gt;// BOARD_InitDebugConsole();&lt;/P&gt;&lt;P&gt;while (1)&lt;BR /&gt; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;count = 0;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;GPIO_PinWrite(GPIO, 1U, 10U, 1); //turn off GREEN LED&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;GPIO_PinWrite(GPIO, 1U, 9U, 1); // Turn off BLUE LED&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;while ( count &amp;lt; 10000000) // Delay approx 10 secs&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;count++;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;count = 0;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;GPIO_PinWrite(GPIO, 0U, 29U, 1); // Turn off RED LED&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;SYSCON-&amp;gt;BODCTRL &amp;amp;= ~0x4; // Disable BOD&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;SYSCON-&amp;gt;BODCTRL |= 0x40;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;CLOCK_DisableClock(kCLOCK_Gpio0); // Turn off unneeded clocks&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;CLOCK_DisableClock(kCLOCK_Gpio1);&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;CLOCK_DisableClock(kCLOCK_Iocon);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;POWER_EnterDeepSleep(SYSCON_PDRUNCFG_PDEN_SRAM0_MASK); // Enter deep sleep just leaving SRAM0 powered&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;BR /&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2020 10:47:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC51U68-current-consumption-too-high-in-Deep-Sleep/m-p/1093766#M41899</guid>
      <dc:creator>timjanes</dc:creator>
      <dc:date>2020-04-24T10:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: LPC51U68 current consumption too high in Deep Sleep</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC51U68-current-consumption-too-high-in-Deep-Sleep/m-p/1093767#M41900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Some further progress.&lt;/P&gt;&lt;P&gt;Holding USB D+ and D- to ground has saved 50uA.&lt;/P&gt;&lt;P&gt;Adding the following line saved 100uA&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; POWER_SetLowPowerVoltageForFreq(12000000);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So now we are at 360uA. the datasheet sheet says 18uA (at 25C)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In summary&lt;/P&gt;&lt;P&gt;Minimal hardware system. During tests nothing connected to any PIO.&lt;/P&gt;&lt;P&gt;All PIO programmed as GPIO ,no pullup/down, set to output 0V.&lt;/P&gt;&lt;P&gt;All other pins connected as datasheet table 5&lt;/P&gt;&lt;P&gt;From&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;AHBCLKCTRL0/1 all non needed clocks disabled.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Everything powered down except SRAM0 via&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;POWER_EnterDeepSleep(SYSCON_PDRUNCFG_PDEN_SRAM0_MASK);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I have read what I think are the relevant sections of datasheet, user guide and SDK API.&lt;/P&gt;&lt;P&gt;I must be missing something, but now out of ideas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tim.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2020 09:51:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC51U68-current-consumption-too-high-in-Deep-Sleep/m-p/1093767#M41900</guid>
      <dc:creator>timjanes</dc:creator>
      <dc:date>2020-04-27T09:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: LPC51U68 current consumption too high in Deep Sleep</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC51U68-current-consumption-too-high-in-Deep-Sleep/m-p/1093768#M41901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="en-US"&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/timjanes"&gt;timjanes&lt;/A&gt;‌&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en-US"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en-US"&gt;Thank you for you for posting your code and&lt;/SPAN&gt;&lt;SPAN lang="es-MX"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN lang="en-US"&gt;summarizing what&lt;/SPAN&gt;&lt;SPAN lang="en-US"&gt;&amp;nbsp;you had done at the moment.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I believe this will be helpful&amp;nbsp; to other users.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please provide me additional time to check for further&amp;nbsp;recommendations.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en-US"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Best regards, Diego.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2020 15:48:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC51U68-current-consumption-too-high-in-Deep-Sleep/m-p/1093768#M41901</guid>
      <dc:creator>diego_charles</dc:creator>
      <dc:date>2020-04-28T15:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: LPC51U68 current consumption too high in Deep Sleep</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC51U68-current-consumption-too-high-in-Deep-Sleep/m-p/1093769#M41902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I apologize&amp;nbsp;for the delay.&amp;nbsp;&lt;/P&gt;&lt;P&gt;You may have checked this information, but here are some tips.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding software, you could use the&amp;nbsp;&lt;STRONG&gt;POWER_EnablePD()&lt;/STRONG&gt; function (from Power API ) to&amp;nbsp; power down modules before enter an sleep mode or during normal RUN mode. You can check the effect of the function on&amp;nbsp;Power configuration register (PDRUNCFG0)&amp;nbsp; . For example if the BOD is not needed , it could be disabled. I do not recommend to disable RAM areas with this function because you can affect application execution.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you know the deep power down is a good measure on how low you can reduce current consumption. But I assume you desire to use deep sleep because of the wake up options.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to reduce power consumption you can switch the FRO oscillator for another clock source. You can have a nice overview of system clocking on Config Tools -&amp;gt;Clock view.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Diego.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2020 01:48:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC51U68-current-consumption-too-high-in-Deep-Sleep/m-p/1093769#M41902</guid>
      <dc:creator>diego_charles</dc:creator>
      <dc:date>2020-05-08T01:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: LPC51U68 current consumption too high in Deep Sleep</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC51U68-current-consumption-too-high-in-Deep-Sleep/m-p/1093770#M41903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Diego,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apologies for the delay. I have been away from work, but I am now back on this project, but looking at other aspects. I will return to this soon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you suggest I am using deep sleep rather than shutdown to maintain memory, the state of output pins and to be able to use GINT and PINT for wakeup.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I thought that all clocks were stopped in deep sleep anyway&amp;nbsp;but I have it in the back of my mind you have to switch to FRO12 before sleeping.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On a previous project using an LPC11xx and LPCOpen we used a similar technique and achieved a board current of around 50uA, we are hoping for a similar figure here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tim.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jun 2020 08:30:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC51U68-current-consumption-too-high-in-Deep-Sleep/m-p/1093770#M41903</guid>
      <dc:creator>timjanes</dc:creator>
      <dc:date>2020-06-01T08:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: LPC51U68 current consumption too high in Deep Sleep</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC51U68-current-consumption-too-high-in-Deep-Sleep/m-p/1159749#M42409</link>
      <description>&lt;P&gt;I have the same issue, have followed the Examples notes, datasheet and this thread, can observe around 370uA in deep sleep. and 17uA in Power down state on our prototype.&amp;nbsp;&lt;/P&gt;&lt;P&gt;All peripherals are off, using internal 12mhz FRO.&lt;/P&gt;&lt;P&gt;All pins that can be are set to outputs and low.&lt;/P&gt;&lt;P&gt;Really need to get sub 50uA as we need PInt to wake up us up we cant use power down state.&lt;/P&gt;</description>
      <pubDate>Sun, 27 Sep 2020 16:25:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC51U68-current-consumption-too-high-in-Deep-Sleep/m-p/1159749#M42409</guid>
      <dc:creator>Carl-CWX</dc:creator>
      <dc:date>2020-09-27T16:25:55Z</dc:date>
    </item>
  </channel>
</rss>

