i am having problem in simulating DC motor in anticlockwise direction on Proteus 8.0 when connected to AT89C51 micro controller. It works correctly in clockwise direction, but stops in anticlockwise direction.
here is the code
please help
here is the code
Rich (BB code):
#include<reg51.h>
sbit a=P2^0; // given to l293d pin
sbit b=P2^1; //given to l293d pin
void main()
{
while(1)
{
a=0;
b=1;
for(i=0;i<55000;i++); //delay
a=1;
b=0;
for(i=0;i<55000;i++);
}
}
Last edited by a moderator: