Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 #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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started