Hi,
This code:
main:
symbol dirn=0 ' pin 0 controls fwd or bkwd
symbol stp=1 ' pulse on pin 1 moves the stepper
high 2 ' pin 2 controls full or half step mode
getdata:
serin 1,N2400_4,#b0,#b1,#b2 ' b0=direction, b1=stp, b3=delay
if serin = 1 then gofwd
if serin=2 then gobkwd ' we move...