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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
07/14/00 12:16
Read: times


 
#3742 - 8031 delay routine...
Hi All,

I need to know how to calculate a delay routine using a 7.3728Mhz crystal. Here is the delay routine I have now. It is a 1ms delay times ACC using a 12Mhz crystal. Please show me the formula to calculate this.
DELAY: PUSH B
MOV B,#0xF0 ;12 MHz, CHANGE TO 0xC9 FOR 11.0592
DJNZ B,*
DJNZ B,* ;NO, THIS ISN'T A MISTAKE
POP B
DJNZ ACC,DELAY
RET

Thanks,
Dave Kaleta

List of 4 messages in thread
TopicAuthorDate
8031 delay routine...            01/01/70 00:00      
RE: 8031 delay routine...            01/01/70 00:00      
RE: 8031 delay routine...            01/01/70 00:00      
RE: 8031 delay routine...            01/01/70 00:00      

Back to Subject List