I've built my H-Bridge for 2 motors and all there is to do is to write a program to make them turn clockwise and counter clock wise. I just need to use 4 ports and switch them off and on.
Using the axon microcontroller, how to i turn ports off and on? For example, say i need port H3 to send 12 volts to a motor, and then when a condition is met, the port drops the voltage to 0.
Could i use....:
PORT_ON(PORTH,3);
if (something happens)
{
PORT_OFF(PORTH,3);
}