Microcontroller › 8051 › C codes for generating pulse width for servo motor. › Hello, Thanks for your
Hello,
Thanks for your reply….my project is controlling of the servo position to user defined value entered through a matrix keypad. I’ve used 89c51 with 12 MHz oscillator circuit, I’ve interfaced a 3×4 matrix keypad and have used LCD in 4 bit mode. I’m using Futuba S3003 servo motor which has a specification of 1520usec(neutral position)….I just need the codes for the timer part to generate the required ON-OFF pulses according to the angle entered from 0 to 180 degree.
I also need to know if suppose we need to generate 25usec delay using overflow of timer 1 in mode 2,do we need to load TH1= -25 for 12 MHz crystal?
I’ll be very thankful if you can kindly help me, I need it urgently by this week….plz help!