mbed toggles some pins ,transitions of 40nsec are measured between different pin changes .

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
bitman
Date:
Mon Jul 11 08:21:32 2011 +0000
Commit message:

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
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Jul 11 08:21:32 2011 +0000
@@ -0,0 +1,22 @@
+#include "mbed.h"
+
+DigitalOut red(p5);
+DigitalOut green(p6);
+DigitalOut blue(p7);
+DigitalOut flag(p8);
+int main() {
+    while (1) {
+        flag = !flag;  // toggle pin 8 so we have a period indication....
+        // check period
+        red=1;//  these transitions take about 40 nsec
+        blue=1;
+        green=1;
+        blue=0;  // 
+        green=0;//
+        red=0; //
+        red=1;    // this transition is possibly too short for my  analyser (24Msamples/sec= 40 nsec resolution ) to be seen 
+        red=0;     // ??
+
+        wait(0.001);
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Mon Jul 11 08:21:32 2011 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/e2ac27c8e93e