An 8051 subroutine is shown below: RO , #20H @RO, #0 MOV LOOP: MOV INC RO CJNE RO, #80H,LOOP RET i. What does the subroutine do? ii. In how many machine cycles does each instruction execute? iii. How many bytes long is each instruction? Convert the subroutine to machine language (Hexcode). How long does this subroutine take to execute? (Assume 12 MHz operation) iv. V.

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

THE FOLLOWING QUESTION CONTAINS ALL THE REQUIREMENTS NEEDED.

b) An 8051 subroutine is shown below:
MOV
RO, #20H
LOOP:
MOV
@RO, #0
INC
RO
CJNE RO, #80H,LOOP
RET
i.
What does the subroutine do?
ii.
In how many machine cycles does each instruction execute?
ii.
How many bytes long is each instruction?
Convert the subroutine to machine language (Hexcode).
How long does this subroutine take to execute? (Assume 12 MHz operation)
iv.
V.
Transcribed Image Text:b) An 8051 subroutine is shown below: MOV RO, #20H LOOP: MOV @RO, #0 INC RO CJNE RO, #80H,LOOP RET i. What does the subroutine do? ii. In how many machine cycles does each instruction execute? ii. How many bytes long is each instruction? Convert the subroutine to machine language (Hexcode). How long does this subroutine take to execute? (Assume 12 MHz operation) iv. V.
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Electric heating unit
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