Write an assembly language program to turn the stepper motor

Assignment Help Electrical Engineering
Reference no: EM13229903

Write an assembly language program to turn the stepper motor. Start a new project. Set bits 1 to 4 of PORT P ($25A) to 1 (output direction) Do not set bits 0, and 5-7, setting these bits may produce unexpected results. Output the following sequence to turn the motor clockwise to PORT P($258): Bit # 7 6 5 4 3 2 1 0 |= value x x d 0 1 0 1 d |= 0x0A x x d 1 0 0 1 d |= 0x12 x x d 1 0 1 0 d |= 0x14 x x d 0 1 1 0 d |= 0x0C x= cannot write to - writing to these bits may produce undesired results d= don't care This sequence will cause the motor to step four times. Sending the data out in reverse order will cause the motor to turn in the reverse direction. Steps: Program the Port P data direction register as outputs by writing ones to bits 1-4 in the address $25A. Put the step data into an array and use an index register (X or Y) to step through the data. The data sequence should be sent to PORT P (address $258). Note the bits used.When the end of the array is reached the pointer will need to be reset back to the beginning of the array. Delay 30 milliseconds between each step using a loop delay. Make the delay loop a subroutine. Save the program, later direction and speed control will be added. The program should run in a continuous loop.

Reference no: EM13229903

Questions Cloud

Has your employer taken any action to help : Has your employer taken any action to help and encourage you to be a better health care consumer? If yes, what specifically have they done?
What kind of health care plan do you participate in : What kind of health care plan do you participate in? How much is your monthly premium? How much does your employer pay monthly?
How much does your employer pay for employee benefits : As a percent of payroll, how much does your employer pay for Employee Benefits?
Is abc bound under the loan contract : Advise  Eric about any possible liability he may have for insolvent trading under s 588G if Plant Well becomes insolvent and Is ABC bound under the loan contract
Write an assembly language program to turn the stepper motor : Write an assembly language program to turn the stepper motor. Start a new project. Set bits 1 to 4 of PORT P ($25A) to 1 (output direction) Do not set bits 0, and 5-7, setting these bits may produce unexpected results.
Why would the government not tax us for the employee benefit : Why would the government not tax us for the Employee Benefits we receive?
How might an employer effectively increase the perceived : How might an employer effectively increase the perceived value employees place on their Employee Benefit package?
Explain what molarity of aqueous calcium chloride solution : What molarity of aqueous calcium chloride solution can be expected to show the same conductivity as 0.0050 M aluminum sulfate at 12,500 units.
Evaluate the sources of synergy between ebay and the online : Evaluate the sources of synergy between Ebay and the online auction industry.

Reviews

Write a Review

Electrical Engineering Questions & Answers

  Lithium ion battery technology

The paper includes Lithium ion battery technology with its advantages and disadvantages. The paper discusses about the Lithium air battery in which detailed reactions of Lithium with air including nonaqueous as well as aqueous are given.

  Power transformers and tariffs

Construction of different types of power transformer, significant energy savings

  Paper on orthogonal frequency-division multiplexing

This document is shown a paper on Orthogonal frequency-division multiplexing with advantages, disadvantages and uses.

  Function of the hmi in a scada system

This assignment contains electronics engineering questions like State the commonly found components of a SCADA (Supervisory control and data acquisition) system. and decribe the function of the HMI in a SCADA system.

  Resultant waveform of the odd harmonic series

Prepare an Excel graph showing the individual components and summated resultant waveform of the odd harmonic series resulting in an approximate square wave.

  Explain scada system

Explain the function of the HMI in a SCADA system.

  Design a 2-digit 24 second shot-clock

Design a 2-digit 24 second "shot-clock" countdown timer with pushbutton controller.

  Model a discrete-time system

To understand di erent signal models To be able to model a discrete-time system and design simple signal processing algorithms.

  Draw a relay construction diagram

Draw a relay construction diagram and briefly explain the operation of a relay.

  Frequency division multiplexing

Write a short technical report on Frequency Division Multiplexing

  Impact of electron energy

Briefly discuss the impact of electron energy, electron current and target on the Bremsstrahlung generated.

  Traffic light controller

The schematic of the traffic light controller

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd