<?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: why the LPC2378 sleep mode can not enter second</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/why-the-LPC2378-sleep-mode-can-not-enter-second/m-p/646261#M25559</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;who known？thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Dec 2016 08:19:01 GMT</pubDate>
    <dc:creator>lghlgh</dc:creator>
    <dc:date>2016-12-29T08:19:01Z</dc:date>
    <item>
      <title>why the LPC2378 sleep mode can not enter second</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/why-the-LPC2378-sleep-mode-can-not-enter-second/m-p/646260#M25558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;int main()&lt;BR /&gt; {&lt;BR /&gt; PINSEL10 = 0; &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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //LED init&lt;BR /&gt; FIO2DIR=0x000000ff;&lt;BR /&gt; IODIR1=0x00000000;&lt;BR /&gt; FIO2MASK = 0x00000000;&lt;BR /&gt; FIO2SET = 0x000000FF;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; INTWAKE = 0x40; &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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//CAN awake the sleep mode&lt;BR /&gt; CAN_Init( 0x001C0002, 0x001C0002 ); &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//CAN init&lt;BR /&gt; CAN_SetACCF( 0x02 ); &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; &amp;nbsp; &amp;nbsp;//CAN init&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; while(1)&lt;BR /&gt; { &lt;BR /&gt; FIO2CLR = 0x000000FF; &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;//LED open&lt;BR /&gt; delay (1); &lt;BR /&gt; PCON = 0x81; &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; //enter sleep mode,the first circulate is 0x81,but the second circulate is not 0x81,is 0x00&lt;BR /&gt; if((!(PLLSTAT &amp;amp; (1 &amp;lt;&amp;lt; 25)))) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// CLOCK init after awake sleep&lt;BR /&gt; {&lt;BR /&gt; poweron();&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;FIO2SET = 0x000000FF; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //LED close&lt;BR /&gt; delay (1); &lt;BR /&gt; &lt;BR /&gt; }&lt;BR /&gt; &lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when I send date by the CAN,the LPC2378 can awake but in the while{ } ,it not to sleep again,why?&lt;/P&gt;&lt;P&gt;PCON = 0x81; the first circulate ,it can enter the sleep mode,but when I awake it,the second circulate ,the PCON is 0x00,not is 0x81,why?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2016 01:45:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/why-the-LPC2378-sleep-mode-can-not-enter-second/m-p/646260#M25558</guid>
      <dc:creator>lghlgh</dc:creator>
      <dc:date>2016-12-29T01:45:57Z</dc:date>
    </item>
    <item>
      <title>Re: why the LPC2378 sleep mode can not enter second</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/why-the-LPC2378-sleep-mode-can-not-enter-second/m-p/646261#M25559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;who known？thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2016 08:19:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/why-the-LPC2378-sleep-mode-can-not-enter-second/m-p/646261#M25559</guid>
      <dc:creator>lghlgh</dc:creator>
      <dc:date>2016-12-29T08:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: why the LPC2378 sleep mode can not enter second</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/why-the-LPC2378-sleep-mode-can-not-enter-second/m-p/646262#M25560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;According with your description, and the relation with your other thread:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/thread/441738"&gt;https://community.nxp.com/thread/441738&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems that there are some pending interrupts to be cleared on the CAN, so, therefore, the CAN module cannot enter sleep mode, and it is triggering a wakeup interrupt, causing that the entire MCU is not able to enter into sleep mode (that’s why you are seeing PCON=0x00 instead of 0x81 after starting the transmission).&lt;/P&gt;&lt;P&gt;So, in order to avoid such behavior, you should verify your CAN bus state to ensure a correct CAN termination and bus idle condition when disconnecting the other device that sends CAN data; additionally to verify the logic of the code to attend any pending interrupt and allow the module to enter into sleep mode and not causing interrupts that awakes the entire MCU from low power mode.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Hope this will be useful for you.&lt;BR /&gt;Best regards!&lt;BR /&gt;/Carlos&lt;BR /&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>Wed, 11 Jan 2017 23:59:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/why-the-LPC2378-sleep-mode-can-not-enter-second/m-p/646262#M25560</guid>
      <dc:creator>CarlosCasillas</dc:creator>
      <dc:date>2017-01-11T23:59:38Z</dc:date>
    </item>
  </channel>
</rss>

