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.

[SOLVED] Program to control servo motor with p89v51rd2.

Status
Not open for further replies.

mayur14

Newbie level 4
Joined
May 13, 2011
Messages
7
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,320
I want c program to control servo motor with P89V51RD2 microcontroller.
Crystal frequency is 11.0592 Mhz.....Plzzz help....
 

no, it works 100% perfect.. there is some problem in your case... check your hardware.. check pull up resistor on all port pins.....

I have created a program to control servo...but still not working please help what is wrong in this program...I am newbie..

#include"p89v51rd2.h"
void SERVO_INIT()
{
TMOD=0X02;
TH0=0xB8;
TL0=TH0;
TR0=1;

CCON=0X40;
CCAPM1=0X42;
CCAP1H=0x00;
CMOD=0X04;
}

void main()
{

SERVO_INIT();
CCAP1H=230;
while(1);
}
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top