How to program stepper motor in microprocessor 8086 assembly language

How to Control stepper motor using Microprocessor 8086 by assembly language program? As we all know that stepper motor driver plays an important role in automatic control system.

We can create a stepper motor controller using 8086 microprocessor and 8255 Programmable Peripheral Interface IC. Here is the assembly language program for 8086 microprocessor.

This stepper motor assembly language program is quite simple and easy. Here we had described the functions of each code for better understanding.
Basically this assembly program is a beginner guide to those who like to study 8086 programming.
Read Also: Check Prime number is Assembly language
8086 Microprocessor Assembly language
Notations used For representing different types of numbers

We are using some notations here.
B: - used to indicate Binary Number
H: - used to represent Hexa Decimal Number
CW used to represent Control Word register

You must know!

  • Stepper motor is interfaced to 8086 with the help of 8255 IC (Programmable Peripheral Interface). 
  • 8255 has two modes of operation BSR (Bit Set Reset) mode & IO (Input Output) mode. 
  • The mode is determined by the Control Word (CW) register; (here the CW address is 26). 
  • Initialize the CW with (0000 0000)B=(00)H for BSR mode & (1000 0000)B=(80)H for IO mode 
  • Stepper motor is IO device so CW should be (80)H There are 4 poles in a typical stepper motor A1, A2, B1, B2 
  • Energize the poles for anticlockwise rotation we have to apply the following to the poles

8255 Progammable Periferal Interface

So we, out these set of values to the IO port of 8255

8086 assembly language programming code for beginners

The below program shows the interfacing of Stepper motor
In the memory location 2000, we should give Delay program. You can choose any memory location other than 2000 as you like.

The delay Program is shown below
Ads


2 comments:

  1. bro please complete it soon!!!!!!!!!!!

    ReplyDelete
  2. Sorry for the Late completion of Program. Now it is completed

    ReplyDelete

 

Copyright © 2011 CircuitsGallery| ToS | Privacy Policy |

Contact Us | Write For Us | Advertise on Circuits Gallery | About Us