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
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