<?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: LPC1224 Not coming out of Deep-Sleep</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1224-Not-coming-out-of-Deep-Sleep/m-p/526011#M8644</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by thunderBird on Mon Aug 06 22:12:13 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;So after trying to get it to work, I've come to understand the following...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1.) When I use the "__WFI()" instruction, the controller does indeed go into sleep. How do I know this? As per the user manual, the outputs of the controller become static when the controller is in sleep/deep-sleep. That means that the level on outputs is maintained. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2.) When I use the "__WFI()" instruction to go to sleep/deep sleep, the "WAKEUP_IRQHandler" is not executed, when it should. In fact, I can not get the controller to wake up the way I want to, so I use the reset option.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3.) I tried using the "__WFE()" instruction instead of the "__WFI()" and that got me going somewhere. When I use the "__WFE()" instruction, the controller executes the "WAKEUP_IRQHandler" when I give it the input to wake up.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I haven't yet understood the ramifications of this. If it seems obvious to one of you, I would be grateful for that clarity.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Warm Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yash... &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 17:01:27 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T17:01:27Z</dc:date>
    <item>
      <title>LPC1224 Not coming out of Deep-Sleep</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1224-Not-coming-out-of-Deep-Sleep/m-p/526010#M8643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by thunderBird on Fri Aug 03 20:23:54 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello Everyone, I'm using a LPC1224 and have designed the hardware such that when there is a falling edge on PIO0_4, an interrupt is executed which puts the controller into Deep Sleep mode. I've configured the deep-sleep mode such that when the NEXT rising edge comes on PIO0_4 the controller should Wake Up. But this doesn't seem to be happening.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Following is the code which puts the controller into deep sleep...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//Choose Deep sleep mode&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SCB-&amp;gt;SCR |= ((1 &amp;lt;&amp;lt; 2));&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_SYSCON-&amp;gt;PDSLEEPCFG = 0x0000FFFF;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_SYSCON-&amp;gt;PDRUNCFG &amp;amp;= (~(0xFF));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_SYSCON-&amp;gt;INTNMI = 0x00000010;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//Next, we set up the Power Management Unit&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_PMU-&amp;gt;PCON &amp;amp;= (~(1 &amp;lt;&amp;lt; 1));//DPDEN = 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//Set up the wake up&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_SYSCON-&amp;gt;STARTAPRP0 |= (1 &amp;lt;&amp;lt; 4);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_SYSCON-&amp;gt;STARTRSRP0CLR |= (1 &amp;lt;&amp;lt; 4);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_SYSCON-&amp;gt;STARTERP0 |= (1 &amp;lt;&amp;lt; 4);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_SYSCON-&amp;gt;STARTAPRP0 |= (1 &amp;lt;&amp;lt; 10);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_SYSCON-&amp;gt;STARTRSRP0CLR |= (1 &amp;lt;&amp;lt; 10);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_SYSCON-&amp;gt;STARTERP0 |= (1 &amp;lt;&amp;lt; 10);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;NVIC_EnableIRQ(WAKEUP4_IRQn);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;NVIC_EnableIRQ(WAKEUP10_IRQn);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//We are done setting up the PMU&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//Now we go to sleep!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;__WFI();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there an issue in using the same IO for putting the controller into deep-sleep and then waking it as well?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any kind of help/advice would be much appreciated!&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:01:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1224-Not-coming-out-of-Deep-Sleep/m-p/526010#M8643</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1224 Not coming out of Deep-Sleep</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1224-Not-coming-out-of-Deep-Sleep/m-p/526011#M8644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by thunderBird on Mon Aug 06 22:12:13 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;So after trying to get it to work, I've come to understand the following...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1.) When I use the "__WFI()" instruction, the controller does indeed go into sleep. How do I know this? As per the user manual, the outputs of the controller become static when the controller is in sleep/deep-sleep. That means that the level on outputs is maintained. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2.) When I use the "__WFI()" instruction to go to sleep/deep sleep, the "WAKEUP_IRQHandler" is not executed, when it should. In fact, I can not get the controller to wake up the way I want to, so I use the reset option.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3.) I tried using the "__WFE()" instruction instead of the "__WFI()" and that got me going somewhere. When I use the "__WFE()" instruction, the controller executes the "WAKEUP_IRQHandler" when I give it the input to wake up.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I haven't yet understood the ramifications of this. If it seems obvious to one of you, I would be grateful for that clarity.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Warm Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yash... &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:01:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1224-Not-coming-out-of-Deep-Sleep/m-p/526011#M8644</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1224 Not coming out of Deep-Sleep</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1224-Not-coming-out-of-Deep-Sleep/m-p/526012#M8645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Daniel Widyanto on Mon Oct 08 21:50:50 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;You need to switch the MAINCLKSEL to IRC oscillator before going to deep sleep. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The PLL and system oscillator (the crystal oscillator) will be turned off during deep sleep. Hence, waking up from deep sleep using MAINCLKSEL = PLL or system osc is not possible.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:01:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1224-Not-coming-out-of-Deep-Sleep/m-p/526012#M8645</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:01:28Z</dc:date>
    </item>
  </channel>
</rss>

