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

  What was the effect on the wages earned by the labor force

Identify an example in which the competitive environment affected the relationship between labor and management. How was the relationship affected?

  Explain how you achieved the payouts in the game

Using game theory, map out a prisoner's dilemma game that shows why even though discrimination was prominent, Major League Baseball allowed blacks to play in the MLB. Please explain how you achieved the payouts in the game.

  Nature of competitive industries

Firms like Papa John's, Domino's, and Pizza Hut sell pizza and other products which are differentiated in nature. While numerous pizza chains exist in most locations, the differentiated nature of such firms products permits them to charge prices a..

  Information about equilibrium price and output

The switch to the use of HFCS from sugar in soft drinks was prompted in large part by its relatively lower price. Assuming a competitive market, what effect would this change have on the equilibrium price and output for soft drinks?

  Multiple linear regression model- analysis

Estimate the linear model described in part (a) using Ordinary Least Squares regression and display your regression results.

  What would be the total potential gains from trade

What would be the total potential gains from trade if the ski resort and the birders were able to negotiate and what are the total net benefits of the economically efficient number of ski resort acres

  How is purchase of car different from purchase of pizza

If you buy a new car the entire purchase is counted as consumption in the year in which you make the transaction. Explain briefly why this is in some sense an 'error' in national income accounting.

  How would you determine which were important

What factors might these types of stores have in common behind their declines? How would you determine which were important and which were not?

  Define moral hazard in a general way

Define moral hazard in a general way and then provide a more specific definition of moral hazard in an insurance market.

  What assumptions are necessary for a market to be perfectly

What assumptions are necessary for a market to be perfectly competitive? In light of what you have learned in this chapter, why is each of these assumptions important?

  How do the concepts of interconnectiveness compare to theory

Why are these two concepts so imortant in urban planning? Explain what Woodrow Wilson (1887) meant when he claimed that politics and administration should be considered to exist separately from each other. How do the concepts of interconnectivenes..

  Recovery programs and new deals

Franklin D. Roosevelt ' New Deal in the 1930's aid United States to go through the depression. There were famous 3-Rs: relief, recovery and reform.

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