In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote: The easiest way would be to have an interrupt routine generate the pulses to drive the steppers. If you run the SX at 50MHz you should have more than enough speed even using SX/B. Keep the interrupt code as simple as possible, do all the calculations in the main code. Ideally you would just have a counter for each motor. The interrupt routine would check if the counter is greater than zero, if it is it will generate a pulse then decrement the counter. To move at different speeds or to move more than one axis at a time is more complecated but should be doable. Bean. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=189917#m189924 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)