interfacing_of_stepper_motor_using_82C55

Status
Not open for further replies.

samina

Member
I am not understanding the program below ,can anyone help
Unipolar full step Stepper motor: _ _
INPUT SEQUENCE: X Y X Y
1 1 0 0
0 1 1 0
0 0 1 1
1 0 0 1



8255 CONTROL WORD: 1 0 0 0 0 0 0 0 =80H


PROGRAM:

MVI A, 80
OUT port B
START MVI A, FC
OUT port A
CALL DELAY
MVI A, F6
OUT port A
CALL DELAY
MVI A, F3
OUT port A
CALL DELAY
MVI A, F9
OUT port A
JMP START


DELAY LXI D, 0003
CALL DELAY
RET

_
 
hi Sam, Which part of the code is the problem.?

Code:
I am not understanding the program below ,can anyone help
Unipolar full step Stepper motor: _ _
INPUT SEQUENCE: X Y X Y
1 1 0 0
0 1 1 0
0 0 1 1
1 0 0 1



8255 CONTROL WORD: 1 0 0 0 0 0 0 0 =80H  [COLOR=Blue]this instructs the 8255A to set all its PORT pins to outputs...[/COLOR]


PROGRAM:

MVI A, 80;     10000000
OUT port B
START MVI A, FC; 11111100
OUT port A; place 11111100 on PORTA pins
CALL DELAY
MVI A, F6; 11110110 on PORTA pins
OUT port A
CALL DELAY
MVI A, F3; 11110011 on PORTA pins
OUT port A
CALL DELAY
MVI A, F9; 11111001 on PORTA pins
OUT port A
JMP START


DELAY LXI D, 0003
CALL DELAY
RET
 
Last edited:
eric, i havent use MVI before, cant i do it by MOV, i generally use the following format
MOV AL, 83H
OUT 8000, AL where 80000 be the output address
I am not understanding the delay program also

DELAY LXI D, 0003, i havent use it before..
 
can you tell me how the input sequence has come? i have read book but there nothing is given about that?has it chosen arbitary ??Frankly speaking i have a very poor idea about steeper motor
 
can you tell me how the input sequence has come? i have read book but there nothing is given about that?has it chosen arbitary ??Frankly speaking i have a very poor idea about steeper motor

Look at section on this link.
**broken link removed**

Click the animate button on the link

The delay is a software delay, it required to slow down the PORTA drive so that the stepper can keep in step, slows the program down.
 
Last edited:
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…