PWM signaling VICTOR888 motor controller problem

Hello

I am using the following code in order to supply PWM signal to victor 888 motor controller.

void straight() { digitalWrite(9, HIGH); // pin 9 connected to PWM input of victor 888 digitalWrite(10, HIGH); // pin 10 connected to PWM input of victor 888 delayMicroseconds(2000); // 2ms of pulse width in order to rotate motors clockwise digitalWrite(9, LOW); digitalWrite(10, LOW); Serial.println(" Straight"); //delay(500);

}

The problem is if there is any additional interrupt the delay would cause a problem!! Is there any method to generate PWM signals in arduino ?? I would also like to know how to calibrate victor888 using arduino??

Thanks.

Is there any method to generate PWM signals in arduino ??

Of course. That is what analogWrite() does.

I would also like to know how to calibrate victor888 using arduino??

First, you post a link to the hardware...

If the Victor 888 is an ESC, then the Servo class will be useful.

Link to the hardware : http://www.vexrobotics.com/217-2769.html

PWM signal from analogwrite() is not detected by victor 888.We need to calibrate the controller which I am not able to do!!