Quote Originally Posted by Fryin View Post
Motor Var byte
x var byte

TRISA = %00011100 'Pushbuttons on port 2,3 and 4
TRISB = %00000000

SingleStep:
Stepoffset = 0:StepLimit = 3
Return

DoubleStep:
Stepoffset = 4:Steplimit = 3
Return

MicroStep:
Stepoffset = 8:Steplimit = 7
return

Start:
gosub checksequence

For x = 0 to 17
PortB=Motor

Checksequence: 'Lookup table includes single, double and microstep all
'together
LookUp x,[1,2,4,8,3,6,12,9,1,3,2,6,4,12,8,9],Motor
return

End
What pins do you have your stepper motor connected to? (thru the '2003 of course).

Also, have you been able to make your motor step using only push button switches...in other words, are you sure your motor will step as long as the software works properly (push one button, steps one coil, push another button, steps another coil, and so on)? I'd get that working first to make sure you don't burn anything up and worry about the software control later...