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.

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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top