Deep power-down mode example program.

Dependencies:   mbed

LPC810のDeep power-downモードのテストプログラム。
LEDが消灯している時間はDeep power-downモードで作っています。

Warning

Deep power-downモードではリセットピンによるリセットは効きません。
フラッシュ書き込みにはISPモード(nISP=L)でパワーオンリセットして下さい。

Files at this revision

API Documentation at this revision

Comitter:
va009039
Date:
Wed Aug 27 11:05:21 2014 +0000
Parent:
0:843a94215f82
Commit message:
update mbed library,change the LED pin.

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r 843a94215f82 -r de1ba63f90b8 main.cpp
--- a/main.cpp	Thu Jul 10 04:26:53 2014 +0000
+++ b/main.cpp	Wed Aug 27 11:05:21 2014 +0000
@@ -11,19 +11,19 @@
 #define dp7       // GND
 #define dp8 P0_0
 
-DigitalOut led1(dp5);
+DigitalOut led1(dp8);
 
 int main()
 {
     led1 = 1;
-    wait_ms(3);
+    wait_ms(10);
     led1 = 0;
 
-    int ms = 500;
+    int ms = 150;
     int cnt = DeepPowerDown::getData0();
-    if (++cnt >= 3) {
+    if (++cnt >= 4) {
         cnt = 0;
-        ms = 3*1000;
+        ms = 1500; // 1.5sec
     }
     DeepPowerDown::setData0(cnt);
     DeepPowerDown::wakeupTimer_ms(ms);
diff -r 843a94215f82 -r de1ba63f90b8 mbed.bld
--- a/mbed.bld	Thu Jul 10 04:26:53 2014 +0000
+++ b/mbed.bld	Wed Aug 27 11:05:21 2014 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/04dd9b1680ae
\ No newline at end of file
+http://mbed.org/users/mbed_official/code/mbed/builds/9327015d4013
\ No newline at end of file