![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Embedded software Assessment 2
Dependencies: MCP23017 SDFileSystem USBDevice WattBob_TextLCD mbed
Diff: main.cpp
- Revision:
- 22:644d53f1f291
- Parent:
- 21:0e681d5fa3ba
--- a/main.cpp Tue Mar 04 21:49:29 2014 +0000 +++ b/main.cpp Wed Mar 05 13:05:41 2014 +0000 @@ -9,12 +9,17 @@ implement one in slot 1 and next cycle implement the other. Excuting the LCD and writing file got more slote space. The LCD show slot is 72 mSec and the writing is 8 mSec. At A Sec 180 all functions are called and the 1800 (100 mSec) will be like this: - __ __ __ __ __ __ __ __ __ __ - | | | | | | | | | | | | | | | | | | | | - | | | | | | | | | | | | | | | | | |-----------------| | -__| |__| |__| |__| |__| |__| |__| |__| |__| | |__| - < S1 > < S2> < S3> < S4> < S5> < S6 > < S7 > - 4 4 4 4 4 8 72 mSec + __ __ __ __ __ __ __ __ __ __ + | | | | | | | | | | | | | | | | | | | | + | | | | | | | | | | | | | | | | | |----------------------| | +__| |__| |__| |__| |__| |__| |__| |__| |__| |__ __| |__ + <S1 > < S2> < S3 > < S4> < S5> < S6 > < S7 > + + 4 4 8 4 4 8 64 mSec + ___ ___ ________ ___ ___ ________ __ __ + | | | | | | | | | | | | | | | + | | | | | | | | | | | | | ----------------------| | + __| |_| |_| |_| |_| |_| |__| __| |__ The full program ducimentation is on http://mbed.org/users/muaiyd/code/ass2/ @@ -56,16 +61,16 @@ case 3: if( AllTimeCounter % 10 == 0) FreqMsur(); //Pin 23 break; - case 4: + case 5: if( AllTimeCounter % 15 == 0) BinaryCounter();//Pin 24 break; - case 5: + case 6: if( AllTimeCounter % 18 == 0) InputCheck(); //Pin 25 break; - case 6: + case 7: if( AllTimeCounter % 50 == 0 ) LogFile(); //Pin 27 break; - case 8: + case 9: if( AllTimeCounter % 20 == 0 ) Display(); //Pin 26 break; case 25: