Searching \ for 'SERVO CODE SAMPLES' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: techref.massmind.org/techref/io/servo/index.htm?key=servo
Search entire site for: 'SERVO CODE SAMPLES'.

Truncated match.
PICList Thread
'SERVO CODE SAMPLES'
1998\01\09@164233 by PHXSYS

picon face
Hello Everyone-

I am new to PICS and have an R/C Servo project I am working on. I learn best
by studying servo code written in assembly or Pbasic. If anyone has servo code
they are willing to share please send it to me at your earliest convenience.

Thank you

Jon Petty

1998\01\09@200609 by Eric Naus

picon face
Hi,

Try looking a my home page http://webhome.idirect.com/~bine for some
servo code.

Hope it helps

Bye for now

Eric


At 04:34 PM 1/9/98 EST, you wrote:
>Hello Everyone-
>
>I am new to PICS and have an R/C Servo project I am working on. I learn best
>by studying servo code written in assembly or Pbasic. If anyone has servo
code
>they are willing to share please send it to me at your earliest convenience.
>
>Thank you
>
>Jon Petty
>

1998\01\10@093456 by NCS Products

flavicon
face
At 09:34 PM 1/9/98 +0000, you wrote:
>Hello Everyone-
>
>I am new to PICS and have an R/C Servo project I am working on. I learn best
>by studying servo code written in assembly or Pbasic. If anyone has servo
code
>they are willing to share please send it to me at your earliest convenience.
>
>Thank you
>
>Jon Petty

This is in parallax assembler (ack!), for 16c84 using 500kHz resonator.
"Timing" controls position of servo.

;========================================================
;               SERVO Routine
;       This can be entered at
;       go_right or go_center
;       The time thru this routine is
;       constant.  It is currently apprx. 1/3 sec.
;
;       Defines used: RED = output LED
;                     SERVO = servo line
;                     #L_Right  = right timing value
;        Variables  : Temp, Timing, Count
;========================================================
go_right
               setb    RED
               mov     Temp,stay_time
               mov     Timing,right_time
               clr     Count
               jmp     Servo_Loop
;-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
go_center       clrb    RED
go_center2      mov     Temp,stay_time
               mov     Timing,center_time
               clr     Count
               jmp     Servo_Loop
;-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Servo_Loop      djnz    Count,$           ;delay 256x45us=11ms
               djnz    Count,$           ;delay 256x45us=11ms
               mov     Count,#58         ;Precise timing value
               djnz    Count,$

               mov     w,/Timing         ;delay to make
               mov     Count,w           ;total delay 256
               inc     Count
               djnz    Count,$

               setb    SERVO
               mov     Count,Timing      ;Timing delay
               djnz    Count,$
               clrb    SERVO

               djnz    Temp,Servo_Loop   ;Jump back to first loop
               clrb    RED
               ret


'SERVO CODE SAMPLES'
1998\09\21@200527 by Eric Naus
picon face
Hi,

Check out my homepage at http://webhome.idirect.com/~bine
for my servo code.
Hope it helps

Eric


At 09:33 AM 1/10/98 -0500, NCS Products wrote:
{Quote hidden}

More... (looser matching)
- Last day of these posts
- In 1998 , 1999 only
- Today
- New search...