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 haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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