geko said:
The totempole circuit shown in gramo's post isn't going to help a non-logic level MOSFET since it doesn't increase the gate drive voltage to the MOSFET anyway.
The PIC's 5V output will bias the transistors on and off, allowing much more voltage (in this case 12V) and current to switch the FET's Gate.
This allows the Gate to charge and discharge much faster, as the Gate acts like a capacitor, requiring time to charge/discharge.
During this time the FET becomes biased, and will drop a voltage across it, instantly dissipating much more heat as P = V * I
Now you can use PWM signals to control the output safely, or for switching of high current loads without burning out your FET.
geko said:
In fact it's slightly worse than driving it directly from the PIC output because you get the 0.6v base-emitter drop as well.
The base-emitter voltage drop is not the issue, infact, its across Vce. Ideally Vce = 0, and the FET's gate can charge at 200mA (Ic max of the 3904/3905, 800% more than the PIC's maximum current output). And the opposite with a low output from the PIC - when the PNP ties the FET's gate to earth.
geko said:
You need another NPN transistor and resistor to 12V rail between the PIC and the totempole transistors to make it work.
I don’t understand why, as the transistors will drive hard on with 5V and no base resistor wont they?