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

  Optimum length of the antenna to receive the fm station

Optimum length of the antenna to receive the FM station, An FM radio station transmits at a frequency of 99.9 MHz. A radio receiver has an antenna that is a quarter wavelength monopole consisting of a telescoping rod

  Surface integral for jet engine

Surface integral for jet engine.  The air-gas exhaust velocity from a jet engine varies linearly from a maximum of 300 m/s at the center of the circular exhaust opening to zero at the edges. If the exhaust diameter is 1.6 m, find  thq  exhaust flow.

  What value should resistance rs inserted in the source lead

A CS amplifier using an NMOS with gm = 3.8 mA/V is found to have an overall voltage gain of -16 V/V. What value should a resistance RS inserted in the source lead have to reduce the overall voltage gain to -8 V/V

  What then is the indicated temperature

Suppose the RTD of (108.1 Ohms) has a dissipation constant of 25mW/°C and is used in a circuit that puts 8 mA through the sensor. If the RTD (108.1 Ohms) is placed in a bath at 100°C, what resistance will the RTD have

  Determine the distribution of the number of customers

Determine the distribution of the number of customers waiting in the queue.

  Why can''t a video signal such as an ntsc analog television

Why can't a video signal such as an NTSC analog television signal be transmitted over a two km length of loaded twisted pair cable with a frequency range 300 Hz to 3,400 Hz? What is the bandwidth occupied by an NTSC video signal?

  Calculate the power converted to mechanical power

A 480 V permanent magnet ac motor is consuming 10 kW at power factor 0.80 lagging. Its speed is 1800 rpm. The winding resistance is 0.5 ohms per phase. Core losses are 100 W. Mechanical losses are 250 W. Stray losses are 1.5% of the input power

  Determine what is the frequency of oscillation

For a Wien-bridge oscillator Given R = 20Kohm and C = 10nF what is the frequency of oscillation Given a required frequency of oscillation of f = 3kHz and R = 5kohm, what should the value of C be

  How many bits to the left of binary point represent number

What fixed point unsigned representation, with how many bits and how many bits to the left of the binary point, should we use if we need to represent numbers in the range 0 - 100 with a resolution of .001 or better

  Define bipolar junction transistor

Bipolar Junction Transistor, A silicon n-p-n bipolar junction transistor is designed with emitter, base and collector doping levels of 10^19cm, 10^15cm and 5*10^17cm, respectively.

  Determine the response of the system

Determine the response of the system when aunit step is applied at input.

  Find all values of alpha such that the system is stable

Find all values of alpha such that the system is stable for K = 2. If the unity feedback closes around this G(s) and an input is a unit step r(t) = 1u(t), what is the stead-state error, e_ss, as a function of alpha and K?

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