<?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: LPC1768 GPIO states after going into Deep Power-Down mode in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1768-GPIO-states-after-going-into-Deep-Power-Down-mode/m-p/599471#M23241</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" data-content-finding="Community" data-userid="231947" data-username="mostafanfs" href="https://community.nxp.com/people/mostafanfs" rel="nofollow noopener noreferrer" target="_blank"&gt;Mosi Yaghi&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Thank you for your interest in NXP Semiconductor products and the opportunity to serve you.&lt;/P&gt;&lt;P&gt;1. I was wondering if you can share the sch of your board and test demo, then I can replicate the issue , as I have no idea with the current consumption increase dramatically after do the pin configuration.&lt;/P&gt;&lt;P&gt;2. In your second test, did you ever try the following step?&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;Using the PINMODEx registers&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; first disable the internal pull&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;ups on all general port
pins&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt; Second&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; configure the IOs as GPIO inputs and using an external resistor&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; pull
the IOs high or low‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I'm looking forward to your reply.&lt;BR /&gt;Have a great day,&lt;BR /&gt;Ping&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>Tue, 13 Dec 2016 02:37:09 GMT</pubDate>
    <dc:creator>jeremyzhou</dc:creator>
    <dc:date>2016-12-13T02:37:09Z</dc:date>
    <item>
      <title>LPC1768 GPIO states after going into Deep Power-Down mode</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1768-GPIO-states-after-going-into-Deep-Power-Down-mode/m-p/599470#M23240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using LPC1768 and I intend to use the&amp;nbsp;Deep Power-Down mode to minimize the power consumption and got pretty good results but I still do not understand how the GPIO works after going into this mode or what are their state in this mode.&lt;/P&gt;&lt;P&gt;In the documents &lt;A href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fwww.lpcware.com%2Fcontent%2Fnxpfile%2Fan10915-using-lpc1700-power-modes-0"&gt;AN10915: Using the LPC1700 power modes&lt;/A&gt;&amp;nbsp;it has said :&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;1. All General Purpose I/O pins (GPIO) default to input with pull-up resistor enabled. Using the PINMODEx registers, first, disable the internal pull-ups on all general port pins. Second, configure the IOs as GPIO outputs and drive them low,&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Now I did this and the current consumption increased by the factor of 50 !&lt;/P&gt;&lt;P&gt;Before this the whole current was 170uA but after adding this part&amp;nbsp;it turned out to be 40mA !&lt;/P&gt;&lt;P&gt;I don't know what was wrong. I even used the NXP sample. So I wiped out this part of the code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I have a weird problem. I have this DS3231 RTC Module connected to my board and I connected its VCC to a LPC1768 GPIO and in ON state it draws about 1mA but when the controller goes to&amp;nbsp;&lt;SPAN&gt;Deep Power-Down mode it still has a voltage about 1.3V and it adds about&amp;nbsp;280uA to the board's whole current consumption.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Now why there would be any power coming from a GPIO after going into Deep Power-Down mode? Isn't all peripherals supposed to be turned off?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What actually&amp;nbsp;happens to GPIOs? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Does it really matter to set a state before going into&amp;nbsp;Deep Power-Down mode?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;By the way this is the RTC module I'm using.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://potentiallabs.com/cart/image/cache/catalog/New%20Components/ds3231%20rtc%20module-500x416.jpg" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Dec 2016 15:13:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1768-GPIO-states-after-going-into-Deep-Power-Down-mode/m-p/599470#M23240</guid>
      <dc:creator>mostafanfs</dc:creator>
      <dc:date>2016-12-10T15:13:04Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1768 GPIO states after going into Deep Power-Down mode</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1768-GPIO-states-after-going-into-Deep-Power-Down-mode/m-p/599471#M23241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" data-content-finding="Community" data-userid="231947" data-username="mostafanfs" href="https://community.nxp.com/people/mostafanfs" rel="nofollow noopener noreferrer" target="_blank"&gt;Mosi Yaghi&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Thank you for your interest in NXP Semiconductor products and the opportunity to serve you.&lt;/P&gt;&lt;P&gt;1. I was wondering if you can share the sch of your board and test demo, then I can replicate the issue , as I have no idea with the current consumption increase dramatically after do the pin configuration.&lt;/P&gt;&lt;P&gt;2. In your second test, did you ever try the following step?&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;Using the PINMODEx registers&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; first disable the internal pull&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;ups on all general port
pins&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt; Second&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; configure the IOs as GPIO inputs and using an external resistor&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; pull
the IOs high or low‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I'm looking forward to your reply.&lt;BR /&gt;Have a great day,&lt;BR /&gt;Ping&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>Tue, 13 Dec 2016 02:37:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1768-GPIO-states-after-going-into-Deep-Power-Down-mode/m-p/599471#M23241</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2016-12-13T02:37:09Z</dc:date>
    </item>
  </channel>
</rss>

