Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Microeconomics Expert

To implement the program you must write several subroutines and a main program to operate an Engine Control Unit which uses the Analog To Digital converter (ATD), Input/Output ports and the Timer built into the HC12. The input of ATD channel 2 is connected to a tachometer measuring the engine speed. An active low timing trigger input and the fuel inj ector pulse output are connected to Port H as shown in Figure 1.

344_operate an Engine Control Unit.png

You are required to take 4 engine speed measurements, take their average value, make a simple calculation and create the timing interval for the fuel injector pulse width (W).

There are several parts/subroutines required to be written for this problem and you may create other subroutines to complete your coding and improve the structure of your program.

Instructions on how to implement the program using the MiniIDE editor/assembler and SimH Simulator software are provided aftert this specification. Suggestions on using the simulator to test your p rogram arep rovided (in italics) in severalpar ts of the assignment.

Part-1

Write an assembly language subroutine called INITATD to initialise the ATD ready to operate as required in Part 2 below.

Part-2

Write an assembly language subroutine called SPEED that starts an 8 bit, left justified ATD conversion on channel 2, waits for the conversion to complete, reads the resulting data and returns the data in accumulator A. The data value returned will be a positive number, $00 through to $50 (decimal=80). This number is a measure of Engine Speed (S) in hundreds of revs per minute. For example an ATD value of $20 (decimal=32) equates to 3200 rpm. Although larger numbers can come from the ATD, the maximum range of values you can expect is 0 to 80.

When testing this on the simulator you should switch on the ADC viewer under the View menu. You should set the analog input using the sliderf or channel 2 (PAD2). A value of 0.0 volts set on the slider equates to 0 rpm and 1.5682 volts set on the slider equates to an engine sp eed of 8000 rpm . Each click on a slider arrow is 100 rpm up or down on the engine speed.

Microeconomics, Economics

  • Category:- Microeconomics
  • Reference No.:- M9717274

Have any Question?


Related Questions in Microeconomics

Question apple computer wants to have 21 billion available

Question: Apple Computer wants to have $2.1 billion available 5 years from now in order to finance initial production of a device that applies IOT technology for home use. The company expects to set aside uniformly incre ...

Question you are on the board of directors of a private

Question: You are on the board of directors of a private high school, which is hiring new tenth-grade science teachers. As you think about hiring someone for a job, what are some mechanisms you might use to overcome the ...

Question there is a growing interest in strategies that

Question: There is a growing interest in strategies that separate the financial rights (to dividend income) associated with a share of stock from its voting rights (for the corporation's directors).42 For example, if I b ...

Question consider the aggregate demand-aggregate supply

Question: Consider the Aggregate Demand-Aggregate Supply framework. Suppose we are not in a liquidity trap (and do not end up in a liquidity trap), and the Fed does NOT target the interest rate. Show what happens if oil ...

Question in the early 1990s mit economist lester thurow

Question: In the early 1990s, MIT economist Lester Thurow wrote that of the three major powers in the world economy in the twenty-first century, Europe would be the leader. However, its growth rate fell far behind the US ...

Question the united states economy is experiencing a

Question: The United States economy is experiencing a moderate economic downturn. The Republican President has addressed the downturn using stereotypical Republican methods. The economy failed to improve significantly, a ...

Assignment describe international standard diagnosis

Assignment: Describe international standard diagnosis classification use in the US health care reimbursement and billing system. Utilizing your textbook and the Library: • Describe the importance of proper coding in heal ...

Question managing organizational change a multiple

Question: Managing Organizational Change: A Multiple Perspectives Approach 3nd edition By Ian Palmer and Richard Dunford and David Buchanan Lesson 1 Discussion This assignment will require you to research at least one of ...

Question materiality and risk dag nilsson auktoriserad

Question: Materiality and Risk. Dag Nilsson, Auktoriserad Revisor (AR), considers the audit risk at the financial statement level in the planning of the audit of the financial statements of Lycksele Lappmark Bank (LLB) i ...

Question according to an article in the new york times the

Question: According to an article in the New York Times, the Venezuelan government "imposes strict price controls that are intended to make a range of foods and other goods more affordable for the poor. They are often th ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As