sramgrk
Junior Member level 2
hello ppl,
My final year project is to control servo motor, i am considering two different loading conditions in the means of two switches which is connected to the P1.0 and P1.1 of the micro controller. I am taking the output pulse via P0.0. I am using ULN 2003 to drive the MOSFET IRF 840 and I am using Buck converter to get the required voltage to drive the servo motor. I am finding it difficult to generate pulses, i am attaching the program, please let me know the corrections.
P.S:required positive pulse duration to run the motor is 1-2ms and the duration of the cycle can be 20-22ms. I am findin it hard to find how much a FOR loop will count for in milli seconds.
My final year project is to control servo motor, i am considering two different loading conditions in the means of two switches which is connected to the P1.0 and P1.1 of the micro controller. I am taking the output pulse via P0.0. I am using ULN 2003 to drive the MOSFET IRF 840 and I am using Buck converter to get the required voltage to drive the servo motor. I am finding it difficult to generate pulses, i am attaching the program, please let me know the corrections.
P.S:required positive pulse duration to run the motor is 1-2ms and the duration of the cycle can be 20-22ms. I am findin it hard to find how much a FOR loop will count for in milli seconds.