Question: 1 1 1 Fall 2020/2021 CpE-363 Introduction to Embedded Systems HW #2 1. Find the number of times the following loop is performed. BACK: HERE:

 1 1 1 Fall 2020/2021 CpE-363 Introduction to Embedded Systems HW

1 1 1 Fall 2020/2021 CpE-363 Introduction to Embedded Systems HW #2 1. Find the number of times the following loop is performed. BACK: HERE: MOV R6. #150 MOV R5. #50 DJNZ RS. HERE DJNZ R6, BACK 2. Write a program to add the following numbers and save the result in R2, R3. The data is stored in on-chip ROM ORG 300H MYDATA: DB 51.96.65, 86, 72. 65, 42. 12.75 3. Find the time delay for the delay subroutine shown below, if the system has an 8051 with frequency of 16 MHz. (Explain your answer) DELAY: MOV R3.#200 HERE: NOP NOP NOP DJNZ R3.HERE RET 4. Assume that these registers contain the following: A = FO, B = 56, and R1 = 70. Perform the following operations. Indicate the result and the register where it is stored. Note: the operations are independent of each other. a) ANL A#35H b) XRL A. R1 c) ORL A.88H d) SWAP A RR A RRA

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!