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

  Compute power pr absorbed-dissipated in heat

The practical voltage source is formed by combining an ideal voltage source (Vs) and internal resistance (r). 1) Without computing, determine sign of power Ps delivered by voltage source

  Determine equivalent circuit referred to high-voltage side

150 kVA, 2400/240 V single-phase transformer has the parameters. (a) Determine the equivalent circuit referred to the high-voltage side. (b) Find the primary voltage and voltage regulation when transformer is operating

  What is the minimum sampling frequency for a/d conversion

A video signal contains light variations that change at a frequency as high as 3.5 MHz. What is the minimum sampling frequency for A/D conversion?

  What is the value of the smallest resistor

The voltage drops across three resistors in series are measured to be 10.0V, 15.0V, and 25.0V. If the largest resistor is 47.0 ?, what is the value of the smallest resistor?

  What is the step response equation for charge time

1. What is the step response equation for charge time 2. How to determine the current in RLC circuit using the osciscope 3. List three reseasons why the measured value and pspice value for tau are different.

  Initialize contents of array to random numbers using rand

Write a program to do the following: Declare a 4x4 2D integer array, Initialize the contents of the array to random numbers using rand() , Print the contents of the array, Prompt the user to enter a number to search for inside the array

  Design interface between a computer output port and en relay

An alarm is powered by 120 VAC, and the on/off state of the alarm is controlled by an EM relay. Design the interface between a computer output port and the EM relay. The dropout voltage is 3.5 V, and the coil current needs at least 100 mA. Limit t..

  Compute the convolution for the discrete signals

For the discrete signals defined as the following: x[0]=4, x[1]=1, x[3]=-1, x[n]=0 for all other integers n. v[0]=1, v[1]=-2, v[2]=3, v[3]=-4, v[n]=0 for all other integers n. Compute the convolution x[n]*v[n] for n

  Give the solution to power factor

The solution to Power Factor, Two single-phase loads are connected in parallel across a 415 V, 50 Hz supply. One load is rated 130 kW at a power factor of 0.75

  Derive the expression for transfer function

Derive the expression for TRANSFER FUNCTION and write the expression for magnitude and phase of H(f).

  Determine what is the percent efficiency

The shaft output of a three-phase 60- Hz induction motor is 80 KW. The friction and windage losses are 920 W, the stator core loss is 4300 W and the stator copper loss is 2690 W. The rotor current and rotor resistance referred to stator are respec..

  Design a plc program if motor ol contacts are hardwired

Design a PLC program and prepare a typical I/O connection diagram and ladder logic program for the following motor control specifications:1) A motor must be started and stopped from any one of three start/stop pushbotton stations.

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