How long is the delay generated by the following code(in seconds)? Assume that the Deal subroutine generates a 1-second delay. Justify your answer. Ignore the execution time for instructions that are in microseconds. MOV R1,#5 MOV A, R1 RL A L2: MOV R2, A L1: CALL Delay DJNZ R2, L1 DJNZ R1, L2

Electric Motor Control
10th Edition
ISBN:9781133702818
Author:Herman
Publisher:Herman
Chapter22: Sequence Control
Section: Chapter Questions
Problem 6SQ: Draw a symbol for a solid-state logic element AND.
icon
Related questions
Question

I have to submit this as .asm in 2 hour please solve quickly and It's assembly 8051

How long is the delay generated by the following code(in seconds)? Assume that the Dealy
subroutine generates a 1-second delay. Justify your answer. Ignore the execution time for
instructions that are in microseconds.
MOV R1,#5
MOV A, R1
L2:
RL A
MOV R2, A
L1: CALL Delay
DJNZ R2, L1
DJNZ R1, L2
Transcribed Image Text:How long is the delay generated by the following code(in seconds)? Assume that the Dealy subroutine generates a 1-second delay. Justify your answer. Ignore the execution time for instructions that are in microseconds. MOV R1,#5 MOV A, R1 L2: RL A MOV R2, A L1: CALL Delay DJNZ R2, L1 DJNZ R1, L2
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Differential Amplifier
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, electrical-engineering and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Electric Motor Control
Electric Motor Control
Electrical Engineering
ISBN:
9781133702818
Author:
Herman
Publisher:
CENGAGE L