CPU = 16F876 MHZ = 10 CONFIG 16254 ;*********************************************** ; http://www.basicmicro.com ; Title : spmotor.bas ; Author : Dale Kubin ; Date : 04/29/02 ; SPMotor command. Rotate a stepper motor clockwise ; for approx. 1 second then counter clockwise. ; Requires a ULN2803 or Equiv. The PICmicro can ; not drive the stepper motor directly. ;*********************************************** Main SPMOTOR B0, 10, 1000 ; Rotate stepper motor clock wise SPMOTOR B0, 10, -1000 ; Rotate stepper motor counter clock wise Goto Main