Example of using sleep/deepsleep with the LPC812

Dependencies:   mbed-src WakeUp

After some initial code the device goes into powerdown (deepsleep), or sleep mode. By creating a rising edge on pin D0 (I just use a cable to connect it to Vdd) it will leave sleep, blink blue, and go to sleep again. Aditionally after 10 seconds of sleep it will blink green using the low-power wake-up timer.

Brownout detection and Watchdog timer are disabled since in deepsleep they are the primary power consumers.

WakeUp.lib

Committer:
Sissors
Date:
2013-11-23
Revision:
1:85ca0ec1e66f

File content as of revision 1:85ca0ec1e66f:

http://mbed.org/users/Sissors/code/WakeUp/#fc439458a359