Hi craig:
As you say, if I can see that the direction signal in one direction goes high and stays that way even when its movement ends (Trajectory), just as you say if you go to the other direction you will go to a low signal and maintains it even if it is not moving.
However my doubt is with the signal of the stepper (pwm), because I do not know if the signal has to stay high (+5 V) even if the motor does not move, or if when its movement ends the signal is taken (0 - 0.8 V), I have been reviewing the stepper (pwm) signal with the oscilloscope and if it sends the clock signal, but I do not understand why when you stop moving the motor in one direction or another the signal is held high (+ 5V), should not be a low voltage?