To drive a DC motor.

Hi,
Can anyone please give a C program for 8051 that can drive two DC motors with time delay?? That is two motors have to run for 5secs and stop for 5 secs. I have a program to interface the motors using l293d but cannot understand how to implement the timer for running and stopping.

</i PLEASE HELP>

More questions in this forum