Pic code

Interested in Robotics? Here's the place to be.
Post Reply
Bert Russell
Posts: 7
Joined: Tue May 06, 2003 1:01 am
Location: Bellingham, WA.
Contact:

Pic code

Post by Bert Russell » Wed Aug 06, 2003 10:33 am

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]

hlreed
Posts: 349
Joined: Wed Jan 09, 2002 1:01 am
Location: Richmond, TX
Contact:

Re: Pic code

Post by hlreed » Wed Aug 06, 2003 12:34 pm

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.
Harold L. Reed
Microbes got brains

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests