Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
11/12/02 09:18
Read: times


 
#32350 - decode this delay300ms subroutine. helo!
Hi,

I'm new in 8051 and the assembly code. I have this program for EEPROM but I don't know how this guy get 300ms from this subroutine.

pls could somebody help me?

Delay 300ms ( @7.3728 MHz )

DL300M:

MOV R5,#000H ;12 cyc
MOV R6,#10110001B ;12 cyc
MOV R7,#002H ;12 cyc
;
DL300L:

DJNZ R5, DL300L ;24 cyc (0 + (177+1*256-1)*256) x 24
DJNZ R6, DL300L ;24 cyc (177 + 1*256) x 24
DJNZ R7, DL300L ;24 cyc (2) x 24

RET



List of 4 messages in thread
TopicAuthorDate
decode this delay300ms subroutine. helo!            01/01/70 00:00      
RE: decode this delay300ms subroutine. helo!            01/01/70 00:00      
RE: decode this delay300ms subroutine. helo!            01/01/70 00:00      
RE: decode this delay300ms subroutine. helo!            01/01/70 00:00      

Back to Subject List