CONTROLLING THE SERVO CONTROLLER

Status
Not open for further replies.

grindylow

Newbie level 6
Joined
Sep 4, 2009
Messages
12
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,367
Hey guys, I just bought a servo controller from a local store here and I don't know what seems to be the problem on my code that it just won't work. If you have some spare time would you be willing to take a look on this?
Here is the manual:
http://www.e-gizmo.com/KIT/images/servokit/ServoController.pdf
and here is my code:
Code:
EN2=0;
	Nop();
	Nop();
	Nop();
	addr=0x0801;
	for(i=0;i<16;i++) {
	DATA=0;
	if(addr&0x01)
		DATA=1;
	CLK=0;
	while(ACK);
	CLK=1;
	while(!ACK);
	addr>>=1;
	Nop();
	Nop();
	Nop();
	}
EN2=1;
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…