Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

calculate .. (T delay) (Time executed) need help with explain please

Status
Not open for further replies.

sam001

New Member
find how many the time will loop be executed? what is the total delay of this subroutine with 8051 processor at 11.0592MHZ? (Machine cycle, Mov = 1 , DJNZ = 2 , RET = 2)

Delay: MOV R5,#100
Back: MOV R2, #200
Again: MOV R3, #250
Here: DJNZ R#,Here
DJNZ R2, Again
DJNZ R5, back
RET




---------------------------------------------
THANKS
 
Approximately 1.5 mS .... Assuming above cycle machine instruction.... 12 clock cycles per instruction..

time = 1.085μS per instruction

MOV = 1
MOV = 200
MOV = 250
DJNZ = 400
DJNZ = 500
RET = 2
Total = 1353 instruction cycles
 
Last edited:
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top