Question

Assume the clock frequency is 9 MHz, calculate the total delay when the instruction CALL DELAY_ME...

Assume the clock frequency is 9 MHz, calculate the total delay when the instruction CALL DELAY_ME is executed.

[17, 20, 25, 33, 35]

DELAY_ME: LDI R21,25 ; 1 clock cycle

LOOP_D2: RCALL DELAY0 ;

RCALL DELAY0 ;

RCALL DELAY0 ;

NOP ; 1 clock cycle

DEC R21 ; 1 clock cycle

BRNE LOOP_D2 ; 1/2 clock cycle(s)

LDI R17,5 ; 1 clock cycle

EXTRA_D2: DEC R17 ; 1 clock cycle

BRNE EXTRA_D2 ; 1/2 clock cycle(s)

NOP ; 1 clock cycle

NOP ; 1 clock cycle

RET

DELAY0: LDI R20,73 ; 1 clock cycle

OUTER_D1: LDI R16,72 ; 1 clock cycle

INNER_D1: DEC R16 ; 1 clock cycle

BRNE INNER_D1 ; 1 or 2 clock cycles

DEC R20 ; 1 clock cycle

BRNE OUTER_D1 ; 1 or 2 clock cycles

NOP ; 1 clock cycle

NOP ; 1 clock cycle

NOP ; 1 clock cycle

RET ; 4 clock cycles

The total delay in milliseconds is

0 0
Add a comment Improve this question Transcribed image text
Answer #1

The clock frequency of the board is 9 MHz. Hence, the duration of a single clock cycle is 1/(9*10^6) = 0.11 uses; where u sta

Add a comment
Know the answer?
Add Answer to:
Assume the clock frequency is 9 MHz, calculate the total delay when the instruction CALL DELAY_ME...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT