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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
11/14/04 14:56
Read: times


 
#81133 - Servo control
Hi, I'm still new to the 8051 and program in assembler.
I want to use the 89C4051 in my project, but how can I time the 1ms.
I thoughed useing something like this loop:

wait: mov r1,000h
mov r2,000h
lus: djnz r1,lus
djnz r2,lus
ret

or is there a better way


List of 5 messages in thread
TopicAuthorDate
Servo control            01/01/70 00:00      
   RE: Servo control            01/01/70 00:00      
   RE: Servo control            01/01/70 00:00      
   RE: Servo control            01/01/70 00:00      
   RE: Servo control            01/01/70 00:00      

Back to Subject List