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

  Computing first seven values of fibonacci number sequence

Write a program that uses a loop to compute the first seven values of the Fibonacci number sequence.

  Write program to compute integer remainder

Write program segments which accomplish each of the following:  Compute the integer part of quotient when integer a is divided by integer b.

  Values of variables of logical section of the pseudocode

What are the values of variables a, b, and c after each line of code of each logical section of the pseudocode. Show why the logical section is running.

  Create a logical expression

Create a logical expression that corresponds to the following statement - Complete the truth table for the expression created.

  File processing commands worksheet

File Processing Commands Worksheet. What UID and PID have the highest amount of physical memory a process has used and is not swapped out? Show all processes and full output.

  Write script in unix to monitor creation of pdf in directory

Write script in unix which monitors creation of .pdf or PDF file in current directory. Every minute it must display list of these filenames created after previous display a list.

  Write function for three components of name

Write down the function, that given three components of name (first name, middle name or initial, and last name), returns single string object consisting of last name,

  Store a list of items on a grocery list

write a program that uses a string array to store a list of items on a grocery list. The program should allow the user (via a menu) to add an item to the list, clear the list, and display the list.

  Write a while and a do-while loop

Pick one or more examples from everyday life and write a WHILE and a DO-WHILE loop.

  Occurrence of the longest substring of capital

Input a string. Output the starting position and length of the first occurrence of the longest substring of capital Xs in that string. The first letter is in position 1.

  Prepare a program that takes the data from triangle

Prepare a program that takes the data from triangle.txt (supplied in this folder) and outputs a message indicating whether the triangle is a right triangle. The text file has data for three triangles.

  Create a program to compute car-s miles-per-gallon

Create a program which ask's the user for number of miles driven and gallons of gas used. It must compute the car's miles-per-gallon and show the result on the screen.

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