You are on page 1of 9

8085 HOW-TO GUIDE

Interfacing stepper
motor with 8085

Contents at a Glance
8085TRAINER KIT .............................................................3
STEPPER MOTOR .............................................................3
INTERFACING STEPPER MOTOR........................................4
INTERFACING STEPPER MOTOR WITH 8085 ......................5
PIN ASSIGNMENT WITH 8085 ...........................................5
CIRCUIT DIAGRAM TO INTERFACE STEPPER MOTOR .Error!
Bookmark not defined.
ASSEMBLY PROGRAM TO INTERFACE STEPPER MOTOR ....7

Join the Technical Community Today!

http://www.pantechsolutions.net

8085TRAINER KIT
PS-TRAINER-8085

microprocessor

trainer

kit

is

proposed to smooth the progress of learning and


developing designs of microprocessor from Intel. It has
facility to connect PCs 101/104 Keyboard, to enter user
programs in Assembly languages. User verifies the programs
through LCD or PC. User friendly Firmware confirms
facilitating

the

beginners

learns

operations

of

microprocessor quickly.
STEPPER MOTOR
A stepper motor is a brushless, synchronous electric
motor that converts digital pulses into mechanical shaft
rotation. Every revolution of the stepper motor is divided
into a discrete number of steps, and the motor must be sent
a separate pulse for each step.

Join the Technical Community Today!

http://www.pantechsolutions.net

INTERFACING STEPPER MOTOR


Fig. 1 shows how to interface the Stepper Motor to
microprocessor. As you can see the stepper motor is
connected with Microprocessor output port pins through a
ULN2803A array. So when the Microprocessor is giving
pulses with particular frequency to ls293A, the motor is
rotated in clockwise or anticlockwise.

Fig. 1 Interfacing Stepper Motor to Microprocessor

Join the Technical Community Today!

http://www.pantechsolutions.net

INTERFACING STEPPER MOTOR WITH 8085


We now want to control a stepper motor in 8085
trainer kit. It works by turning ON & OFF a four I/O port
lines generating at a particular frequency.
The 8085 trainer kit has three numbers of I/O port
connectors, connected with I/O Port lines (PA.0
PA.7),(pB.0 pB.7) to rotate the stepper motor. L293d is
used as a driver for port I/O lines, drivers output connected
to stepper motor, connector provided for external power
supply if needed.

PA.0

COIL-B

PA.1

COIL-C

PA.2

COIL-D

PA.3

Join the Technical Community Today!

VCC

MOTOR_PWR
STEPPER

COIL-A
COIL-B
COIL-C
COIL-D

IN1
IN2
IN3
IN4

OUT1
OUT2
OUT3
OUT4

EN1
EN2

1
2
3

MG1

COIL-A

Stepper Motor PWR Select

8255Lines

Stepper Motor(5V)

VS
VSS

STEPPER MOTOR

PIN ASSIGNMENT WITH 8085

(Stepper Motor)

http://www.pantechsolutions.net

CIRCUIT DIAGRAM TO INTERFACE STEPPER MOTOR WITH 8085

Join the Technical Community Today!

http://www.pantechsolutions.net

ASSEMBLY PROGRAM TO INTERFACE STEPPER MOTOR WITH 8085


***************************************************************************************
Title : Program to rotate the stepper motor in clockwise direction
***************************************************************************************
ADDRESS

OPCODE

MNEMONICS

9100
9102
9104
9107
9109
910A
910C
910F
9110
9111
9112
9113
9116
9117
9118
911B

3E 80
D3 23
21 00 92
06 04
7E
D3 20
21 02 02
00
1B
7E
B2
C2 0F 91
23
05
C2 09 91
C3 04 91

MVI A,80
OUT 23
START: LXI H,9200
MVI B,04
REPET : MOV A,M
OUT 20
LXI H,0202
DELAY: NOP
DCX D
MOV A,E
ORA D
JNZ DELAY
INX H
DCR B
JNZ REPET
JNZ START

LOOK UP TABLE:
DATA
9200

DB 03H,06H,0CH,09H (CLOCK WISE)

9204

END

Join the Technical Community Today!

http://www.pantechsolutions.net

Did you enjoy the read?


Pantech solutions creates information packed technical
documents like this one every month. And our website is a rich
and trusted resource used by a vibrant online community of
more than 1,00,000 members from organization of all shapes
and sizes.

Join the Technical Community Today!

http://www.pantechsolutions.net

What do we sell?
Our products range from Various Microprocessor
development boards, DSP Boards, FPGA/CPLD boards,
Communication Kits, Power electronics, Basic electronics,
Robotics, Sensors, Electronic components and much more . Our
goal is to make finding the parts and information you need
easier and affordable so you can create awesome projects and
training from Basic to Cutting edge technology.

Join the Technical Community Today!

http://www.pantechsolutions.net

You might also like