Write the ritual that configures an output compare on pt1

Assignment Help Mechanical Engineering
Reference no: EM131090224

The objective of this problem is to measure body temperature using input capture (pulse-width measurement) (Figure 6.25). A shunt resistor is placed in parallel with a thermistor. The thermistor-shunt combination R has the following linear relationship for temperatures from 90 to 110°F.

Figure 6.25

850_139382f5-9ef8-4308-81da-4b9db063e4e2.png

In other words, the resistance varies from 100 k
to 80 k
as the temperature varies from 90 to 110°F. The range of your system is 90 to 110°F and the resolution should be better than 0.01°F. You will use a 74HC123. On the rise of the B trigger input, the 123 creates a negative logic pulse on its output. The width of the pulse is about 0.28⋅R⋅C. Temperature will be measured 100 times a second

a) The pulse-width measurement resolution will be 125 ns for the 9S12. Choose the capacitor value so that this pulse width measurement resolution matches the desired temperature resolution of 0.01°F.

b) Given this value of C, what is the pulse width at 90°F? Give the answer in both microseconds and E clock cycles.

c) Given this value of C, what is the pulse width at 110°F? Give the answer in both microseconds and E clock cycles.

d) Write the ritual that configures an output compare on PT1 as a periodic interrupt. A rising edge should occur every 10 ms. Configure an input capture on PT0 to measure the pulse width.

e) Show the interrupt handler(s) that perform the temperature measurement tasks in the background and sets a global, Temperature, 100 times a second. The units of this unsigned decimal fixed point number are 0.01°F. For example, Temperature will vary from 9000 to 11000 as temperature varies from 90 to 110°F. The output compare interrupt will start the pulse (You may assume the interrupt vectors are properly established, but please use simple interrupt handler names like TOC1handler() and TIC0handler().

Reference no: EM131090224

Questions Cloud

Why do juveniles get involved with crime : After watching ABC Primetime: Juvenile Corrections, and reading the chapter, answer the following questions: Why do juveniles get involved with crime? What are some differences and challenges human services professionals may face when working with..
Derive an equation that relates the distance d : Derive an equation that relates the distance d to the time of flight ?t.
What would be the better measure for central tendency : What would you say would be the better measure for central tendency? (i.e., mean, median, or mode) and why? How variable are the data? How would you describe this data?
Should one base morality on self-interest : Take one of the theories of moral duty that we've been studying (Utilitarianism or Natural Law) and answer the central question of this course: How much time and energy should I spend on myself or others?
Write the ritual that configures an output compare on pt1 : Given this value of C, what is the pulse width at 110°F? Give the answer in both microseconds and E clock cycles.
Construct a powerpoint presentation discussing : Construct a PowerPoint Presentation discussing the proper way to create a job-application letter and resume.
Compare and contrast the major theories of personality : Compare and contrast the major theories of personality. Discuss the major principles associated with personality theory. Understand the historical context of personality theory development.
Stories about her out of chronological order : What does it take for a secondary source to be academically credible? What should you look for to be certain the source is reliable? Tell your classmates what worked for you to find the source you will use for Essay 2. (just needs to make sense)
What are the main differences between the two approaches : What are the main differences between the two approaches? Discuss at least two pros and two cons of each approach. Does research gain from using the Big Five factor theory instead of using either Cattell's model or Eysenck's model? Discuss.

Reviews

Write a Review

Mechanical Engineering Questions & Answers

  Package design

Package Design Brief: Assume you are the packaging engineer for a large consumer products company. In this company, the Packaging Design Briefs are initiated by the marketing group and forwarded to the Package Engineering group.

  Mechanical engineering questions

Define dynamic viscosity, Determine the centroid, Pressure due to the height of liquid, Advantage of changing the liquid, Calculate the total moment about the hinge of the seal gate.

  Automatic control

DOF system and Find the differential equation describing the system

  Write a paper on boyle''s law

Write a paper on Boyle's law and describe Compression and Combustion stroke . Also explain Charles's law and illustrate SI engine and CI engine.

  Verify the law for parallelogram of forces

To Verify the law for parallelogram of forces, law for triangle of forces and law of polygon of forces. These laws are very useful to calculate unknown forces in very short time.

  Discharge pressure of the compressor

What is the discharge revised discharge pressure of the compressor.

  The Case for Global Accounting Standards

The role of IFRS in both developing and developed capital markets.

  Wind turbine

Wind turbines are becoming more and more common as a method of energy production, wind turbines by their very nature are dynamic and are subject to and create their own internal and external kinematics and kinetics.

  Advanced design methodologies

8 x product engineering and design review (week 2 – 12), ~3 pages per item which must contain a brief description of the product then delve into concepts such as materials selection, manufacturing methods, life cycle analysis, recyclability and overa..

  Design of absorption column and the cooler

Design of absorption column and the cooler. Process design of other units should be completed along with pipe sizes.

  Determine the maximum total bending moment

Determine maximum total bending moment (static plus dynamic) of the beam under steady-state conditions.

  Force of the water on the gate

Determine the magnitude of the horizontal and vertical components of the force of the water on the gate.

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