<?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>LPC MicrocontrollersのトピックRe: LPC1768 wake up from DeepSleep using a GPIO IRQ</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1768-wake-up-from-DeepSleep-using-a-GPIO-IRQ/m-p/2054439#M57799</link>
    <description>&lt;P&gt;Thanks for reply. I found the problem after all. I was just need to disconnect debuger and make a power cycle. I was confused because watch dog wake up reset was working with debuger connected. Anyway GPIO wake up and continue the code was not working with debuger connected even after a power cycle. I think this was is not so clear explained in datasheet even now when I read it says something about this.&lt;/P&gt;</description>
    <pubDate>Mon, 03 Mar 2025 06:55:10 GMT</pubDate>
    <dc:creator>laurianussss</dc:creator>
    <dc:date>2025-03-03T06:55:10Z</dc:date>
    <item>
      <title>LPC1768 wake up from DeepSleep using a GPIO IRQ</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1768-wake-up-from-DeepSleep-using-a-GPIO-IRQ/m-p/2051038#M57756</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to wake up an LPC1768 using a GPIO IRQ from Deep sleep. Now it works but only using WDT and it resets the MCU. Also need help with what should I do the program to be resumed when IRQ is detected and not reset.&lt;/P&gt;&lt;P&gt;When I try to use a GPIO intrerupt it does not even reset it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PINSEL_CFG_Type PinCfg;&lt;BR /&gt;PinCfg.Funcnum = 1;&lt;BR /&gt;PinCfg.OpenDrain = 0;&lt;BR /&gt;PinCfg.Pinmode = PINSEL_PINMODE_PULLUP;&lt;BR /&gt;PinCfg.Portnum = 2;&lt;BR /&gt;&lt;BR /&gt;PinCfg.Pinnum = 10;&lt;BR /&gt;PINSEL_ConfigPin(&amp;amp;PinCfg);&lt;BR /&gt;&lt;BR /&gt;NVIC_SetPriority(EINT0_IRQn, 0);&lt;BR /&gt;NVIC_ClearPendingIRQ(EINT0_IRQn);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;LPC_PINCON-&amp;gt;PINSEL4 |= (0x01 &amp;lt;&amp;lt; 20); // function: EINT0&lt;BR /&gt;LPC_SC-&amp;gt;EXTMODE |= ~(1 &amp;lt;&amp;lt; 0); // Edge sensitive&lt;BR /&gt;//LPC_SC-&amp;gt;EXTPOLAR &amp;amp;= ~(1 &amp;lt;&amp;lt; 0); // falling-edge sensitive&lt;BR /&gt;LPC_SC-&amp;gt;EXTPOLAR &amp;amp;= 1 &amp;lt;&amp;lt; 0; // falling-edge sensitive&lt;/P&gt;&lt;P&gt;LPC_SC-&amp;gt;EXTINT = (1 &amp;lt;&amp;lt; 0); // clear flag&lt;BR /&gt;&lt;BR /&gt;NVIC_EnableIRQ(EINT0_IRQn);&lt;/P&gt;&lt;P&gt;//---------- Disable and disconnect the main PLL0 before enter into Deep-Sleep&lt;BR /&gt;// or Power-Down mode &amp;lt;according to errata.lpc1768-16.March.2010&amp;gt; ------------&lt;/P&gt;&lt;P&gt;LPC_SC-&amp;gt;PLL1CON = 2; // Turn off the main PLL (PLL0)&lt;BR /&gt;LPC_SC-&amp;gt;PLL1FEED = 0xAA; // Feed&lt;BR /&gt;LPC_SC-&amp;gt;PLL1FEED = 0x55; // Feed&lt;BR /&gt;while ((LPC_SC-&amp;gt;PLL1STAT &amp;amp; (1&amp;lt;&amp;lt;9)) == 0); // Check connect bit status&lt;/P&gt;&lt;P&gt;LPC_SC-&amp;gt;PLL0CON &amp;amp;= ~(1&amp;lt;&amp;lt;1); // Disconnect the main PLL (PLL0)&lt;BR /&gt;LPC_SC-&amp;gt;PLL0FEED = 0xAA; // Feed&lt;BR /&gt;LPC_SC-&amp;gt;PLL0FEED = 0x55; // Feed&lt;BR /&gt;&lt;BR /&gt;while ((LPC_SC-&amp;gt;PLL0STAT &amp;amp; (1&amp;lt;&amp;lt;25)) != 0x00); // Wait for main PLL (PLL0) to disconnect&lt;BR /&gt;LPC_SC-&amp;gt;PLL0CON &amp;amp;= ~(1&amp;lt;&amp;lt;0); // Turn off the main PLL (PLL0)&lt;BR /&gt;LPC_SC-&amp;gt;PLL0FEED = 0xAA; // Feed&lt;BR /&gt;LPC_SC-&amp;gt;PLL0FEED = 0x55; // Feed&lt;BR /&gt;while ((LPC_SC-&amp;gt;PLL0STAT &amp;amp; (1&amp;lt;&amp;lt;24)) != 0x00); // Wait for main PLL (PLL0) to shut down&lt;BR /&gt;//------------Then enter into PowerDown mode ----------------------------------&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;CLKPWR_DeepSleep();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;void EINT0_IRQHandler(void)&lt;BR /&gt;{&lt;BR /&gt;NVIC_SystemReset();&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2025 18:01:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1768-wake-up-from-DeepSleep-using-a-GPIO-IRQ/m-p/2051038#M57756</guid>
      <dc:creator>laurianussss</dc:creator>
      <dc:date>2025-02-25T18:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1768 wake up from DeepSleep using a GPIO IRQ</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1768-wake-up-from-DeepSleep-using-a-GPIO-IRQ/m-p/2054330#M57796</link>
      <description>&lt;P&gt;&lt;FONT face="times new roman,times"&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/247325"&gt;@laurianussss&lt;/a&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="times new roman,times"&gt;&lt;SPAN&gt;How about testing the low - power demo under LPCopen on your side first?&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;DIV id="tinyMceEditorAlice_Yang_0" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="88889999.jpg" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/326395i479336CCB324EB26/image-size/medium?v=v2&amp;amp;px=400" role="button" title="88889999.jpg" alt="88889999.jpg" /&gt;&lt;/span&gt; &lt;/P&gt;
&lt;P&gt;&lt;FONT face="times new roman,times"&gt;&lt;SPAN&gt;It uses timer as wake up source.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="times new roman,times"&gt;&lt;SPAN&gt;BR&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="times new roman,times"&gt;&lt;SPAN&gt;Alice&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Mar 2025 03:37:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1768-wake-up-from-DeepSleep-using-a-GPIO-IRQ/m-p/2054330#M57796</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2025-03-03T03:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1768 wake up from DeepSleep using a GPIO IRQ</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1768-wake-up-from-DeepSleep-using-a-GPIO-IRQ/m-p/2054439#M57799</link>
      <description>&lt;P&gt;Thanks for reply. I found the problem after all. I was just need to disconnect debuger and make a power cycle. I was confused because watch dog wake up reset was working with debuger connected. Anyway GPIO wake up and continue the code was not working with debuger connected even after a power cycle. I think this was is not so clear explained in datasheet even now when I read it says something about this.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Mar 2025 06:55:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1768-wake-up-from-DeepSleep-using-a-GPIO-IRQ/m-p/2054439#M57799</guid>
      <dc:creator>laurianussss</dc:creator>
      <dc:date>2025-03-03T06:55:10Z</dc:date>
    </item>
  </channel>
</rss>

