
Originally Posted by
flotulopex
Is it possible to make PULSIN scan a pin without time limitation (=until a signal is detected)?
Hi, Roger ...
Of course :
place a waiting loop,
you detect the first pulse with an interrupt: Alain's interrupt is the best here for latency ... as there is nothing to save ! ( RCTime is to use at first here !!! ) and place your RCTime's "gang" in the interrupt stubb ...
( no RETFIE or GOTO needed ! )
then, your display routine ...
Then back to the waiting loop.
now, for better precision ...
you should use
PULSIN
RCTIME
RCTIME
RCTIME
...
instead of a FOR-NEXT Loop ...
Is there something you don't know about, hein???
Easy answer is ... WOMEN !!!
True answer is Biology, Medicine and such specialities ... more generally what do not accept a mathematical model !!! ( at least yet ...)
One exception : Horses !!!
Have a nice Sunday
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