The MOSFET as a Switch

We saw previously, that the N-channel, Enhancement-mode MOSFET operates using a positive input voltage and has an extremely high input resistance (almost infinite) making it possible to interface with nearly any logic gate or driver capable of producing a positive output. Also, due to this very high input (Gate) resistance we can parallel together many different MOSFETs until we achieve the current handling limit 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 were developed.

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 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 “fully-OFF” and in its “cut-off” region.

MOSFET Characteristics Curves

enhancement mode mosfet

 

The minimum ON-state gate voltage required to ensure that the MOSFET remains fully-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 the MOSFET is switched “Fully-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 “fully-OFF” ( Cut-off region )
  • • No Drain current flows ( ID = 0 )
  • • VOUT = VDS = VDD = ”1″
  • • MOSFET operates as an “open switch”
 

Then we can define the “cut-off region” or “OFF mode” when using a MOSFET as a switch as being, gate voltage, VGS < VTH and 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 the MOSFET is switched “Fully-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 “fully-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 ( RDS.ID )
  • • MOSFET operates as a “closed switch”
 

Then we can define the “saturation region” or “ON mode” when using a MOSFET as a switch as gate-source voltage, VGS > VTH and 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Ω’s, effectively an open circuit, to an “ON-resistance” of less than 1Ω, effectively 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 either fully “ON”, ( VGS = +ve ) or at a zero voltage level that turns the device fully “OFF”, ( VGS = 0 ).

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.

For the power MOSFET to operate as an analogue switching device, it needs to be switched between its “Cut-off Region” where VGS = 0 and its “Saturation Region” were 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:

mosfet switch channel current

 

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

mosfet switch 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 value RDS(on) on the other hand, is also a desirable parameter as it helps to reduce the channels effective saturation voltage ( VDS(sat) = ID x 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 limitation of a MOSFET is the maximum current it can handle. So the RDS(on) parameter is an important guide to the switching efficiency of the MOSFET and is simply the ratio of VDS / ID when the transistor is turned “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 R2 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 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 mosfet switch

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 Motor Controller

complementary mosfet switches

 

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.

Buy Now
Price Disclaimer

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”.

Complementary MOSFET Motor Control Table

MOSFET 1 MOSFET 2 Motor Function
OFF OFF Motor Stopped (OFF)
ON OFF Motor Rotates Forward
OFF ON Motor Rotates Reverse
ON ON NOT ALLOWED

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


 

« | »

16 Responses to “MOSFET as a Switch”

    • Wayne Storr

      The gate-source resistor, Rgs serves two purposes. 1). Due to the very high gain of an FET, any unwanted noise, signal or static on the gate terminal may cause the FET to turn-ON unintentionally. As with the base-emitter resistor for a BJT, it ties the gate down to prevent this. Typical values would be 100k and above. 2). A gate-source resistor can be used to produce a gate bias voltage as part of a FET amplifier voltage divider biasing network. There is a formula for FET biasing.

      Reply
  1. robotic

    Thank you. The article is very useful. But I have a question. What is the effect of Rin? Can you help me. Thank you ^^

    Reply
    • Wayne Storr

      The input impedance of a perfect MOSFET is extremely high so in theory no Gate resistor is required. However it is always better to have a resistor, anyway Rin could be the resistance of the connected switching circuit.

      Reply
  2. Shagas

    I’m surprised they did not mention anything about the input capacitance (or did I miss it? )

    Reply
    • Wayne Storr

      Hello Shagas, Your right, I did not mention Gate capacitance in this basic tutorial as it is only relevant at high switching frequencies or for h-parameter analysis. Parasitic gate channel capacitance Cgs and Cgd between the various layers is usually very small anyway. Having said that, the MOSFET gate input capacitance is important for anti-static handling purposes which was mentioned in the previous tutorial.

      Reply
  3. Mark Huth

    I think some of the confusion is that we think of logic low being near 0 volts, but in the complementary driver situation, the logic low is actually near -Vdd and the login high must be near +Vdd, or both FETs will conduct – that being the bang! condition. So the driving pulse must switch rail to rail, or some other form of biasing used to minimize the dual conduction region.

    This dual conduction is one of the main power disipation items in CMOS logic circuits. As the switching frequencies increase, this power dissipation component increases, ultimately limiting the operating frequencies of CPUs and other digital cmos devices. (It is, of course, somewhat more complicated than this, as various stored charges have to be moved as well, which is why smaller device geometries allow faster switching)

    Reply
  4. OFears

    I’m lost at the motor example. If the P-channel MOSFET is off and the N-channel is on, how does the motor turn? Isn’t the N-channel sinking 0 voltage? Thanks!

    Reply
    • Wayne Storr

      No, the N-channel MOSFET sinks current to the negative -Vdd rail. Whereas the P-channel MOSFET sources current from the positive +Vdd rail as described in the text.

      Reply
    • podgyhodgy

      What you need to notice is that the source pin of the n channel mosfet is attached to -Vdd so 0V is more positive than this.

      It is tricky to think in terms of negative voltage so simply shift everthing in your mind and give it some real values. lets say that +Vdd is 6V and -Vdd is -6V. (two 6 volt batteries in series and where they join is called zero)

      but what you can do is say that this is exactly the same as -Vdd being zero, zero becomes +6V and +Vdd becomes 12V. then it is easier to think about. if you have two 6 volt batteries in front of you on the table and the +ve of one is touching the -ve of the other then where is zero? Once you realise that it is wherever you say it is and it is all relative then you will understand better.

      realise that when using batteries (or the output of a transformer that is not grounded at either end) zero really is wherever you want to say it is and everything is relative

      Also, you do not sink voltage. only current. sinking and sourcing imply flow and voltage does not flow. current does.

      This is a key thing in understanding electric stuff. took me ages so dont feel too bad.

      have fun.

      cheers

      podge

      Reply
  5. safoor Ramjan

    I read many of your articles which are useful and very interesting , and I suggest for the amateur may be a practical test on bench with all calculated values would be of great help for other component to be used and selected.
    If possible to describe the abbreviation of name and symbols use in a particular component which will be of great help.
    Thanks for all your devoting time in preparing articles for us, God will bless You ,for you to help us more.
    Regards from
    safoor
    Mauritius

    Reply
  6. Hugh Shane

    I’m puzzled by the Complementary MOSFET Motor Controller. The article states, “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.” True, but what about the N-channel MOSFET? If the input was 0 V, then Vgs = 0 V – Vdd = -Vdd which will turn on the N-channel device too. For this scheme to work it seems to me that LOW must equal Vdd + Vgs(cutoff)

    Reply
    • Wayne Storr

      In this simple example the PMOS and NMOS enhancement mosfets are connected in a complementary manner. A logic 0 (low) applied turns the PMOS transistor ON and the NMOS transistor OFF, while a logic 1 (high) turns the PMOS transistor OFF and the NMOS transistor ON producing a source or sink effect on the output. A suitable pull-up resistor network would be required for the PMOS transistor and a pull-down resistor network for the NMOS transistor, not shown here for simplicity, to ensure that both transistors turned fully-off preventing shorting of the supply.

      The supplies have been, for convenience, labelled as +Vdd and -Vdd but the actual values of +Vdd and -Vdd are to some degree irrelevant as long as +Vdd is sufficiently more positive than -Vdd.

      Reply

Leave a Reply

Your email address will not be published. Required fields are marked *


6 × = forty eight

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>