Thank you so very much for the answer , it is a pull-up resistor , i tried using a bjt but it wasnt as effective as the comparator .
sorry about the schematic it was clear before uploading but now it isnt :(
the outputs AA1 , BB1 and CC1 from the arduino goes into the 1 , 2 , 3 inputs of one comparator and outputs from this comparator(1,2,3) goes to the high voltage mosfets of A , B and C respectively.
the outputs AA2, BB2 and CC2 from the arduino goes into the 1,2,3 inputs of the other comparator and the outputs of this comparator goes to the grounded mosfets of A , B and C .
The reference voltage is set to 3.3v on all the inverting outputs of the comparators.(i tried different voltages by the way and as the voltage got lower on the inverting inputs , the whole system started shutting down the moment i gave power to the mosfets like as if there was some short . so i kept it @ 3.3v)
All these mosfets are pulled high with a 10k resistor.
Source of the high voltage mosfets are connected to the drain of the grounded ones.
i put two 1k resistors in series to make 2k (one connected to the outputs from the mosfets of course) in total and 1k resistor to make the voltage divider for back emf.
Then connected brushless motors to the outputs from the mosfets with the yellow wire or the middle wire from the brushless going into the 2nd mosfet....
i hope all this right... Thanks a million!