To implement the program you must write several subroutines

Assignment Help Microeconomics
Reference no: EM13347657

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.

Reference no: EM13347657

Questions Cloud

Industrial designindustrial design differs from : industrial designindustrial design differs from conventional design engineering in terms of largely aesthetic and
Background informationeileen timmons was a registered nurse : background informationeileen timmons was a registered nurse living in salmon river newfoundland. a single parent with
We want to divide n students into m groups of the same size : we want to divide n students into m groups of the same size where each student is a member of exactly one group. the
You will need to model each population in terms of a nite : you will need to model each population in terms of a ?nite number of individuals which can increase or decrease each
To implement the program you must write several subroutines : to implement the program you must write several subroutines and a main program to operate an engine control unit which
Question 1skyymarley airlines has determined that the price : question 1skyymarley airlines has determined that the price elasticity of demand for two customer segments coach and
Assessmentthe project reports will be evaluated in three : assessmentthe project reports will be evaluated in three areasaccuracy and completeness of computationsyou have to get
We will simulate a very simple network by having a process : we will simulate a very simple network by having a process correspond to a node in the network and files correspond to
1 prepare a program to read 3 numbers x y z use conditional : 1. prepare a program to read 3 numbers x y z. use conditional statement and evaluate values of variables a b and c.

Reviews

Write a Review

Microeconomics Questions & Answers

  Describe the circular flow model

Which of the following does not describe the circular flow model between the householdand the firm? John works at a coffee shop and makes $10 per hour. He decides to leave work an hour early to go see a movie that costs $8 per ticket. The opportuni..

  What impact does increasing or decreasing printing of money

What would happen to each of the following economic varibles if the government increased the money supply by 20% per year: M1, interest rates, inflation and wages What impact does increasing or decreasing the printing of money have on the economy ..

  Analyzing demand function

Management at the Johnston Corporation estimates a demand function for its lawnmower line to be:Explain the coefficients of each explanatory variable.

  The alternative is to keep playing the current game

How much would Firm A be willing to pay to B so that A could move first. Thealternative is to keep playing the current game.

  What should the fed do with its three policies

assuming that the fed judges inflation to be the most significant problem in the economy and that it wishes to employ all of its policy instruments except intrest on reserves, what should the fed do with its three policies.

  Describe the various terms in the ad curve

This is a challenging question and involves algebraically solving system of two equations given by AD abd AS curves. The equations for the curves are given through the following:

  What is the change in deadweight loss n what transfers occur

The best computer company just developed a new computer chip on which it immediately requires a patent - draw a diagram that shows the consumer surplus, producer surplus and total surplus

  Why do consumers bear all of the burden of a tax

calculate the formulas for the monopolists' FC, VC, ATC, AVC, and AFC. calculate the profit - maximizing choice of output, price, and profits. Also, how come, in a perfectly competitive market, the burden of a tax is shared in the short run? Also, ..

  Explain how financial institutions fit in the circular flow

Explain how financial institutions fit into the circular flow diagram (and more specifically why they are important for economic stability and growth). In your own words, explain why financial institutions (and, by extension, financial markets)

  Which is the most desirable alternative

Two hazardous environment facilities are being evaluated, with the projected life of each facility being 10 years. The cash flows for each facility are shown in the table below.The company uses a MARR of 14%. Based on the rate of return, which is t..

  How much would the quantity demanded of imported tv sets

If the price of the imported TV sets was $300.00 in the US.At the beginning of the year, how much would you expect the price of the same imported TV to be in the US at the end of the year.

  How to make use of critical elasticity of demand analysis

Suppose that the "Small but Significant and Nontransitory Increase in Price" threshold is 5%. Making use of critical elasticity of demand analysis, do the existing producers of this product represent an antitrust market, or do additional substitut..

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