Categories: Circuit Design

Designing Power MOSFET Circuits

MOSFET circuit design and selection is a commonly requested topic for me to cover. There are a lot of uses for MOSFETs, as a result, they have become more commonplace than standard BJT or NPN transistors, especially in high-power applications. This article will discuss different MOSFET circuit designs, specifically for high-powered applications. I will also go into the important specs and part selection using datasheets. There are plenty of fantastic articles that delve deep into the inner workings and derivations of MOSFET design. One such article is app note AN608a by Vishay. My goal with this article is to focus on equations and information needed to design useful MOSFET circuits. I will focus mainly on high-power applications but will mention briefly information on fast switching MOSFETs as well.

 

MOSFET Primer

There is a lot of great information available on the fundamentals of MOSFETs, so I will only briefly discuss that here. I intend to focus more on real-world applications and circuits using MOSFETs. The fundamental difference between MOSFETs and a BJT/NPN transistor is that a MOSFET turns on based on an applied voltage instead of current. A MOSFET gate essentially acts as a capacitor, that when charged, allows the source and drain to conduct. This is in contrast to a BJT/NPN which needs a current flow to conduct. Since a MOSFET based circuit only requires there to be a voltage applied, they tend to be easier to implement. They also don’t have a well defined linear region like NPN/BJT transistors do. As a result, they are usually used for on/off switching applications where they are turned on and off quickly.

 

Understanding MOSFET Gate Capacitance

Understanding that the gate of a MOSFET acts as a capacitor is crucial in understanding how to design MOSFET circuits.  As with any capacitor, an applied voltage is seen as a short circuit initially. Once the capacitor is charged, there is essentially zero current that flows, with the circuit viewing the capacitor as an open circuit. It takes a certain amount of time to fully charge a capacitor. The same is true of the capacitance of a MOSFET gate. The most useful specification on a MOSFET datasheet for this is the “Total Gate Charge.” “Injecting” this amount of charge into the gate of a MOSFET fully turns it on.

This gate charge is one thing governing the speed in which you can switch a MOSFET. Before any charge is injected into the gate, it is fully turned off, with no current able to flow from the drain to the source. As charge is injected into the gate, more and more current is able to flow from drain to source, until the gate capacitance is fully charged. All charge must then be removed from the gate to turn the MOSFET off. Determining the time it takes to charge and discharge the gate helps to determine the maximum switching speed of a MOSFET circuit.

 

MOSFET Rds(ON)

One of the first specs that people learn about with MOSFETs is the Rds(on). This is simply the amount of resistance that the MOSFET has across its source to drain when fully turned on. It is important to note that the Rds depends on the voltage on the gate. If the voltage is not high enough to fully turn on the MOSFET, the Rds can be dangerously high. Many people treat Rds(on) as the most important spec when researching what MOSFET to use. While this may be true when switching high-power loads at slow speeds, it is definitely not the case when PWM’ing loads.

There is typically an inverse relationship between the Rds and the total gate charge of a MOSFET. This means that there will be tradeoffs to make when driving high power LEDs with a PWM signal for example. Most high-power loads will be driven at a “relatively” low PWM frequency, so it is better to focus on lowering the Rds than the gate charge.

 

What are Logic Level MOSFETs?

There are two different “types” of MOSFETs with respect to Vgs (Voltage from gate to source). A “standard” or “normal” MOSFET will require around 10V to ensure it is fully “on”. At 10V the Rds will typically be at its minimum value for the entire voltage range. A “logic-level” MOSFET is a relatively new MOSFET idea. Instead of requiring 10V to turn on, they may only require 5V or even less. The main advantage of these is obvious: you can directly turn them on or off from a TTL microcontroller. While tempting to always default to one of these MOSFETs, I highly recommend only using them for low-power, slow switching applications.

The low Vgs ability comes with sacrifices to both the gate charge and the Rds(on). With a logic-level MOSFET, you will tend to have a lower maximum switching speed, and it dissipates more heat than with a comparable “standard” MOSFET. This is due to the higher Rds and gate charge. I will discuss several simple ways to drive “standard” MOSFETs indirectly from a logic-level signal from a microcontroller. This gives the best of both worlds when designing MOSFET circuits.

 

What about MOSFET Gate Resistors in the Circuit?

Something that is overlooked and misunderstood by a lot of circuit designers who are new to MOSFETs is the need for gate resistors. Since the gate of a MOSFET is essentially a capacitor, what happens the instant that a voltage is applied to the gate without a gate resistor? The circuit will see the gate as a dead short (technically not true, since the traces and wires have parasitic resistances and inductances, but close enough.) This introduces some potential issues. This current inrush can destroy the driving circuit if it is unable to quickly source that much. Secondly, due to the parasitic inductance and gate capacitance, there is a danger of having “ringing” occur on the gate. This ringing can force the gate to oscillate between on/off states, or worse, overvoltaging and destroying the MOSFET entirely.

Figure 1: A 100R resistor controls the charging rate of the gate. This limits the amount of maximum current.

 

Another issue without a gate resistor is that the parasitic resistances become a significant portion of gate calculations. When using a 100R gate resistor as in figure 1, a couple of ohms of parasitic resistance won’t affect calculations by a meaningful amount. When switching high-power MOSFETs or any low-speed circuits, the exact value of a gate resistor typically isn’t important. I usually use a 10R or 100R resistor and adjust it while testing if needed. When switching speeds approach several thousand Hz, it becomes important to do some calculations on what maximum-sized gate resistor to use.

 

Logic-Level MOSFET Circuit Basics

Figure 2: Basic MOSFET circuit with an N-channel MOSFET controlling an LED.

 

For the rest of this article, I will be limiting the discussion to only discuss N-Channel MOSFETs. These are easier to drive and are the most common type for driving high-power loads. Figure 2 shows the most simplistic MOSFET circuit. R1 is the gate resistor, limiting the amount of current and preventing any ringing on the gate. R2 is a 10K pulldown resistor, ensuring the MOSFET is always in a known state. Q1 is a logic-level MOSFET, an appropriate choice for controlling an indicator LED at 10s of milliamps. Since a Q1 is a logic-level MOSFET, CNTRL_MOSFET can be from the I/O line of a standard microcontroller

 

“Normal” MOSFET Circuits

 

Figure 3: A IRFS7530 Power MOSFET drives a 12A resistive load at 12V.

 

Driving “normal” MOSFETs are slightly more complicated since they need to have at least 10V on the gate to fully conduct. Figure 3 shows a useful example of a low-side N-channel MOSFET circuit. A 12A load is switched from an IRFS7530, a high-power D2PAK MOSFET. This is an example of how you could control a resistive heating element. Since the rate that you PWM the resistor is quite low, a 100R resistor is a valid choice.

 

Figure 4: Controlling a MOSFET using an integrated MOSFET low-side driver.

 

The easiest – and usually best – way to drive power MOSFETs is to use a purpose-built, integrated driver. These chips use internal logic level MOSFET circuitry to take the logic-level input from the microcontroller and switch on/off the MOSFET. Figure 4 shows an NCP81074A based circuit. This is one of my favorite drivers to use, as it has a separate source and sink pin. This allows the switching speed of the on and off times to be fine-tuned if required. Depending on the gate resistor, this chip is able to source 10A to charge the gate incredibly fast, minimizing power losses.

An important item to note is the decoupling capacitors C1/C2. I highly recommend using more capacitance than suggested in the datasheet. Since the driver needs to source a lot of current to turn on the MOSFET, the more capacitance available the better. The length of the traces from pins U1.4/5 to R1 and then Q2.1 should also be as short as possible to minimize the parasitic inductance which would slow the switching speed.

 

Figure 5: Alternative method to drive a MOSFET from a logic-level signal using an NPN transistor.

 

The only real reason to not use a dedicated gate driver on high-power MOSFETs is to try and minimize cost. A cheaper way to drive a MOSFET is shown in figure 5. I would only recommend this method when absolutely necessary, as dedicated gate drivers are much easier to implement, and tend to have better performance.

 

Deciphering MOSFET Datasheet Specs

Reading and understanding any component datasheet can be a difficult endeavor, and MOSFETs are no different. Again, my goal with this discussion is not to go down “into the weeds” with equations and derivations. I will discuss good “rules of thumb” for choosing MOSFETs. There are plenty of cases in which you will need to do more in-depth analysis’ and testing to ensure the component chosen will operate correctly.

Let’s say you are designing a custom H-bridge driver for a high powered motor controller. It is a circuit based on 4 power MOSFETs. The specs that this circuit must have are:

  • Up to 10A continuous current
  • Maximum of 25A stall current
  • 12VDC
  • “Silent” PWM speed control at an ultrasonic frequency of 20kHz
  • Minimize heat dissipation (as always!)

We will use the datasheet from the IRFS7530 MOSFET shown in the previous examples as a reference.

 

Important Specifications

    1. Id(Package Limited) – This is the maximum theoretical drain current for the package. This is a commonly misunderstood spec by new designers. You absolutely can’t exceed this value, but it does not mean you can actually drive a load at that current. The MOSFET will almost always burn up from heat before this spec is reached. So it must be taken with a grain of salt. The IRFS7530 has an Id of 240A, so we are good there.
    2. Vgs – Maximum voltage applied to the gate with respect to the source. Pretty self-explanatory. It is +-20V for our MOSFET, and we are using a voltage of 12V, so we are not near the limit.
    3. Vdss – Another self-explanatory spec. The voltage difference from the drain to the source can’t exceed, which is 60V in this case, well within our safe range.
    4. Rds(on) – The maximum expected resistance from drain to source, at a given gate voltage. We find that the MOSFET has a worst-case Rds(on) of 1m4. Figure 6 shows a graph commonly found on MOSFET datasheets. We can see that the Rds(on) flattens out and has it’s the minimum value above ~8V. This is expected from a non-logic-level MOSFET, and acceptable when driven at 12V.

      Figure 6: Rds(on) vs Vgs at different temperatures.

    5. RthetaJA (Junction-to-Ambient) – This is the thermal resistance from the die junction to the outside of the package to ambient air. This will be specified with a specific amount of copper on the PCB.
    6. Qg – As previously mentioned, this is the total charge required to inject to the gate to fully turn the MOSFET “on”. This takes into account the gate-to-source charge, gate-to-drain-charge, as well as any other internal parasitics.  This is the easiest spec to use to calculate the maximum “theoretical” switching speed of the MOSFET.

Calculating Power and Heat Dissipation

An important – and simple – calculation to make is to see how much power the MOSFET will dissipate at a given load. The max load we have is at a stall of 25A, with a max Rds(on) of 1m4.

P = I2 * R = 252 * 1.4*10-3 = 0.875W

We now need to relate that power to a meaningful value using the Junction-to-Ambient (RthetaJA) spec. On page two of the datasheet, it gives a maximum value of 40 c/w. That means that for every watt of power dissipated, the junction temperature will increase by 40c. So:

0.875W * 40 c/w = 35c

At an ambient temperature of 25c, with a current of 25A, the junction temperature of the MOSFET will be at around 60c. It is usually advised to keep that temperature under 100c, with 80c being an “ideal” maximum. Since we will only be drawing 25A in a stall, we are well within safe limits. This temperature can further be reduced by adding a heatsink.

 

Determining Switching Speed

This next section is the main part where the “rule of thumb” issue comes into play. There is a lot of information out there and a lot of more accurate methods to determine the theoretical switching speed limits of MOSFETs. What I am going to show, is an oversimplified method that works for “most” cases. If you are needing to switch at several thousand hertz and above, or if you calculate a value near the upper end of the method I will show, it is wise to do more advanced calculations.

From the datasheet, we find the total gate charge Qg to be a maximum of 354nC. We will use the NCP81074A gate driver, which can source up to 10A.

With a gate resistor of 10R, using

V = IR:

12 = I*10

I =1.2A

Then,

t = Q / I

= 354nC / 1.2A

t = 295ns

Where

t=time in seconds

Q=charge in Coloumbs

I= current in Amps

So that means that it takes 295 nano-seconds for the gate to switch fully on, and then around that long to fully discharge. That means that we have a theoretical maximum switching speed with this configuration of almost 2MHz! Since all we need is to switch at 20kHz, we are several orders of magnitude below that. As long as we stay far away from the theoretical maximum, I feel very comfortable using this simple calculation. If we needed to switch at 1MHz however, I would need to do more intricate calculations to feel confident with the MOSFET selection. This app note discusses these calculations very well.

 

Conclusion

With the amount of information out there discussing MOSFETs it can be difficult to navigate. In this article, I went over some of the most important specifications to focus on when choosing a MOSFET. I also outlined some simple calculations to determine if the MOSFET and corresponding MOSFET driver are suitable for a specific application. While these simplifications may not be accurate enough for some high-speed applications, the majority of high-power circuits will follow them fine.

Here at MicroType Engineering, we have many years of experience designing high-power circuits using MOSFETs. Don’t hesitate to contact us today to learn about our capabilities and how we can assist you on your next electronics project!

 

Kyle Hunter

View Comments

  • Would the integrated MOSFET low-side driver be a suitable way you could drive a MOSFET with a 3.3V controller (Teensy 4.1) then?

    I'm trying to research the best way to control a 10v, 4.5A motor (water pump) using a teensy? It was previously running using a Arduino and a IFR520 MOSFET module.

    • Certainly! The key to driving any sort of logic from 3v3 is to make sure the high/low turn on/off threshold is suitable for 3v3 and not 5v only. That has bitten me several times in the past!

  • Nice work Microtype team. Thanks for sharing your knowledge and experience.
    Please, how do I know which capacitance value to choose for a particular application. Thanks for being there.

  • With regard to the decoupling capacitors C1/2 I notice you have used a 4.7 uF and 0.1 uF
    Should these capacitors be particular type for best results? e.g. the 0.1 a ceramic cap?

    • Absolutely. Low ESR ceramics. TBH, I would probably just go with 2x 4.7uF to be simple if they are the same package size.

  • How to protect this logic level MOSFET from inductive load such as a motor, only using a diode or anything else to do?

    • Yeah flyback diodes help, making sure you properly spec them to be able to handle the voltage and current. Having large capacitors nearby also help to absorb the energy produced.

  • Thank you the information about Mosfet Circuit Design. I have a motor ( linear actuator ) operating at 12V @ 6 Amp and Power Supply of 12V @ 10 Amp. Shall I worried about the stall current, assuming to be around 18 Amp since the power supply is only capable of 10 Amp?

  • Sir, suppose you are making a h bridge to drive a 12V 6 Amp motor. Do the diode present in the mosfet is enough for the back emf. If need additional diode, what is the capacity. Thank you

  • Looking to design for a clean square wave, 40% duty cycle, running at roughly 6MHz at one amp of draw and the catch is, I'd prefer the power source to be at about 1.5 volts. I wanted to use an isolated gate driver, but even the good ones seem to have a limit around 1MHz. Is there any work around for this?

  • I am using tlp152 for mosfet drive with supply voltage of +12v and operating at 10Khz from microcontroller
    and i am using 10 ohm gate resistor.
    220 ohm resistor connected with pin no -1 of tlp152
    mosfet is heating and i cant find the reason why

Recent Posts

Securing the Future: Our Commitment to ITAR and CMMC Compliance

Securing the Future: Our Commitment to ITAR and CMMC Compliance Elevating Aerospace and Defense Technology…

1 year ago

Elevating Standards: Our Journey to AS9100 Certification

Elevating Standards: Our AS9100 Certification Journey Paving the Way for Aerospace Engineering Excellence At MicroType…

1 year ago

Enhancing Precision and Quality: MicroType Engineering’s Latest Technological Advancements

New Advanced Circuit Board Assembly Equipment Introduction At MicroType Engineering, we pride ourselves on staying…

1 year ago

The Usage and Function of TVS Diodes in Circuit Protection

The Usage and Function of TVS Diodes in Circuit Protection Introduction Hey there! Today, we're…

2 years ago

DC Bias Effect in Ceramic Capacitors

This article, The DC Bias Effect in Ceramic Capacitors, is based on the above YouTube…

2 years ago

Designing ESD Protection Circuits

I recently began a livestream series on the MicroType Engineering YouTube channel. It is called…

2 years ago