Hello,
I have a sensor that gives different informations with 1 cable. To know which information is what, I have to see the length of the signal. I have a sensor for speed, so for example a signal up for 45 us is for the teeth for the speed. 90 us for the sens of rotation etc...
I have to only care about the speed. So I said oh I will use the lock to force the loop for 40 us.

and I will do an easy programm, I saved the 2 datas before, and when I have a 0 at the time t0, a 1 at time t-1 and a 0 at time t-2 it's the good one. Like this I can Know when a signal smaller than 80 us is passed. What do you think, it seems possible?
Thank you
Léo