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

Dependencies:   mbed

main.cpp

Committer:
bitman
Date:
2011-07-11
Revision:
0:f3b381f0568b

File content as of revision 0:f3b381f0568b:

#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);
    }
}