This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

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>

Parents
  • ...are based on...
    are based on the crystal oscillator used.
    Important note:
    CPU clock frequency = crystal oscillator frequency/12
    and
    CPU clock time period = 1/CPU clock frequency

    Also, i would prefer using a timer to generate a delay as compared to generating a delay by using a software code.

    @Rajat Saha refer to any text book. Mazidi is good for starters.

Reply
  • ...are based on...
    are based on the crystal oscillator used.
    Important note:
    CPU clock frequency = crystal oscillator frequency/12
    and
    CPU clock time period = 1/CPU clock frequency

    Also, i would prefer using a timer to generate a delay as compared to generating a delay by using a software code.

    @Rajat Saha refer to any text book. Mazidi is good for starters.

Children