0% found this document useful (0 votes)
6 views8 pages

Exercise-10 (8086 Stepper Motor)

The document outlines an exercise for a microprocessors and microcontroller lab at Presidency University, Bengaluru, focusing on designing an assembly language program (ALP) to control a stepper motor. It includes details on stepper motor interfacing, its applications, and a sample code for driving the motor in specified directions. Additionally, it provides step-by-step instructions for executing the interfacing exercises using specific software and commands.

Uploaded by

houndclegane860
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views8 pages

Exercise-10 (8086 Stepper Motor)

The document outlines an exercise for a microprocessors and microcontroller lab at Presidency University, Bengaluru, focusing on designing an assembly language program (ALP) to control a stepper motor. It includes details on stepper motor interfacing, its applications, and a sample code for driving the motor in specified directions. Additionally, it provides step-by-step instructions for executing the interfacing exercises using specific software and commands.

Uploaded by

houndclegane860
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 8

PRESIDENCY UNIVERISTY, BENGALURU

School of Engineering

Microprocessors and Microcontroller Lab


CSE 254

IV Semester 2018-19
Exercise-10

Design and develop an ALP to drive a Stepper Motor


interface and rotate the rotor in specified direction
(clockwise or anti-clockwise)
Stepper Motor Interfacing:
Stepper motor is a widely used device that translates
electrical pulses into mechanical movement. Stepper
motor is used in applications such as; disk drives,
dot matrix printer, robotics etc.
The construction of the motor is as shown in figure 1
below.
.OUTPUT 2500AD
PC EQU 0FFC4H
CR EQU 0FFC6H
CSEG SEGMENT
ASSUME CS:CSEG
ORG 0:5000H
MOV AL,80H
MOV DX,CR
OUT DX,AL
MOV AL,77H
L2:MOV DX,PC
OUT DX,AL
MOV CX,0FFFH
L1:LOOP L1
ROL AL,1 ; ROR to rotate in ANTI-Clockwise
JMP L2
MOV AH,4CH
INT 21H
CSEG ENDS
END
Steps to Execute Interfacing Exercises
1) C:\masm\> Edit filename.asm
2) C:\masm\> x8086 filename.asm
3) C:\masm\> LINK (Enter)
Input filename: Filename (Enter 5 times)
options: Type H (Enter)
4) Minimize Command prompt window
5) Launch Talk software
Goto options settings communication port (COM 2) OK
6) Goto options connect  press reset button on KIT
( KIT NAME APPEARS ON SCREEN)
7) GOTO FILE DOWNLOAD INTEL HEX FILE  SELECT
FILENAME.HEXOPEN (*# APPEARS ON SCREEN)
8) Type G
Type 5000 (Enter)
THANK YOU

You might also like