Fast switching of Power MOSFETs

VFXCode:

fungus:
Or different MOSFETs. Get some that are designed for switching at 5V logic levels.

Do you have any particular in mind? All i find have 500-1600pF at 5Vgs. Gate capacitance is proportional to the current capability of the mosfet.

First you have to figure out what the problem is. Nothing about your circuit or software makes any sense to me. Where did you get them from? What are the capacitors for? Why do you write to the output ports multiple times?