I\'ve made a code that send by RS232 the command \"!M 0 1000 \\r\", but my motor didn\'t move. Im using as a controller a 32-bit processor with Vout =3.3V.
here\'s my C code: RS232 has been configured at 115200,8,n,1
void Mcmd(out port TXD, char Mcmd1[], char Mcmd2[])
{
int dlay=10;
led <: 15;
for(int i=0;M[i]!=\'\\0\';i++)
{ txByte(TXD,M[i]);
delay(dlay);
}
for(int i=0;Mcmd1[i]!=\'\\0\';i++)
{ txByte(TXD,Mcmd1[i]);
delay(dlay);
}
txByte(TXD,\' \');
delay(dlay);
for(int i=0;Mcmd2[i]!=\'\\0\';i++)
{ txByte(TXD,Mcmd2[i]);
delay(dlay);
}
txByte(TXD,10);
delay(dlay);
txByte(TXD,\'\\r\');
delay(dlay);
}
i do really need some help asap. By the way, i\'ve modified the 25-pin connector, i wired:
pin 1: GND
pin 2: Txout
pin 3: Rxin
and i\'ve disable the watchdog.