Hi, Ioannis
The problem here is the sensor "1" level lasts only 1µS ....
the only solution I see here is use an asm part to generate the high state and test the pin as soon as end of high state .
If i remember ... it's the trick used to test if a pin is low, high or Hi-Z ... !!!
( thanks for the last picture, Sayzer ...)
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