Page 1 of 1

Pic code

Posted: Wed Aug 06, 2003 10:33 am
by Bert Russell
Does anyone out there have the code necessary to program a Pic 16f84 to operate a servo motor. I believe the motor requires a series of 1ms pulses to run cw, and 2 ms pulses for ccw, and 1.5 pulses to return to center. I have the programmer and the motors, but haven't a clue how to write that code that will compile in my 'C' compiler. Thanks a bunch, in advance. [email protected]

Re: Pic code

Posted: Wed Aug 06, 2003 12:34 pm
by hlreed
You betcha.
I was just preparing an article for that.
The code I have is for 12C508, and I have a 16F627
version, which should work ok. Just change the header.
I can send it as an email attachement.