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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/22/04 15:04
Read: times


 
#70952 - Delay Calculations in 8051 uC
I want to calculate the values for registers R3,R2,R1 for the following delay routines when the required delay in Seconds are given.
No. of Cycles = req. delay(in sec)*(11059200/12)
letus for 5 Sec delay,
Total req. cycles = 4608000
Now how we can find the values of R3, R2, R1 from total required cycles for the given delay routines :

MOV R3,#?
MOV R2,#?
MOV R1,#?
TT: DJNZ R1,TT
DJNZ R2,TT
DJNZ R3,TT
JMP $

List of 7 messages in thread
TopicAuthorDate
Delay Calculations in 8051 uC            01/01/70 00:00      
   RE: Delay Calculations in 8051 uC            01/01/70 00:00      
      RE: Delay Calculations in 8051 uC            01/01/70 00:00      
         RE: Delay Calculations in 8051 uC            01/01/70 00:00      
            simple arithmetic            01/01/70 00:00      
            RE: Delay Calculations in 8051 uC            01/01/70 00:00      
   RE: Delay Calculations in 8051 uC            01/01/70 00:00      

Back to Subject List