This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Execution Time calculator.

Friends,
Is there any way to calculate the time of execution for a piece of 8051 Assembly Code ?.Say for example I am having a 8051 delay loop in assembly code.I just want to find out how much time is elapsed in executing the delay loop.I searched in Google, but in vain.
Thanking You.
Regards,
Vamanan Kutty

Parents
  • Dear Neil,
    The assembly code consists of Loop inside a Loop inside a Loop.It is creating confusion to calculate the execution time exactly.
    The following was the code

    DLYKK: MOV R3, #39
    MOV R2, #38
    MOV R1, #79
    TDK: DJNZ R1, TDK
    DJNZ R2, TDK
    DJNZ R3, TDK
    RET
    Can you please guide me how to reach the exact timing.Is there any execution time calculator other than performance analyzer?.
    I will try with performance analyzer.
    Thanks for your suggestion.

Reply
  • Dear Neil,
    The assembly code consists of Loop inside a Loop inside a Loop.It is creating confusion to calculate the execution time exactly.
    The following was the code

    DLYKK: MOV R3, #39
    MOV R2, #38
    MOV R1, #79
    TDK: DJNZ R1, TDK
    DJNZ R2, TDK
    DJNZ R3, TDK
    RET
    Can you please guide me how to reach the exact timing.Is there any execution time calculator other than performance analyzer?.
    I will try with performance analyzer.
    Thanks for your suggestion.

Children