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.

1 sec delay for 89s52 microconroller

Status
Not open for further replies.

sandy92

New Member
hi, i am using 11.0592MHZ crystal osc, i tried to create delay for exactly one sec (code shown below) but i got only 0.99sec. can anyone help me?

mov r0,#7
l3:mov r1,#255
l2:mov r2,#255
l1:djnz r2,l1
djnz r1,l2
djnz r0,l3
ret
:)
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top