Can someone please tell why this is not working..
*Update*
The P channel Mosfets are Numbered as 1,3 and the N channel Mosfets are Numbered as 2,4.. All the logical cases are as follows where 1 represents that Mosfet is conducting and 0 represents that mosfet is in high resistance..
0000 - Not Running
0001 - Not Running
0010 - Not Running
0011 - Short Circuit
0100 - Not Running
0101 - Brakes
0110 - Motor Rotates Left
0111 - Short Circuit
1000 - Not Running
1001 - Motor Rotates Right
1010 - Brakes
1011 - Short Circuit
1100 - Short Circuit
1101 - Short Circuit
1110 - Short Circuit
1111 - Apocalypse
For P channel Mosfets, the gate should be grounded for them to conduct and the two pull up resistors are connected to gate to stop the conduction after removal of signal..
For N channel Mosfets, a gate to source voltage Vgs must be applied which must be greater than threshold voltage for the Mosfet to conduct any current and two pull down resistors are connected to gate to stop the conduction after removal of signal..