Write the delay using inline assembly language

Assignment Help Electrical Engineering
Reference no: EM13249653

Write a C program for a HCS12 microcontroller that writes the value, 0x78, to Memory Location VAR1 and then calls a delay function. The delay function should generate a delay of 0.25 milliseconds. Then, send the pattern 0x99 to Memory Location VAR2 and call the delay function one more time. Repeat this operation eight times using a for loop. Assume that the bus clock frequency is 24MHz. Write the delay using inline assembly language.

Reference no: EM13249653

Questions Cloud

Find the projectiles velocity at the highest point : A projectile is launched with an initial speed of40.0 m/s at an angle of 35.0° above the horizontal. What is the projectile's velocity at the highest point of its trajectory
Write a c program to toggle pb3 of portb on and off : Write a C program to toggle PB3 of PORTB ON and OFF, with a 0.5-ms delay after each toggle. Assume that clock frequency is 6.25 MHz. Write inline assembly-language code inside of the delay function.
What is the magnitude of the induced emf in the coil : A 10-turn square coil of wire lies in the xy-plane. A uniform magnetic field of magnitude 2.0 T oriented in the negative z-direction, what is the magnitude of the induced emf in the coil during this time
Write programme to copy values from array1 to array2 : Write a HCS12 assembly-language program that copies values from ARRAY1 to ARRAY2 until it copies 10 values, or a value in ARRAY1 that is equal to zero.
Write the delay using inline assembly language : send the pattern 0x99 to Memory Location VAR2 and call the delay function one more time. Repeat this operation eight times using a for loop. Assume that the bus clock frequency is 24MHz. Write the delay using inline assembly language.
What is the change in potential energy for this charge : A uniform electric field has a magnitude 330 N/C and is directed along the +y-axis. what is the change in potential energy for this charge
How would you show sensitivity to the stakeholders : How would you show sensitivity to the stakeholders? Why is sensitivity tot the needs of all stakeholders key? What plans could you make to ward off this crisis?
Ability to modify the usa patriot act : Pretend you have the ability to modify the USA PATRIOT Act in any way you want. Describe the change(s) you would make. Support your changes with sound reasoning.
Counter terrorism and anti-terrorism : Argue the effectiveness of President Bill Clinton’s Executive Order #12938, Proliferation of Weapons of Mass Destruction, on counterterrorism and anti-terrorism.

Reviews

Write a Review

Electrical Engineering Questions & Answers

  What sources to pick to get total absorbed power

what sources to pick to get total absorbed power and total delivered power, since a,e,f, and h absorb and b,c,d,and g supply and for total they suggest a+c+d+e+c=absorbed and b+g+f=delivered

  Identify the output samples influenced by boundary effects

The frequencies of the tones are 100 Hz, 300 Hz, and 450 Hz. The sampling rate is 1 kHz. Describe a low pass, a band pass, and a high pass filter that could be used to detect the individual tones.

  Develop an input-output port decoder

Develop an I/O port decoder, using a PLD, that generates 16-bit I/O strobes for the following 16-bit I/O addresses: 1000H-1001H, 1002H-103H, 1004H-1005H, 1006H-1007H, 1008H-1009H, 100AH-100BH, 100CH-100DH, and 100EH-100FH.

  What is the impedance of a resistor r in parallel

What is the impedance of a resistor R in parallel with a series combination of a capacitor C and an inductor L? Assume angular frequency omega(w).

  What is the permeability of the relays magnetic circuit

The springs effect is addressed below. As a relay some contacts are connected to, and move with, the armature. Other contacts are stationary and would make or break contacts as the armature moves.

  Calculate the mutual inductance between all pairs of coils

Three identical constant pitch thin helical coils (having a pitch 3mm, axial length 450mm and inner diameter 20mm) are positioned along a common axis. The axial distance between the first and the second is 55mm

  What is the peak output voltage with feedback

3) If the input voltage to a Full-Wave Bridge Peak Rectifier is vi(t) = 10.4sin(600t) Volts, what is the peak output voltage. Assume all diodes have a 0.7V drop, (ie. VD = 0.7V). 4) For the previous problem, if the resistor in the circuit is equal t..

  Compare power consumption-speed and integration

Compare MOSFET devices to BJT devices. Specifically, which devices are minority carrier devices and which devices are majority carrier devices. What impact does this have Also, compare power consumption, speed, integration, and preva- lence.

  Declare and initialize a double variable payrate

Write C++ statements that accomplish each of the following: a. Declare and initialize int variables x to 25 and y to 18. b. Declare and initialize an int variable temp to 10 and a char variable ch to 'A'. c. Add 5 to the int variable x which alrea..

  What is difference between block diagram and front panel

What does the DAQ Assistant do How is it useful over the legacy acquisition methods What does FFT stand for and what does it do to a real-time signal Sketch the output of an FFT analysis performed on a 100 Hz sinewave signal at 1 V.

  Measurements show that for a particular arrangement

Measurements show that for a particular arrangement of the equipment and at a particular amplifier setting, the system will howl if 1% of the output power is fed back to the microphone. Estimate the power gain of the P.A. amplifier in decibels.

  If loop consists of loop what is the radius along the loop

A current of 4 A flows through a wire forming a "loop" circle of radius r. If the magnetic field in the center of the "loop" is 10 A, what is the radius along the "loop": a) if the loop consists of a loop of wire, b) if the "loop" consists of 20 t..

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