<?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 handle reset  after Wakeup from deep power down? in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/handle-reset-after-Wakeup-from-deep-power-down/m-p/541784#M12351</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by MaDeh on Tue Aug 20 08:03:44 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm working on a battery powered application. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;To save as much energy as possible the LPC1833 is set to deep power down from time to time. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The controller can be woken up with an Wakeup0 interrupt. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Everything works fine instead the case that after waking up from deep power down mode the Controller resets and the whole initialisation routine will be executed again. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This takes to much time and is not required.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For this I need to differentiate the last interrup befor the reset occures.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now my question: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to figure out if the last reset was due to a watchdog, wakeup interrup or a POR.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried it by checking out the Event Status Register of the Event Router(if Wakeup was set or not) but it seems tobe that all bits are set to 1 after an reset.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there an usual way to figure out the last reset reason.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hopfully somebody is able to help me. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks in advanced and with best regards, marcus&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 18:26:33 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T18:26:33Z</dc:date>
    <item>
      <title>handle reset  after Wakeup from deep power down?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/handle-reset-after-Wakeup-from-deep-power-down/m-p/541784#M12351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by MaDeh on Tue Aug 20 08:03:44 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm working on a battery powered application. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;To save as much energy as possible the LPC1833 is set to deep power down from time to time. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The controller can be woken up with an Wakeup0 interrupt. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Everything works fine instead the case that after waking up from deep power down mode the Controller resets and the whole initialisation routine will be executed again. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This takes to much time and is not required.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For this I need to differentiate the last interrup befor the reset occures.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now my question: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to figure out if the last reset was due to a watchdog, wakeup interrup or a POR.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried it by checking out the Event Status Register of the Event Router(if Wakeup was set or not) but it seems tobe that all bits are set to 1 after an reset.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there an usual way to figure out the last reset reason.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hopfully somebody is able to help me. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks in advanced and with best regards, marcus&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:26:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/handle-reset-after-Wakeup-from-deep-power-down/m-p/541784#M12351</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: handle reset  after Wakeup from deep power down?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/handle-reset-after-Wakeup-from-deep-power-down/m-p/541785#M12352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by bavarian on Thu Sep 05 05:30:35 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello Marcus,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;chapter 12.5.1 in the LPC1800 User Manual contains some information how to identify the source of a core reset.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It's not really straight forward, but at least there is way to do it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Bernhard.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:26:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/handle-reset-after-Wakeup-from-deep-power-down/m-p/541785#M12352</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:26:34Z</dc:date>
    </item>
  </channel>
</rss>

