06-17-2008 04:39 AM
06-17-2008 05:19 AM
06-17-2008 05:41 AM
06-17-2008 07:35 AM
I'm supposing your issue is that you don't want the state of the direction bit to be transitioning at the same instant as the active edge of the pulse.
I'm not sure how well this thought applies to the motion control board, but here's a technique I've used when generating pulse trains and direction bits with a hardware-timed digital task: If the motor driver is sensitive to rising edges, I generate an inverted pulse train that is normally high. I set direction on the leading edge of the pulse (the falling edge) so the circuit properly deals with that direction when it gets its active rising edge (the pulse's trailing edge).
-Kevin P.