Stepper motor driver program
GT
Posts: 2
Hi there,
I hope someone can advise me what to change in your attached sample program at the end of this email.
Stepper motor driver routine (Parallax own example version).
Under the heading 'Initialisation' the DIRB value is %1111 for outputs P4.....P7
I want to use outputs P8.....P11.
What do I have to change (and to what) in the DIRB value and subsequent related instructions to make this work? I have run the program as is and added a few Debug points which shows it is doing what it's meant to. I just need to change the ports so I can use an existing PCB to drive the stepper motor (a Portoscap 42MO48C1U 5v 9.1ohm 7.5°) via a ULN2003 driver chip from outputs P8.....P11.
I hope you can help me on this one. Just can't got to grips with the DIRS command!
Best regards,
Gerry Taylor.
I hope someone can advise me what to change in your attached sample program at the end of this email.
Stepper motor driver routine (Parallax own example version).
Under the heading 'Initialisation' the DIRB value is %1111 for outputs P4.....P7
I want to use outputs P8.....P11.
What do I have to change (and to what) in the DIRB value and subsequent related instructions to make this work? I have run the program as is and added a few Debug points which shows it is doing what it's meant to. I just need to change the ports so I can use an existing PCB to drive the stepper motor (a Portoscap 42MO48C1U 5v 9.1ohm 7.5°) via a ULN2003 driver chip from outputs P8.....P11.
I hope you can help me on this one. Just can't got to grips with the DIRS command!
Best regards,
Gerry Taylor.
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Don't worry. Be happy
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Engineering