delay subroutine in assembly language

Status
Not open for further replies.

anasfuad33eng

Member level 1
Joined
Mar 21, 2013
Messages
32
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,498
hi,all what is a duration time of delay and delay2 below:
if oscilator frequency is :22.118MHZ of my 8051 kit
delay:mov r5,#0ffh
h1:mov r3,#0fh
h2:djnz r3,h2
djnz r5,h1
ret

delay2:mov r5,#0ffh
h11:mov r3,#55h
h22:djnz r3,h22
djnz r5,h11
ret

thanks in advance
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…