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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
10/18/08 22:21
Read: times


 
#159188 - servo hs 422
Responding to: ???'s previous message
yes ok,

i'm writing this code for the servo:
ORG 0000H

MOV TMOD,#10H
MOV P0,#0FFH


REPEAT:

MOV TH1,#0F5H
MOV TL1,#0DDH
SETB TR1
SETB P1.4
BACK: JNB TF1,BACK
CLR TR1
CLR TF1



MOV TH1,#8FH
MOV TL1,#7FH
SETB TR1
CLR P1.4
BACK_1: JNB TF1,BACK_1
CLR TR1
CLR TF1

SJMP REPEAT
END

but the servo is still rotating 180 degrees. If I want the servo to rotate , for example 45 degrees, what should I do?

thanks,
jesmond.

List of 7 messages in thread
TopicAuthorDate
How to program with assembly a HS-422 servo            01/01/70 00:00      
   +/- rotation angle as function of pulse width            01/01/70 00:00      
   NOT a stepper            01/01/70 00:00      
      servo hs 422            01/01/70 00:00      
         Processor ?            01/01/70 00:00      
   PROCESSOR            01/01/70 00:00      
      PCA            01/01/70 00:00      

Back to Subject List