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

Dependencies:   mbed

Revision:
0:f3b381f0568b
--- /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);
+    }
+}