handle reset after Wakeup from deep power down?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

handle reset after Wakeup from deep power down?

233 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by MaDeh on Tue Aug 20 08:03:44 MST 2013
Hi,
I'm working on a battery powered application.
To save as much energy as possible the LPC1833 is set to deep power down from time to time.
The controller can be woken up with an Wakeup0 interrupt.
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.
This takes to much time and is not required.
For this I need to differentiate the last interrup befor the reset occures.


Now my question:
Is it possible to figure out if the last reset was due to a watchdog, wakeup interrup or a POR.
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.
 
Is there an usual way to figure out the last reset reason.    
Hopfully somebody is able to help me.

thanks in advanced and with best regards, marcus 
Labels (1)
0 Kudos
1 Reply

206 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by bavarian on Thu Sep 05 05:30:35 MST 2013
Hello Marcus,

chapter 12.5.1 in the LPC1800 User Manual contains some information how to identify the source of a core reset.
It's not really straight forward, but at least there is way to do it.

Hope this helps,
Bernhard.
0 Kudos