Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

counter clock wise routation #2

Open
hamoonsh opened this issue Jun 13, 2017 · 2 comments
Open

counter clock wise routation #2

hamoonsh opened this issue Jun 13, 2017 · 2 comments

Comments

@hamoonsh
Copy link

Hi
I know that this motor can do clock wise steps using the below commands,but how i can do the counter clock wise steps?
MOV AL, 001b ; initialize.
OUT 7, AL

MOV AL, 011b ; half step 1.
OUT 7, AL

MOV AL, 010b ; half step 2.
OUT 7, AL

MOV AL, 110b ; half step 3.
OUT 7, AL

@BasakFulya
Copy link

BasakFulya commented Jul 1, 2017 via email

@hamoonsh
Copy link
Author

hamoonsh commented Jul 1, 2017

Hi
the problem was opening a window using the step_motor and then closing it.
Thanks for replying my issue but i found the answer.
In case someone else needed the code:

#start=stepper_motor.exe#



MOV AL, 06h 
OUT 7, AL

MOV AL, 04h
OUT 7, AL

MOV AL, 03h 
OUT 7, AL

MOV AL, 02h
OUT 7, AL

MOV AL, 06h 
OUT 7, AL

MOV AL, 04h
OUT 7, AL

MOV AL, 03h 
OUT 7, AL

MOV AL, 02h
OUT 7, AL
              
;-------------------------------
MOV AL, 03h 
OUT 7, AL

MOV AL, 01h
OUT 7, AL

MOV AL, 06h 
OUT 7, AL

MOV AL, 02h
OUT 7, AL

MOV AL, 03h 
OUT 7, AL

MOV AL, 01h
OUT 7, AL

MOV AL, 06h 
OUT 7, AL

MOV AL, 02h
OUT 7, AL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants