Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Doubt in 89S52 program for controlling servo motor

Status
Not open for further replies.

sramgrk

Junior Member level 2
Joined
Mar 1, 2010
Messages
24
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,433
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.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top