help me- to program for a servo motor (PWM)

Started by sivaccumr, March 21, 2009, 09:58:46 PM

Previous topic - Next topic

sivaccumr

can anyone give me a sample program on how to control a servo?
simply generate 1ms to 2ms for every 20ms on any of the PWM port (p1.3 to p1.7)
and along with the calculation.
and i dont want using timers. bcos in the same port the value of PWM(3 values say, 1.35, 1.5, 1.65ms) ill be changing in the due course of program which is not possible using timers.


for reference

http://www.best-microcontroller-projects.com/servo-motor.html