Oh, then I'll keep in mind to dissconnect the cable between computer and H-bridge during startup.
Sorry for noob questions, How do I know if I'm using 2 bits or 4 bits?
I have written a proram in C++.
Code:
#include <stdio.h>
#include <dos.h>
void main(void)
{outportb(0x378,0x00);
};
00 = 0V on datapins
01 = 3,3V on Datapin1
02 = 3,3V on Datapin 2
And so on I guess...?
Is this what you mean?
Will I be able to control the direction of the motor with this code?
Thanks!