Advertisement

MOSFET as a Switch

MOSFET as a Switch

MOSFET’s make very good electronic switches for controlling loads and in CMOS digital circuits as they operate between their cut-off and saturation regions.

We saw previously, that the N-channel, Enhancement-mode MOSFET (e-MOSFET) operates using a positive input voltage and has an extremely high input resistance (almost infinite) making it possible to use the MOSFET as a switch when interfaced with nearly any logic gate or driver capable of producing a positive output.

We also saw that due to this very high input (Gate) resistance we can safely parallel together many different MOSFETS until we achieve the current handling capacity that we required.

While connecting together various MOSFETS in parallel may enable us to switch high currents or high voltage loads, doing so becomes expensive and impractical in both components and circuit board space. To overcome this problem Power Field Effect Transistors or Power FET’s where developed.V

We now know that there are two main differences between field effect transistors, depletion-mode only for JFET’s and both enhancement-mode and depletion-mode for MOSFETs. In this tutorial we will look at using the Enhancement-mode MOSFET as a Switch as these transistors require a positive gate voltage to turn “ON” and a zero voltage to turn “OFF” making them easily understood as switches and also easy to interface with logic gates.

The operation of the enhancement-mode MOSFET, or e-MOSFET, can best be described using its I-V characteristics curves shown below. When the input voltage, ( VIN ) to the gate of the transistor is zero, the MOSFET conducts virtually no current and the output voltage ( VOUT ) is equal to the supply voltage VDD. So the MOSFET is “OFF” operating within its “cut-off” region.

MOSFET Characteristics Curves

enhancement mode mosfet

The minimum ON-state gate voltage required to ensure that the MOSFET remains “ON” when carrying the selected drain current can be determined from the V-I transfer curves above. When VIN is HIGH or equal to VDD, the MOSFET Q-point moves to point A along the load line.

The drain current ID increases to its maximum value due to a reduction in the channel resistance. ID becomes a constant value independent of VDD, and is dependent only on VGS. Therefore, the transistor behaves like a closed switch but the channel ON-resistance does not reduce fully to zero due to its RDS(on) value, but gets very small.

Likewise, when VIN is LOW or reduced to zero, the MOSFET Q-point moves from point A to point B along the load line. The channel resistance is very high so the transistor acts like an open circuit and no current flows through the channel. So if the gate voltage of the MOSFET toggles between two values, HIGH and LOW the MOSFET will behave as a “single-pole single-throw” (SPST) solid state switch and this action is defined as:

1. Cut-off Region

Here the operating conditions of the transistor are zero input gate voltage ( VIN ), zero drain current ID and output voltage VDS = VDD. Therefore for an enhancement type MOSFET the conductive channel is closed and the device is switched “OFF”.

Cut-off Characteristics

mosfet switch cut-off
  • • The input and Gate are grounded ( 0V )
  • • Gate-source voltage less than threshold voltage VGS < VTH
  • • MOSFET is “OFF” ( Cut-off region )
  • • No Drain current flows ( ID = 0 Amps )
  • • VOUT = VDS = VDD = “1”
  • • MOSFET operates as an “open switch”

Then we can define the cut-off region or “OFF mode” when using an e-MOSFET as a switch as being, gate voltage, VGS < VTH thus ID = 0. For a P-channel enhancement MOSFET, the Gate potential must be more positive with respect to the Source.

2. Saturation Region

In the saturation or linear region, the transistor will be biased so that the maximum amount of gate voltage is applied to the device which results in the channel resistance RDS(on being as small as possible with maximum drain current flowing through the MOSFET switch. Therefore for the enhancement type MOSFET the conductive channel is open and the device is switched “ON”.

Saturation Characteristics

mostfet switch saturation
  • • The input and Gate are connected to VDD
  • • Gate-source voltage is much greater than threshold voltage VGS > VTH
  • • MOSFET is “ON” ( saturation region )
  • • Max Drain current flows ( ID = VDD / RL )
  • • VDS = 0V (ideal saturation)
  • • Min channel resistance RDS(on) < 0.1Ω
  • • VOUT = VDS ≅ 0.2V due to RDS(on)
  • • MOSFET operates as a low resistance “closed switch”

Then we can define the saturation region or “ON mode” when using an e-MOSFET as a switch as gate-source voltage, VGS > VTH thus ID = Maximum. For a P-channel enhancement MOSFET, the Gate potential must be more negative with respect to the Source.

By applying a suitable drive voltage to the gate of an FET, the resistance of the drain-source channel, RDS(on) can be varied from an “OFF-resistance” of many hundreds of kΩ, effectively an open circuit, to an “ON-resistance” of less than 1Ω, effectively acting as a short circuit.

When using the MOSFET as a switch we can drive the MOSFET to turn “ON” faster or slower, or pass high or low currents. This ability to turn the power MOSFET “ON” and “OFF” allows the device to be used as a very efficient switch with switching speeds much faster than standard bipolar junction transistors.

An example of using the MOSFET as a switch

using the mosfet as a switch

In this circuit arrangement an Enhancement-mode N-channel MOSFET is being used to switch a simple lamp “ON” and “OFF” (could also be an LED).

The gate input voltage VGS is taken to an appropriate positive voltage level to turn the device and therefore the lamp load either “ON”, ( VGS = +ve ) or at a zero voltage level that turns the device “OFF”, ( VGS = 0V ).

If the resistive load of the lamp was to be replaced by an inductive load such as a coil, solenoid or relay a “flywheel diode” would be required in parallel with the load to protect the MOSFET from any self generated back-emf.

Above shows a very simple circuit for switching a resistive load such as a lamp or LED. But when using power MOSFETs to switch either inductive or capacitive loads some form of protection is required to prevent the MOSFET device from becoming damaged. Driving an inductive load has the opposite effect from driving a capacitive load.

For example, a capacitor without an electrical charge is a short circuit, resulting in a high “inrush” of current and when we remove the voltage from an inductive load we have a large reverse voltage build up as the magnetic field collapses, resulting in an induced back-emf in the windings of the inductor.

Then we can summarise the switching characteristics of both the N-channel and P-channel type MOSFET within the following table.

MOSFET TypeVGS ≪ 0VGS = 0VGS ≫ 0
N-channel EnhancementOFFOFFON
N-channel DepletionOFFONON
P-channel EnhancementONOFFOFF
P-channel DepletionONONOFF

Note that unlike the N-channel MOSFET whose gate terminal must be made more positive (attracting electrons) than the source to allow current to flow through the channel, the conduction through the P-channel MOSFET is due to the flow of holes. That is the gate terminal of a P-channel MOSFET must be made more negative than the source and will only stop conducting (cut-off) until the gate is more positive than the source.

So for the enhancement type power MOSFET to operate as an analogue switching device, it needs to be switched between its “Cut-off Region” where: VGS = 0V (or VGS = -ve) and its “Saturation Region” where: VGS(on) = +ve. The power dissipated in the MOSFET ( PD ) depends upon the current flowing through the channel ID at saturation and also the “ON-resistance” of the channel given as RDS(on). For example.

MOSFET as a Switch Example No1

Lets assume that the lamp is rated at 6v, 24W and is fully “ON”, the standard MOSFET has a channel on-resistance ( RDS(on) ) value of 0.1ohms. Calculate the power dissipated in the MOSFET switching device.

The current flowing through the lamp is calculated as:

fet channel current

Then the power dissipated in the MOSFET will be given as:

power dissipation

You may be sat there thinking, well so what!, but when using the MOSFET as a switch to control DC motors or electrical loads with high inrush currents the “ON” Channel resistance ( RDS(on) ) between the drain and the source is very important. For example, MOSFETs that control DC motors, are subjected to a high in-rush current when the motor first begins to rotate, because the motors starting current is only limited by the very low resistance value of the motors windings.

As the basic power relationship is: P = I2R, then a high RDS(on) channel resistance value would simply result in large amounts of power being dissipated and wasted within the MOSFET itself resulting in an excessive temperature rise, which if not controlled could result in the MOSFET becoming very hot and damaged due to a thermal overload.

A lower RDS(on) value for the channel resistance is also a desirable parameter as it helps to reduce the channels effective saturation voltage ( VDS(sat) = ID*RDS(on) ) across the MOSFET and will therefore operate at a cooler temperature. Power MOSFETs generally have a RDS(on) value of less than 0.01Ω which allows them to run cooler, extending their operational life span.

One of the main limitations when using a MOSFET as a switching device is the maximum drain current it can handle. So the RDS(on) parameter is an important guide to the switching efficiency of the MOSFET and is simply given as the ratio of VDS / ID when the transistor is switched “ON”.

When using a MOSFET or any type of field effect transistor for that matter as a solid-state switching device it is always advisable to select ones that have a very low RDS(on) value or at least mount them onto a suitable heatsink to help reduce any thermal runaway and damage. Power MOSFETs used as a switch generally have surge-current protection built into their design, but for high-current applications the bipolar junction transistor is a better choice.

Power MOSFET Motor Control

Because of the extremely high input or gate resistance that the MOSFET has, its very fast switching speeds and the ease at which they can be driven makes them ideal to interface with op-amps or standard logic gates. However, care must be taken to ensure that the gate-source input voltage is correctly chosen because when using the MOSFET as a switch the device must obtain a low RDS(on) channel resistance in proportion to this input gate voltage.

Low threshold type power MOSFETs may not switch “ON” until a least 3V or 4V has been applied to its gate and if the output from the logic gate is only +5V logic it may be insufficient to fully drive the MOSFET into saturation. Using lower threshold MOSFETs designed for interfacing with TTL and CMOS logic gates that have thresholds as low as 1.5V to 2.0V are available.

Power MOSFETs can be used to control the movement of DC motors or brushless stepper motors directly from computer logic or by using pulse-width modulation (PWM) type controllers. As a DC motor offers high starting torque and which is also proportional to the armature current, MOSFET switches along with a PWM can be used as a very good speed controller that would provide smooth and quiet motor operation.

Simple Power MOSFET Motor Controller

mosfet as a switch

As the motor load is inductive, a simple flywheel diode is connected across the inductive load to dissipate any back emf generated by the motor when the MOSFET turns it “OFF”. A clamping network formed by a zener diode in series with the diode can also be used to allow for faster switching and better control of the peak reverse voltage and drop-out time.

For added security an additional silicon or zener diode D1 can also be placed across the channel of a MOSFET switch when using inductive loads, such as motors, relays, solenoids, etc, for suppressing over voltage switching transients and noise giving extra protection to the MOSFET switch if required. Resistor RGS is used as a pull-down resistor to help pull the TTL output voltage down to 0V when the MOSFET is switched “OFF”.

P-channel MOSFET as a Switch

Thus far we have looked at the N-channel MOSFET as a switch were the MOSFET is placed between the load and the ground. This also allows for the MOSFET’s gate drive or switching signal to be referenced to ground (low-side switching).

p channel transistor

P-channel
MOSFET Switch

But in some applications we require the use of P-channel enhancement-mode MOSFET were the load is connected directly to ground. In this instance the MOSFET switch is connected between the load and the positive supply rail (high-side switching) as we do with PNP transistors.

In a P-channel device the conventional flow of drain current is in the negative direction so a negative gate-source voltage is applied to switch the transistor “ON”.

This is achieved because the P-channel MOSFET is “upside down” with its source terminal tied to the positive supply +VDD. Then when the switch goes LOW, the MOSFET turns “ON” and when the switch goes HIGH the MOSFET turns “OFF”.

This upside down connection of a P-channel enhancement mode MOSFET switch allows us to connect it in series with a N-channel enhancement mode MOSFET to produce a complementary or CMOS switching device as shown across a dual supply.

Complementary MOSFET as a Switch Motor Controller

complementary transistors

The two MOSFETs are configured to produce a bi-directional switch from a dual supply with the motor connected between the common drain connection and ground reference. When the input is LOW the P-channel MOSFET is switched-ON as its gate-source junction is negatively biased so the motor rotates in one direction. Only the positive +VDD supply rail is used to drive the motor.

When the input is HIGH, the P-channel device switches-OFF and the N-channel device switches-ON as its gate-source junction is positively biased. The motor now rotates in the opposite direction because the motors terminal voltage has been reversed as it is now supplied by the negative -VDD supply rail.

Then the P-channel MOSFET is used to switch the positive supply to the motor for forward direction (high-side switching) while the N-channel MOSFET is used to switch the negative supply to the motor for reverse direction (low-side switching).

There are a variety of configurations for driving the two MOSFETs with many different applications. Both the P-channel and the N-channel devices can be driven by a single gate drive IC as shown.

However, to avoid cross conduction with both MOSFETS conducting at the same time across the two polarities of the dual supply, fast switching devices are required to provide some time difference between them turning “OFF” and the other turning “ON”. One way to overcome this problem is to drive both MOSFETS gates separately. This then produces a third option of “STOP” to the motor when both MOSFETS are “OFF”.

MOSFET as a Switch Motor Control Table

MOSFET 1MOSFET 2Motor Function
OFFOFFMotor Stopped (OFF)
ONOFFMotor Rotates Forward
OFFONMotor Rotates Reverse
ONONNOT ALLOWED

Please note it is important that there are no other combination of inputs allowed at the same time as this may cause the power supply to become shorted out, as both MOSFETS, FET1 and FET2 could be switched “ON” together resulting in: ( fuse = bang! ), be warned.

268 Comments

Join the conversation

Error! Please fill all fields.

  • Johnny

    Excellent always enjoy your tutorials

  • Rahish dharama

    Very unique and amazing notes

  • Michael

    Thanks….a very well written article about MOSFETS.

  • Le Thien Thanh

    Tuyệt vời, tóm tắt ngắn gọn,dễ hiểu. Hữu ích. Xin cảm ơn

  • Mayeda Afrin

    Write down some important applications of Mosfrt

  • naren

    Very informative and simple to understand article

  • John H Olson

    Great Job! Thank you for the clear explanation

  • Marco

    Very googd tutorial

  • Manuel De Valdenebro

    Very good Tutorials !!!

  • Omar Bouderdaben

    This is very interesting and thank you vey much.

    I have a questions about “Avalanche”. Could you please explain/define avalanche? Could you please also tell us how do I recognize the “Avalanche” phenomena in a MOSFET? And finally, What kind of test I can do to see that the MOSFE is “avalanching”?
    I appreciate all the explanation/clarification.
    Thank you.

    • Wayne Storr

      For voltages higher than the MOSFET’s pinch-off voltage, the drain current ID is nearly constant. At very high values of VDS, gate to drain breakdown occurs, FET action ceases with drain current increasing rapidly. Thus VDS should be kept well below the avalanche value given by the manufacturers datasheet.

      The switching of series inductive loads without voltage supression protection can cause MOSFET avalanche breakdown at turn-off. Thus Avalanche breakdown is a destructive phenomenon, and therefore a MOSFET should not be operated in the avalanche breakdown region.

      • Omar Bouderdaben

        I appreciate your response.

        But I still have questions. See I am dealing with “Smart” power switch.

        The vendor does not list the avalanche breakdown or the pinch-off voltage.

        When I take the turn-on and turn-off of the part, I see some ringing.

        How can I tell if the switch is avalanching?

        • Wayne Storr

          You are clearly using incorrect terminology here. Avalanche Breakdown of an FET based device is fully destructive, unlike a zener diode which uses it to its advantage.

          “Ringing” as you now quote is a form of oscillation and also undesirable, as the device switches ON and OFF around its trigger point. Ringing is common when the unprotected switching device resonates with an inductive load due to the energy associated with the magnetising current. Filtering and anti-parallel transient protection will reduce this effect. END.

          • Omar Bouderdaben

            Mr. Storr,

            I really appreciate your help, and yes you are right, I may be very well using the wrong terminology. And as you said avalanche is destructive. When using the MOSFET in a switching mode, and when I take waveform while it is switching (for instance from Drain to Source), is there an indication that I am stressing the MOSFET, and it is getting closer to avalanche (destructive) mode?

  • DILIP KUMAR DEY

    There is nothing new in your article. One can find it in every electronics book. But one may not find simple articulating impressive language that force the reader to read up to end and reread. If one do not understand electronics, after reading this article, he might make himself his own teacher. Keep it up, prepare self teacher. Thanks👍👍👍👍👍

  • Bob Terry

    Your grammar is marginal at best.

  • Paul Kirk

    Really useful article with theory and practical examples, thank you very much for providing it. Just an idea for an enhancement might be to provide a circuit for N channel enhancement MOSFET driving a P channel high side switch. This is useful (as I have found) for driving using TTL where VDD could be 12V for example, and TTL levels won’t switch a P channel gate. I can’t get mine to switch, so not that I have any vested interest 🙂 🙂

  • Momchil Haymanov

    Hello there,
    Mosfet should be in a linear region (Vgs-Vth>Vds) when it is used as a switch.
    The saturation region is a more or less constant current source.

  • suhan shetty

    Dear Sir,

    We are using DMN67D8L-7 MOSFET in our design and 3.3 V provided to Drain terminal.

    Threshold voltage of this MOSFET is 1V to 2.5V.

    Please let us know, What is the minimum gate voltage to be provided to turn ON the MOSFET.

    Regards,
    Suhan Shetty

  • Abasiubong

    Smart eBook

  • Randy

    Very nicely done. Even a layman with no electronics training, such as myself, can understand this tutorial.
    Thank You

  • johnny brize

    excellent tutorial could you one day give a lesson on biasing the mosfet thank you for your very fine lessons

  • Yohannes

    Please make my effort worthy!
    I always try to make a circuit that make my LED light when I press a pushbutton instead of using on/off or slide switch then the LED remains lit. By using bipolar transistors as switch it doesn’t work. i.e. The LED instantaneously turns on when it pressed, turns off when released. My question is, can I use this MOSFET to overcome this problem? or if there may have another method.

    Thanks a lot for providing such tutorials. I’ve read almost entire of your tutorials and I like the way you teach.

    • Wayne Storr

      Using an ON/OFF or pushbutton switch to control the base of a bipolar transistor or the gate of a mosfet would indeed result in the operation you are seeing, as there is no latching mechanism. For that you could drive the bjt or mosfet using a flip-flop circuit configured as a debounce circuit. You can find examples here in our: Interfacing Circuits, or Toggle Flip-flop tutorials

  • Musa Zgambo

    Is there a wave form for a power MOSFET