Example of using sleep/deepsleep with the LPC812
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.
mbed-src.lib@0:273b2570ead8, 2013-11-20 (annotated)
- Committer:
- Sissors
- Date:
- Wed Nov 20 21:26:47 2013 +0000
- Revision:
- 0:273b2570ead8
- Child:
- 1:85ca0ec1e66f
Example of sleep modii of the LPC81x
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Sissors | 0:273b2570ead8 | 1 | http://mbed.org/users/Sissors/code/mbed-src-LP81x-sleep/#42f26c765a05 |