
Originally Posted by
IAmTheAnswer
Having a signal which is digital and periodic, like a phone ringing, how can you easily detect whether it is still there? You can detect the first change ie 0 -> 1 but say you want to do some stuff and abort it as soon as the signal isn't there anymore how do you find out?
Detection of zero at a time t might give you the time when the signal is being switched off but also when there is just zero instead of the signal ending.
Hi,
Detect the signal stop " as soon as " is impossible : you must wait a bit just to see if it is not only a 1 > 0 transition ...
Generally, one uses a resettable monostable multivibrator, triggered by a 0 > 1 transition.
Period must be > one full 0 > 0 cycle ( i.e 2.5 ms for 440 Hz ) ...
so, worst case is 2.5 ms late ... if no over period intended to avoid glitches or missing transitions ...
This implies you know your incoming signal timing ...
Same as if I tell you " stop " ... you must first hear it, understand it, then act according to ...
Alain
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Bookmarks