To learn how to use the rom program space for data

Assignment Help Other Engineering
Reference no: EM131075503

Objectives:

  • To become familiar with enabling internal pull-up resistors and reading an input port
  • To learn how to wait for a pushbutton press
  • To learn how to organize a C program to read data from input ports, process the data, and display the result on a simple output device
  • To learn how to use the ROM program space for data

Observations/Measurements:

IV. 1- A. Cut and paste the Memory window, showing the value of mybye before pressing SW1.

IV. 1-B. Cut and paste the Memory window, showing the value of mybyte after pressing SW1.

IV. 1.C - Which LED light turns ON?

IV. 1.D- What are the LED values when you press SW2?

IV. 2. A. Cut and paste the source code.

IV. 2. B. What is the value of PT1AD? Cut and paste the Memory window, showing the value of PT1AD.

IV. 2. B.What are the LED values when you press SW2? Describe what you observe when you press any of the pushbuttons

IV. 3. A. Cut and paste the source code.

IV. 3. B. What are the LED values when you press SW4? Describe what you observe when you press a different switch when the light is ON.

IV. 4. A. Cut and paste the source code

IV. 4. B. Cut and paste the Memory window.

IV. 4. C. Describe how you verify that the data is stored in ROM. Cut and paste the Memory window.

IV. 4. D. Describe how you verify that the data is stored in RAM. Cut and paste the Memory window

Questions:

Describe the code statement:

while ((PT1AD & 0xF0) != 0xF0);

1. What does this code do? Do we need the inner parenthesis for the code to work? Why?

2.When we define an array in the program ROM space, we use a const keyword. What does this keyword do? What does happen if we remove this keyword?

Reference no: EM131075503

Questions Cloud

Eyes from electromagnetic radiations : Welders wear special goggles or face masks with glass windows to protect their eyes from electromagnetic radiations. Name the radiations and write the range of their frequency.
Set up the leontief input-output model for this situation : There is a final demand of 20 units of goods and 30 units of services. Set up the Leontief input-output model for this situation.
Motion of copper plate damped : The motion of copper plate is damped when it is allowed to oscillate between the two poles of a magnet. What is the cause of this damping?
Insulating strings of equal length : Two equal balls having equal positive charge ‘q' coulombs are suspended by two insulating strings of equal length. What would be the effect on the force when a plastic sheet is inserted between the two?
To learn how to use the rom program space for data : To become familiar with enabling internal pull-up resistors and reading an input port. To learn how to wait for a pushbutton press
Calculate the angular velocity of the mars : Calculate the angular velocity of the Mars (orbital period of 1.88 Earth period) in its orbit around the Sun. Calculate the angular velocity of the Mars (rotational period of 1.03 Earth period) about its axis.
Potential at the centre of the sphere : A hollow metal sphere is charged such that the potential on its surface is 10 V. What is the potential at the centre of the sphere?
What is the dimension of the null space of a : MATH 54 QUIZ 5. Suppose A is a 5 × 7 matrix whose rank is 3. What is the dimension of the null space of A? Justify your answer
Spherical charged conductor constant : Why is the potential inside a hollow spherical charged conductor constant and has the same value as on its surface?

Reviews

Write a Review

Other Engineering Questions & Answers

  What is the voltage drop across rb

Transistors Q10, Q11, and Q13 are to be identical and must have the same gm as Q8 and Q9. Transistor Q12 is to be four times as wide as Q13. Let k1n =3k1p =180 μA/V2, and Vtn |Vtp |= 0.5 V; let all hannel lengths be equal; and let VDD =VSS =1.5 V..

  Determine the optimum cross sectional area

A balanced load of 6mva is to be supplied for 2000 hours each year through a 5km three phase 11kv circuit usings kelvins law determine the optimum cross sectional area of an aluminuim conducter yo supply this load.

  Questionsolvents are among the most commonly used chemicals

questionsolvents are among the most commonly used chemicals in workplaces. workers in different jobs regularly use

  Life cycle of public health partnerships

Explain the life cycle of public health partnerships. Why are collaborative partnerships important? What reasons or issues lead to the termination of partnerships?

  Explain the common causes of in-service failure for products

Explain how one heat treatment process and two other treatment processes affect the structure, properties and behaviour of the parent material

  Formulate a maximum-flow problem

Formulate a maximum-flow problem that will determine the maximum number of people that can travel to the safe facilities

  Find equivalent capacitance at the output node of inverter

In a particular logic-circuit technology, operating with a 3.3-V supply, the basic inverter draws (from the supply) a current of 60 μA in one state and 0 μA in the other. When the inverter is switched at the rate of 100 MHz, the average supply cu..

  Find the amount of each cash flow in an equal quarterly cash

The first cash flow of a 25-year series of quarterly cash flows is equal to $35,000. Each cash flow in the series increases by $800. Find the amount of each cash flow in an equal quarterly cash flow series that is equivalent to the increasing cash..

  What percentage can the bit-line capacitance

For each inverter, find the value of Gm. For a bit-line capacitance of 0.4 pF, and a delay until an output of 0.9VDD is reached of 1 ns, find the initial difference voltage required between the two bit lines. If the time can be relaxed by 1 ns, w..

  Estimate the fluid outlet temperatures

Atmospheric air at 10°C enters the exchanger with a volumetric flow rate of 1.0 m3/s. The convective heat transfer coefficient on the tube outer surfaces is 400 W/m2·K. Estimate the fluid outlet temperatures.

  Laplace transform in the analysis of systems

Discuss the advantages of Laplace Transform in the analysis of systems.  Discuss what is meant by a transfer function. How do they help describe system stability?

  What is the power being dissipated in the device

A power transistor is specified to have a maximum junction temperature of 150C. When the device is operated at this junction temperature with a heat sink, the case temperature is found to be 97°C. The case is attached to the heat sink with a bond ..

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