grindylow
Newbie level 6
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:
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;