INTERFACING STEPPER MOTOR USING 8085.
INTERFACING
8255 WITH 8085
AIM:
To interface stepper motor using programmable peripheral
interface 8255 with 8085 and study its characteristics in I/O-mode.0
KITS REQUIRED:
8085
mp
kit, DC regulated power supply, 26 pin
frc cable ,stepper motor interface ,stepper motor
Programmable Peripheral
Interface 8255
I/O MODES:
Control
Word:
MODE 0 – SIMPLE I/O MODE:
This
mode provides simple I/O operations for each of the three ports and is suitable
for synchronous data transfer. In this mode all the ports can be configured
either as input or output port.
Let us initialize port A,B,C as output port
ADDRESS
|
OPCODE
|
LABEL
|
MNEMONICS
|
OPERAND
|
COMMENT
|
8C00
|
|
|
MVI
|
A,80
|
All ports are o/p ports
|
8C01
|
|
|
|
|
|
8C02
|
|
|
OUT
|
43H
|
Out to control reg
|
8C03
|
|
|
|
|
|
8C04
|
|
|
MVI
|
A,88
|
Initialize bit pattern
|
8C05
|
|
|
|
|
|
8C06
|
|
LOOP
|
OUT
|
40H
|
PA0-PA3 bit control the
motor
|
8C07
|
|
|
|
|
|
8C08
|
|
|
CALL
|
DELAY (8C20)
|
|
8C09
|
|
|
|
|
|
8C0A
|
|
|
|
|
|
8C0B
|
|
|
RRC/RLC
|
|
To rotate left or right
|
8C0C
|
|
|
JMP
|
LOOP
|
|
8C0D
|
|
|
|
|
|
8C0E
|
|
|
|
|
|
|
|
DELAY PROGRAM
|
|
|
|
8c20
|
|
delay
|
PUSH
|
PSW
|
|
ADDRESS
|
OPCODE
|
LABEL
|
MNEMONICS
|
OPERAND
|
COMMENT
|
8C21
|
|
|
LXI
|
H,0001
|
|
8C22
|
|
|
|
|
|
8C23
|
|
|
|
|
|
8C24
|
|
D2
|
LXI
|
D,FFFF
|
|
8C25
|
|
|
|
|
|
8C26
|
|
|
|
|
|
8C27
|
|
D3
|
DCX
|
D
|
|
8C28
|
|
|
MOV
|
A,E
|
|
8C29
|
|
|
ORA
|
D
|
|
8C2A
|
|
|
JNZ
|
D3
|
|
8C2B
|
|
|
|
|
|
8C2C
|
|
|
|
|
|
8C2D
|
|
|
DCX
|
H
|
|
8C2E
|
|
|
MOV
|
A,H
|
|
8C2F
|
|
|
ORA
|
L
|
|
8C30
|
|
|
JNZ
|
D2
|
|
8C31
|
|
|
|
|
|
8C32
|
|
|
|
|
|
8C33
|
|
|
POP
|
PSW
|
|
8C34
|
|
|
RET
|
|
|
OBSERVATION:
No comments:
Post a Comment