May 13, 2011 #1 M 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....
I want c program to control servo motor with P89V51RD2 microcontroller. Crystal frequency is 11.0592 Mhz.....Plzzz help....
May 13, 2011 #2 ckshivaram Advanced Member level 6 Joined Apr 21, 2008 Messages 5,060 Helped 2,150 Reputation 4,306 Reaction score 2,088 Trophy points 1,403 Location villingen (Germany) / Bangalore Activity points 30,088 your solution is here **broken link removed**
May 13, 2011 #3 M 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 ckshivaram said: your solution is here **broken link removed** Click to expand... i have tried it but still servo not working...
ckshivaram said: your solution is here **broken link removed** Click to expand... i have tried it but still servo not working...
May 13, 2011 #4 ckshivaram Advanced Member level 6 Joined Apr 21, 2008 Messages 5,060 Helped 2,150 Reputation 4,306 Reaction score 2,088 Trophy points 1,403 Location villingen (Germany) / Bangalore Activity points 30,088 no, it works 100% perfect.. there is some problem in your case... check your hardware.. check pull up resistor on all port pins.....
no, it works 100% perfect.. there is some problem in your case... check your hardware.. check pull up resistor on all port pins.....
May 14, 2011 #5 M 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 ckshivaram said: no, it works 100% perfect.. there is some problem in your case... check your hardware.. check pull up resistor on all port pins..... Click to expand... 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); }
ckshivaram said: no, it works 100% perfect.. there is some problem in your case... check your hardware.. check pull up resistor on all port pins..... Click to expand... 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); }