I was hoping for some clarification on proper pinouts and which pins to use for gecko 251x external drivers on a due flashed with the gshield.bin. I'm using the DUE diagram in the wiki for reference.
The 251x has a 12 pin screw terminal block w/ pins:
1-2: Ground and +15-50V
3-4: Current set (Resister)
5-8: A+,A-,B+,B- (stepper input)
9. Dir
10. Step
11. Disable - (From the website: This terminal will force the winding currents to zero when shorted to ground (TERMINAL 12).
Shorting this input to ground (terminals 11 to 12) forces winding currents to zero and stops all output switching activity. The G251 will continue totalizing step and direction inputs if any are sent. The power supply current drops to less than 15mA. The motor will return to its original position when the disable input is released if no step pulses have been sent and the motor has not been moved more than 2 full steps.
12. Common - Connect this terminal to the controller signal ground
So in terms of connections to the DUE, we're concerned w/ pins 9-12. Using the diagram, it would seem I would use:
Direction (Due pins): 5 (m1dir), 6 (m2dir), 7 (m3dir), 32 (m4dir)
Step (Due pins) 2 (m1step), 3 (m2step), 4 (m3step), 31 (m4 step)
Disable - I am a bit confused here. It seems like I want a pin that is active high and then drops to low to disable (though they mention shorting to ground). Would I use the enable pins? m1enab, etc.? I think I remember reading that enable is active LOW, which I believe means that in G2 if the motor is enabled, it's enab pin is going to be ~0v (which would stop my driver). I'd like to be able to use the power management abilities and turn off my motors after $MT. In terms of $MT, is there a state change on a pin after it times out (e.g. pins changing from low to high or vice versa...and are they the enable pins)? Also, I know in motate, I've seen pins be inverted, but I don't know exactly how to do that or if that is a solution. Finally, I believe people have also used external pull-up resisters? I've only used the built in pull-ups via code w/ arduinos, but I'm assuming it's pretty straight forward.
Common - Connected to any ground pin on the due?
Any advice would be appreciated!
Thanks
Matt