What is the value displayed on the led

Assignment Help Programming Languages
Reference no: EM13802736

1. Write, compile, and load the program

 

A. In the Data1: window, right click on num1, then left click on Show Location.  The value of the initialized variables should appear in the Memory window. Cut and paste the Memory window.

 

B. Single step through the program using F11 and verify the value of the result in Memory window. Cut and paste the Memory window to show the value of result.

 

C. What is the value displayed on the LEDs after you single step the line PTT = ~result?

 

2. Write, compile, and load the program described in Example 2 above.

 

A. Run the program on the board by pressing the Reset button on the Tower. What are the LED values?

 

B. Calculate the delay size.

 

3. Initialize an array with binary numbers 0 to 9. Use a "for loop" to display each array element on the Tower LEDs and have a one-second delay between each display. Define all of the variables as unsigned character. The delay should use inline assembly language.

 

A. Cut and paste the source code.

 

B. In the Data1: window, right click on the array name, then left click on Show Location. The initialized data array should appear in the Memory window. Cut and paste the Memory window.

 

C. Run the program on the board by pressing the Reset button on the Tower. Describe the values of LEDs. What is the last value that you see?

 

4. Modify the "for loop" in Problem 3 so that it displays numbers starting from 9 down to 0. In other words, the loop should become: for( i=9; i>= 0; i--). Run the program and observe the LED values. Does the loop end?

 

A. Cut and paste the source code.

 

B. Run the program by pressing the Reset button on the Tower. Describe the values of LEDs. What is the last value that you see? Does the loop end?

Reference no: EM13802736

Questions Cloud

What is the closed-loop bandwidth : A certain amplifier has an open-loop gain in the midrange of 180000 and an open loop critical frequency of 15000 Hz. If the attenuation of the feedback gain is .015, what is the closed-loop bandwidth. solve?
How to operate a piece of equipment or appliance : How to operate a piece of equipment or appliance, or instructions for a procedure you are familiar with . Be clear and concise. Give all the information your audience needs.
Diversity on psychology major concepts : Evaluate the influence of diversity on psychology's major concepts. Identify two examples of sub disciplines and two examples of subtopics within psychology. Sub disciplines
What is mcb miniature circuit breaker : What is MCB (Miniature Circuit Breaker) ? and How to Read MCB Nameplate Data Rating Printed on it?
What is the value displayed on the led : In the Data1: window, right click on num1, then left click on Show Location.  The value of the initialized variables should appear in the Memory window. Cut and paste the Memory window. What is the value displayed on the LEDs after you single step th..
Evaluate porters three-phase process : Evaluate Porters three-phase process for defining a company strategy in relation to your chosen organisation - Create a simple chart of the recommended change and address the issues in each phase for your organisation.
Consequences of not having verification practices : How could Administrative, Technical, and Physical Controls introduce a false sense of security? What are the consequences of not having verification practices?
Difference between electromotive force and potential differe : What is the difference between electromotive force and potential difference?
Write descriptive report about culture of a group of people : write a descriptive report about the culture of a group of people, a company, or an organization based on background research and an interview of a professional person who is part of that culture.

Reviews

Write a Review

 

Programming Languages Questions & Answers

  Write a program to find all real roots

Write a program to find all real roots of a given polynomial f. Starting with 0.0, use step size of 0.25 to find a and b such that sign(f(a)) sign(f(b)).

  Describe how to create users for sales organization unit

Describe how you would create users for sales organization unit and how you can set up user groups in this particular situation (global, universal, domain local).

  Program to display only unique values which user entered

Program to display only the unique values which the user entered. Give for the "worst case" in which all 20 numbers are different. use smallest possible array to solve this problem.

  Program to give and take advice on program writing

Write down the program which gives and takes advice on program writing. Program starts by writing the piece of advice to screen and asking user to type in different advice.

  Dishtinguish antigone and what you know of theban saga

How would you dishtinguish Antigone, and what you know of Theban saga, to Oresteia, and what you know of story of Mycenaean saga?

  Write program which permits the user to enter students name

Write the program which permits the user to enter students' names followed by their test scores and outputs following information (suppose that maximum number of students in class is 50)

  Write a program that asks the user to answer some questions

Write a program that asks the user to answer some questions. First, you should ask the user if they want to load answers from a previously saved file. If they respond yes you should look for the file name of your choosing in the path of your choos..

  Program to compute total price of items before tax

Program is to compute total price of items before tax and then tax payable on those items. Tax payable is computed by applying tax rate percentage to total price.

  Produce a store procedure to accept parameters

Produce a store procedure named spBalanceRange which accepts three optional parameters. Procedure returns the result set consisting of VendorName,

  Write the program to model simple calculator

Write the program to model the simple calculator. Each data line must consist of next operation to be performed from list below and right operand.

  Allows the user to enter the cost for an item

Write a program that allows the user to enter the cost for an item and the number of that item ordered.

  Program in visual basic to calculate area of triangle

Write a program in visual basic to calculate area of a triangle.

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