wvmarle:
How does your scope image change as the speed of the motor changes?
For now I'm not changing the speed. But even with that I see that I'm independent with the pulse width, because I'm detecting the rising edge not the state. But to answer your question as the speed increases the pulses are getting closer, and the pulse width shorter.