![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Embedded software Assessment 2
Dependencies: MCP23017 SDFileSystem USBDevice WattBob_TextLCD mbed
Diff: FreqMesure.h
- Revision:
- 22:644d53f1f291
- Parent:
- 20:00a9a95ef083
--- a/FreqMesure.h Tue Mar 04 21:49:29 2014 +0000 +++ b/FreqMesure.h Wed Mar 05 13:05:41 2014 +0000 @@ -10,19 +10,19 @@ // Ignore first part of the signal to detect the edge if(!FrequencyIn){ while(!FrequencyIn){ - if (FreqTimeOut.read_ms() > 4) + if (FreqTimeOut.read_ms() > 3) break; } } else{ while(FrequencyIn){ - if (FreqTimeOut.read_ms() > 4) + if (FreqTimeOut.read_ms() > 3) break; } } //This is the begining of the edge start the timer to masure FreqMsurT.start(); - if (FreqTimeOut.read_ms() > 4){ + if (FreqTimeOut.read_ms() > 3){ FreqTimeOutHpn=1; } else{ @@ -52,4 +52,5 @@ } FreqTimeOut.stop(); FreqMsurT.reset(); + //FreqMsurPin = ! (FreqMsurPin); }