Program to read data from one port and write to another port

Assignment Help Other Engineering
Reference no: EM131559155

Microprocessor Interfacing & Programming

Q. Write program code in 8051 assembly language for the following conditions

a. Read data from Port 0 if bit 3 of Port 0 is ‘1' then write same data to Port 1 otherwise exit.

b. Read data from Port 0 if bit 3 of Port 0 is ‘1' then write same data to Port 1 and exit else write same data to Port 2 and exit

c. Read data from Port 0 if bit 3 of Port 0 is'1' then write same data to Port 1 and Port 2 otherwise exit.

d. Read data from Port 0 if bit 3 of Port 0 is'1' then write same data to Port 1 and Port 2 and exit else write same data to Port 3 and exit.

e. Read data from Port 0 if bit 3 and bit 6 of Port 0 are both ‘1' then write same data to Port 1 otherwise exit.

f. Read data from Port 0 if bit 3 and bit 6 of Port 0 are both ‘1' then write same data to Port 1 and exit

g. Read data from Port 0 if bit 3 or bit 6 of Port 0 is ‘1' then write same data to Port 1 otherwise exit.

h. Read data from Port 0 if bit 3 or bit 6 of Port 0 is ‘1' then write same data to Port 1 and exit else write same data to Port 2 and exit.

Reference no: EM131559155

Questions Cloud

Explain the cultural and environmental influences : Explain cultural and environmental influences that may help or hinder implementation of the campaign. Explain anticipated long-term implication of the campaign.
Trump conflicting interpretations by the courts : Do you agree with the Supreme Court's Brand X decision holding that agency interpretations of statues should trump conflicting interpretations by the courts?
What is total value for liabilities and capital : From the accounts listed, what is Sierra's total value for liabilities and capital?
Determine the level of evidence identified in the review : Describe the study approach, sample size, and population studied. Evaluate the outcomes, identifying the validity and reliability.
Program to read data from one port and write to another port : Read data from Port 0 if bit 3 of Port 0 is ‘1' then write same data to Port 1 otherwise exit - Microprocessor Interfacing & Programming
How hester and dimmesdale assert her positive influence : How Pearl represents a living emblem of the scarlet letter and how Hester and Dimmesdale assert her positive influence on Hester
Describe three motivational techniques : Describe three motivational techniques that will keep the outcome and effects of others moving toward the organization's goals.
Differences between similar types of establishments : In terms of an organizational culture, there can be a huge range of differences between similar types of establishments.
Determining an employee job satisfaction : Spending time in a positive work environment can be a key factor in determining an employee's job satisfaction. In your resources for this week

Reviews

Write a Review

Other Engineering Questions & Answers

  What value of blt138 generation minimizes

Plot the variation in the total system real power losses as the generation at bus BLT138 is varied in 20-MW blocks between 0 MW and 400 MW. What value of BLT138 generation minimizes the total system losses?

  It is important to include who worked on what questions on

working with your group detail the steps needed to monitor administrate and secure the network in regard to online

  How much bicarbonate is generated

how much HCO3- is generated and what will be the contribution to alkalinity from the HCO3- generated?

  What is the expected error in the stage gain

In the quiescent state, what dc voltage must appear at the output of each of the error amplifiers? At what value of positive vO will QP be supplying all the load current? Repeat for negative vO and QN supplying all the load current.

  Write a vhdl testbench to verify your design

Draw a block diagram of the complete design that implements your algorithm. Write a VHDL code to model this division by constant circuit. Write a VHDL testbench to verify your design.

  Compare and contrast wired media with wireless media

Discuss, compare, and contrast wired media (coaxial cable, twisted pair, fiber optic) with wireless media (802.11 a,b,g,n). Decide which is better and defend your position.

  Concerning the effects of regular internet usage

According to a recent poll published in USA TODAY, roughly 54% of U.S. men and 33% of U.S. women believe in extraterrestial aliens. Of U.S. adults, roughly 48% are men and 52% are women.

  Design a circular cylindrical tank with closed ends

Design a circular cylindrical tank with closed ends subjected to an internal pressure p = 1.0MP a. The dimensions are: length L = 2.0 m and diameter 2a = 1.0 m.

  Temperature of the balls

If the temperature of the balls after quenching is 74°C, determine the rate at which heat needs to be removed from the water in order to keep its temperature constant at 50°C.

  Write vhdl code for the given lfsr circuit

Question no. 1 Write VHDL code for the LFSR circuit given in Fig 1. Use the sample entity statement shown in Fig 2. Use the testbench code given with assignment to test your VHDL code.

  Represents the second highest overhead

For most organizations, the cost of built space represents the second highest overhead (OpEx) after staff costs. From critical consideration of the relevant research literature, your experience, and best practice in space management, consider the ..

  Gauge pressure at the bottom of the cylinder

What volume of water must be added to double the gauge pressure at the bottom of the cylinder?

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