Tool 07 · Transistor Guide · Field-effect

DGS

P-channel enhancement MOSFET

The N-MOSFET with every polarity reversed: with its source on the positive rail, it conducts from source to drain when its gate is pulled several volts below the source, as far as its datasheet's RDS(on)R_{DS(on)} line asks.

Controlled by
Voltage from gate to source, negative to turn it on
With no drive
Off: it conducts only when driven
Fully on
A resistance RDS(on)R_{DS(on)} at a stated gate voltage: 10 Ω max for a BSS84 at VGS=−5V_{GS} = -5 V, ID=−0.10I_D = -0.10 A
Terminals
G gate, D drain, S source
Used for
High-side switches and load switches, with the load tied to ground; Reverse-battery protection with a small voltage drop; The upper half of CMOS logic, half-bridges and H-bridges
01

How it works

A P-channel enhancement MOSFET is the N-MOSFET with every layer swapped: a P-type source and drain set into an N-type body, and a gate on a thin insulating oxide above the gap between them. With the gate at the source voltage there is no channel and the part is off: "enhancement" means the gate has to make the channel. Pulling the gate below the source draws holes, the missing electrons that carry current in P-type silicon, to the surface under the oxide. Past the threshold VGS(th)V_{GS(th)} they form a P channel from source to drain. The N-MOSFET page's physics holds, with every voltage and every current reversed, but not its numbers: holes move less easily than electrons.

  • In a discrete part the source is the pin tied to the body. In normal use it is the terminal at the higher voltage, on the positive rail in a high-side switch, and current flows in at the source and out at the drain.
  • VGSV_{GS} is negative in use, and so is the threshold: VGS(th)V_{GS(th)} is -0.8 to -2 V on a BSS84 (at ID=−1I_D = -1 mA), -2 to -4 V on an IRF9540 (at -250 µA), both with VDS=VGSV_{DS} = V_{GS}. Written as VSG=VS−VGV_{SG} = V_S - V_G, the drive is a positive number, and the equations below use it that way.
  • The body is tied to the source inside the package, which leaves a body diode from drain (anode) to source (cathode). It conducts whenever the drain goes a diode drop above the source, whatever the gate does.
  • In the symbol the arrow sits on the body and points out, from the P channel to the N body; on an N-MOSFET it points in. The channel line is broken in three: enhancement, off with no drive.

Written with the source-gate and source-drain voltages, both positive in use, the N-MOSFET's square law holds unchanged. In the current-source region:

ID=k2 (VSG−∣Vth∣)2VSD≥VSG−∣Vth∣I_D = \tfrac{k}{2}\,\big(V_{SG} - |V_{th}|\big)^2 \qquad V_{SD} \ge V_{SG} - |V_{th}|

IDI_D is the drain current, counted out of the drain. VthV_{th} is the model's threshold, close to the datasheet's VGS(th)V_{GS(th)}. k=μpCoxW/Lk = \mu_p C_{ox} W / L, in A/V², grows with the width WW of the channel and the capacitance CoxC_{ox} of the oxide per unit area, and shrinks with the channel length LL; μp\mu_p is the mobility of holes, how easily they move. Below the edge VSD=VSG−∣Vth∣V_{SD} = V_{SG} - |V_{th}| the channel is a resistor that the gate sets:

ID=k [(VSG−∣Vth∣) VSD−12 VSD2]RDS≈1k (VSG−∣Vth∣)I_D = k\,\Big[\big(V_{SG} - |V_{th}|\big)\,V_{SD} - \tfrac12\, V_{SD}^2\Big] \qquad R_{DS} \approx \frac{1}{k\,\big(V_{SG} - |V_{th}|\big)}

The second form holds at small VSDV_{SD}, the fully-on switch. A datasheet gives that resistance as RDS(on)R_{DS(on)} at one gate voltage: 10 Ω max for a BSS84 at VGS=−5V_{GS} = -5 V and ID=−0.10I_D = -0.10 A, 0.20 Ω max for an IRF9540 at -10 V and -11 A. The further the gate goes below the source, the lower it falls, but the datasheet guarantees it only at the voltage printed next to it.

Why a P-channel part costs more

Holes move less easily than electrons, so on the same die area a P channel has more resistance, up to about twice as much by onsemi's note AND9093. A P part built for the same resistance needs a larger die, with more capacitance. The catalogues show it: Vishay's IRF540 guarantees at most 0.077 Ω with 10 V of gate drive, its P-channel counterpart the IRF9540 at most 0.20 Ω, 2.6 times more, though the two dies need not be the same size. A P part earns its place where its polarity saves a circuit. On the high side its gate only has to go below the rail, a voltage every circuit has. An N part there needs its gate above the rail, which takes an extra supply or a gate driver.

Regions of operation

RegionSource-gateSource-drainWhat happensUsed as
Off (cutoff)VSG<∣Vth∣V_{SG} < |V_{th}|positiveonly leakage flowsopen switch
Current source (saturation)VSG>∣Vth∣V_{SG} > |V_{th}|VSD≥VSG−∣Vth∣V_{SD} \ge V_{SG} - |V_{th}|IDI_D set by VSGV_{SG}, nearly independent of VSDV_{SD}amplifier, current source, linear regulator
Fully on, a resistor (triode, ohmic)well above ∣Vth∣|V_{th}|VSD<VSG−∣Vth∣V_{SD} < V_{SG} - |V_{th}|a resistance set by VSGV_{SG}: RDS(on)R_{DS(on)} at the datasheet's VGSV_{GS}closed switch
Reverseanynegative: the drain above the sourcethe body diode conducts from drain to source; with VSGV_{SG} past the threshold the channel carries the current insteadreverse-battery protection, the freewheeling path of a bridge

On and off are set by the gate voltage measured from the source, not from ground. With the source on a 12 V rail, a gate at 12 V is off and a gate at 0 V is fully on, VGS=−12V_{GS} = -12 V. The words clash with the BJT's as on the N-MOSFET page: a FET's "saturation" is its current-source region, the BJT's active region, and the fully-on switch is the triode region, which the simulator's hover calls "linear". Power-MOSFET app notes use "linear mode" for the current-source region instead.

Small-signal model and temperature

Around an operating point in its current-source region the P-MOSFET is a transconductance, with the N-MOSFET's formulas:

gm=k (VSG−∣Vth∣)=2 IDVSG−∣Vth∣=2 k IDg_m = k\,\big(V_{SG} - |V_{th}|\big) = \frac{2\, I_D}{V_{SG} - |V_{th}|} = \sqrt{2\, k\, I_D}

The BSS84 datasheet gives it as gFSg_{FS}: 0.05 S minimum and 0.6 S typical at -0.10 A, a twelvefold spread that leaves the bias of an amplifier to resistors and feedback, as on every transistor page.

Temperature moves the two numbers a switch depends on. RDS(on)R_{DS(on)} rises: the BSS84's maximum goes from 10 Ω at 25 °C to 17 Ω at 125 °C. The threshold's magnitude falls, so a hot part turns on with less gate drive and stays off with less margin. In the current-source region the falling threshold can win: below the zero-temperature-coefficient point, where a datasheet's hot and cold transfer curves cross, heating raises the current. Linear use, such as the pass element of a regulator, takes a part rated for it (Nexperia AN50006).

In an IC the body is not always at the source. The CD4007UB ties every P substrate to VDDV_{DD}, so a P transistor whose source sits below VDDV_{DD} has its body above its source, and its threshold magnitude grows: the body effect.

Relatives

Small through-hole parts. The BSS84 is surface-mount only. The BS250P (Diodes Inc., -45 V, -230 mA) fits a breadboard directly, but its RDS(ON)R_{DS(ON)} is guaranteed only at VGS=−10V_{GS} = -10 V, 14 Ω max, and its VGS(TH)V_{GS(TH)} reaches -3.5 V, so a 5 V gate swing guarantees nothing.

Complementary pairs. The BSS84 is the P-channel complement of the BSS138, the IRF9540 of the IRF540: an N and a P part of similar ratings for push-pull stages and half-bridges. As with the 2N3904 and 2N3906, complementary means the opposite polarity, not matched parameters.

The N-MOSFET on the high side. Where the loss or the switching speed matters, high-side switches use an N-MOSFET with a gate driver that lifts its gate above the rail, through a bootstrap capacitor recharged every cycle or a charge pump for a switch held on. A high-side switch IC is the packaged alternative to both.

CMOS arrays. The CD4007UB holds three P and three N transistors with their pins brought out, the pairs every CMOS logic gate is built from. The UB version is unbuffered, a single stage, which also lets it work as a linear amplifier.

02

The curves

interactive

Drain current against gate-source voltage for three P-channel FETs, with 10 V from source to drain. The P-MOSFET of this model (threshold -2 V, k=5k = 5 mA/V²) is off from 0 V down to -2 V, then grows with the square of the excess: about 11 mA at -4 V, 44 mA at -6 V. The P-JFET and the depletion part conduct at 0 V and turn off when the gate goes a few volts above the source. The plot shows the size of the current, which flows out of the drain.

  • P-JFET on, 11.0 mA normally on
  • Depletion P-MOSFET on, 11.0 mA normally on
  • Enhancement P-MOSFET off normally off

Every voltage flips sign: the P-channel enhancement MOSFET turns on when the gate goes below the source, and the P-channel JFET and depletion MOSFET turn off when the gate goes above it. The shapes are the same as the N-channel ones.

03

Circuits to try

Falstad's simulator, one at a time

Each circuit runs in Paul Falstad's CircuitJS, loaded only on request. The sliders are in the panel on the right of the simulator, switches toggle with a click, and hovering a part shows its voltages, currents and state at the bottom right.

Simulation

P-MOSFET high-side switch

A P-MOSFET between 12 V and the load, its gate held at 12 V by 10 kΩ. A small N-MOSFET, driven by a 5 V logic signal, pulls the gate down to switch it on.

  1. Drag Logic input from 0 to 5 V.
  2. Hover the P-MOSFET at each end and read VGSV_{GS}.

What to see. A P-channel part turns on when its gate goes BELOW its source: here VGSV_{GS} swings from 0 to -12 V. The logic signal never reaches 12 V, so the small N-MOSFET does the pulling, and it also keeps the logic pin away from the 12 V rail. A gate pulled 12 V under the source is fine for most parts, which take +/-20 V; at 24 V a zener from source to gate would be needed.

Open in the full simulator CircuitJS by Paul Falstad, loaded from falstad.com
Simulation

Reverse-battery protection: diode against P-MOSFET

A battery whose voltage is a slider from -12 V (connected backwards) to +12 V feeds two 100 Ω loads: one through a P-MOSFET, the other through a series diode.

  1. At +12 V read both load voltages.
  2. Drag the battery to -12 V and read them again.

What to see. Both block a reversed battery. Forward, the diode costs its 0.7 V and its loss, watts at high current. The P-MOSFET is placed backwards on purpose: its body diode conducts first, that pulls the source up, VGSV_{GS} goes to about -12 V and the channel turns on and shorts the diode, so the loss is only I squared times RDS(on)R_{DS(on)}. Reversed, the body diode blocks and VGSV_{GS} stays near 0: off.

Open in the full simulator CircuitJS by Paul Falstad, loaded from falstad.com
Simulation

CMOS inverter

A P-MOSFET from 5 V and an N-MOSFET to ground, gates tied together as the input, drains tied together as the output. An ammeter reads the supply current.

  1. Drag Input voltage from 0 to 5 V and watch the output.
  2. Stop around 2.5 V and read the ammeter.

What to see. At either end one transistor is fully on and the other fully off: the output sits at a rail and no current flows from the supply, which is why CMOS logic draws almost nothing when it is not switching. In the middle both conduct at once and a current shoots through: every edge of a CMOS signal costs a little of it, and a slow input edge costs a lot.

Open in the full simulator CircuitJS by Paul Falstad, loaded from falstad.com
04

Design rules

A high-side switch: a pull-up to the source, a level shifter to pull the gate down

The source goes on the rail, the drain to the load, and the load's other end to ground. A resistor RGSR_{GS} from gate to source holds VGS=0V_{GS} = 0, off, whenever nothing drives the gate. A small N-MOSFET or NPN, the level shifter (a stage that translates the logic voltage to the rail's), pulls the gate toward 0 V to turn the switch on. The logic pin only drives the shifter, so it never sees the rail, and a logic high turns the load on: the pair does not invert. The first simulation is this circuit.

The two states, read on the datasheet:

off: VSG≈0on: VSG≥∣VGS∣ of the RDS(on) line\text{off: } V_{SG} \approx 0 \qquad \text{on: } V_{SG} \ge |V_{GS}| \text{ of the } R_{DS(on)} \text{ line}

A pin wired straight to the gate works only when its supply is the rail the source sits on. On a 12 V rail a 3.3 V logic high leaves VGS=3.3−12=−8.7V_{GS} = 3.3 - 12 = -8.7 V: the switch stays fully on, and the pull-up pushes (12−3.3) V/10 kΩ=0.87(12 - 3.3)\ \text{V} / 10\ \text{k}\Omega = 0.87 mA into the pin. With the shifter, a 10 kΩ pull-up costs 12 V/10 kΩ=1.212\ \text{V} / 10\ \text{k}\Omega = 1.2 mA, or 14 mW, only while the load is on. onsemi's load-switch note AND9093 gives 1 to 10 kΩ for it; a smaller value charges the gate back to the source faster at turn-off.

The pull-up also sets how fast the switch turns off: the gate charge QGQ_G has to flow back through it, so the edge lasts about t≈QG RGS/VSGt \approx Q_G\, R_{GS} / V_{SG}. An IRF9540N (97 nC max at VGS=−10V_{GS} = -10 V and VDS=−80V_{DS} = -80 V) with 10 kΩ and 10 V of drive takes about 100 µs, a tenth of every period of a 1 kHz PWM, spent half on and heating. A load switched now and then does not notice; PWM takes a smaller pull-up or a push-pull gate driver.

An inductive load, a relay coil or a small motor, needs a flyback diode across it on the high side too: anode on ground, cathode on the drain. At turn-off the coil keeps its current flowing and drives the drain below ground; the diode clamps it one diode drop under 0 V.

The gate limit: ∣VGS∣|V_{GS}| of 20 V on most parts

The gate oxide is thin. The BSS84 and the IRF540N allow ±20 V from gate to source, the logic-level IRLZ44N only ±16 V, and Nexperia notes that the oxide's life shortens with gate voltage and temperature (AN11158). A level shifter that pulls the gate to 0 V gives VGS=−VrailV_{GS} = -V_{rail}: fine on 12 V, past the limit on 24 V.

onsemi's fix (AND9093) is a divider. R2R_2 is the pull-up from gate to source, R1R_1 goes in series with the shifter, and the gate stops part of the way down, inside the gate rating VSG, maxV_{SG,\,max}:

VSG=Vrail R2R1+R2≤VSG, maxV_{SG} = V_{rail}\, \frac{R_2}{R_1 + R_2} \le V_{SG,\,max}

On a 24 V rail, R1=R2=10R_1 = R_2 = 10 kΩ gives VSG=12V_{SG} = 12 V, that is VGS=−12V_{GS} = -12 V: past the -4 V worst threshold of an IRF9540 and beyond the -10 V at which its RDS(on)R_{DS(on)} is guaranteed. The divider scales with the rail, so a rail sagging to 18 V leaves only VGS=−9V_{GS} = -9 V, short of that line.

The common alternative is a zener from gate to source, cathode on the source, with R1R_1 limiting its current: it holds VSGV_{SG} at its own voltage whatever the rail. With a 12 V zener and R1=4.7R_1 = 4.7 kΩ on 24 V, (24−12) V/4.7 kΩ=2.55(24 - 12)\ \text{V} / 4.7\ \text{k}\Omega = 2.55 mA flows, 1.2 mA of it through the 10 kΩ pull-up and 1.35 mA through the zener.

Conduction loss is I2RDS(on)I^2 R_{DS(on)}: at high current an N part with a driver wins

Fully on, the switch is a resistor, and its loss grows with the square of the current:

P=ID2 RDS(on)P = I_D^2\, R_{DS(on)}

RDS(on)R_{DS(on)} is the maximum at the gate voltage the circuit really gives, and the hot value: silicon parts rise 1.5 to 2.2 times from 25 °C to 125 °C, the BSS84's maximum from 10 Ω to 17 Ω. An IRF9540 switching 2 A at VGS=−10V_{GS} = -10 V loses at most 22×0.20=0.82^2 \times 0.20 = 0.8 W cold, about 1.6 W hot. Its N-channel counterpart, the IRF540, guaranteed at 0.077 Ω, loses 0.31 W at the same current, 2.6 times less; at 5 A the gap is 5 W against 1.9 W.

These are Vishay's figures for the IRF9540 and the IRF540. The IRF9540N on the card below is a newer part with its own lines, 0.117 Ω max against 0.044 Ω for its complement the IRF540N: the loss is worked out from the card of the part on the bench.

The N part's catch is its gate. On the high side its source rises to the rail with the load, so its gate needs about 10 V above the rail, from a bootstrap capacitor or a charge pump in a gate-driver IC (TI SLUA618). A bootstrap recharges only while the switch is off, so it cannot hold a switch on at 100 % duty without a charge pump. A P-MOSFET needs no extra rail (onsemi AND9093). That makes it the part for load switches at moderate current, and the N-MOSFET with a driver the part for high current and fast PWM.

Reverse-battery protection: a P-MOSFET placed backwards

A diode in series with the supply blocks a battery connected backwards, but drops 0.7 to 1 V all the time. A P-MOSFET in the positive line does the same job with a fraction of the drop. It is mounted the other way round from a switch: drain to the battery, source to the load, gate to ground through a resistor, 10 kΩ in the second simulation.

  1. Battery the right way round: the body diode, anode on the drain, conducts first and lifts the source to about 11.3 V on a 12 V battery.
  2. The gate sits at 0 V, so VGSV_{GS} is about -11 V: the channel turns on and carries the current from drain to source, the reverse of its usual direction. A MOSFET channel conducts both ways once it is on, and with its drop under a diode drop the body diode carries nothing.
  3. Battery reversed: the drain sits at -12 V, the body diode is reverse-biased, and the source stays at 0 V, so VGS=0V_{GS} = 0. The part is off and nothing flows.

The gain is in the loss:

Pdiode=VF IPMOSFET=I2 RDS(on)P_{diode} = V_F\, I \qquad P_{MOSFET} = I^2\, R_{DS(on)}

At 1 A an IRF9540 drops at most 1 A×0.20 Ω=0.21\ \text{A} \times 0.20\ \Omega = 0.2 V and loses 0.2 W, where the 1N4004 of the simulation drops about 0.95 V and loses about 0.95 W. At 2 A it is 0.4 V and 0.8 W against about 1 V and 2 W. The channel's drop has to stay well under a diode drop, or the body diode starts to share the current. A battery above 20 V would take VGSV_{GS} past its limit: the zener of the gate-limit rule then goes from gate to source.

CMOS: a P on top, an N below, never both on

A P-MOSFET from the supply and an N-MOSFET to ground, gates tied together as the input and drains tied together as the output, make a CMOS inverter. Input at 0 V: the P is on, the N off, and the output sits at VDDV_{DD}. Input at VDDV_{DD}: the reverse. At either end no current flows from the supply and the output swings from rail to rail. Between the two both conduct, and a current shoots through from the supply to ground. The switching point VMV_M, with both transistors in their current-source region, is:

VM=VTn+kp/kn (VDD−∣VTp∣)1+kp/knV_M = \frac{V_{Tn} + \sqrt{k_p / k_n}\,\big(V_{DD} - |V_{Tp}|\big)}{1 + \sqrt{k_p / k_n}}

VTnV_{Tn} and ∣VTp∣|V_{Tp}| are the two thresholds, knk_n and kpk_p the two transistors' kk. Equal values put VMV_M at VDD/2V_{DD}/2. Equal sizes do not give equal kk: with electrons 2.5 times as mobile as holes and thresholds of 1.5 V, VMV_M falls to 2.27 V on 5 V, so a balanced inverter has a wider P transistor. At VMV_M the shoot-through current of a balanced pair peaks at:

Ipeak=k2 (VDD2−VT)2I_{peak} = \tfrac{k}{2}\,\Big(\frac{V_{DD}}{2} - V_T\Big)^2

With k=1k = 1 mA/V² and VT=1.5V_T = 1.5 V that is 0.5 mA on 5 V, 6.1 mA on 10 V and 18 mA on 15 V: three times the supply, 36 times the current. The simulation's transistors have k=20k = 20 mA/V² and thresholds of 1.5 V, so its ammeter reads about 10 mA at 2.5 V. A slow input edge spends longer in the middle and costs more, and an input left halfway draws it all the time (TI SCAA035). The CD4007UB brings three N and three P transistors out to their own pins: the part to try this on a breadboard.

The same pair built from power parts is a half-bridge, one switch from each rail to an output. Two half-bridges with a motor between their outputs make an H-bridge: the P of one leg and the N of the other drive the motor one way, the other diagonal drives it the other way. Both transistors of one leg on at once short the supply. So the drive leaves a dead time, both off, between turning one off and the other on. The motor's inductance keeps its current flowing through that gap, through a body diode: the N's from ground, or the P's up to the supply. An H-bridge driver IC handles that timing.

05

Real parts and their datasheets

Pinouts as seen from the front, legs down. Every value comes with the condition it is measured at: a number from a datasheet means nothing without it.

DGS

pins 1, 2, 3; surface mount only, on an adapter for a breadboard

BSS84

P-MOSFET, small signal

onsemi, SOT-23. Datasheet (PDF), onsemi.com

LineValueMeasured at
VDSSV_{DSS}-50 V maxabsolute maximum
IDI_D-0.13 A, -0.52 Acontinuous, pulsed
VGS(th)V_{GS(th)}-0.8 to -2 V (-1.7 typ)VDS=VGSV_{DS} = V_{GS}, ID=−1I_D = -1 mA
RDS(on)R_{DS(on)}10 Ω max (1.2 typ)VGS=−5V_{GS} = -5 V, ID=−0.10I_D = -0.10 A (17 Ω max at 125 °C)
gFSg_{FS}0.05 S min (0.6 typ)VDS=−25V_{DS} = -25 V, ID=−0.10I_D = -0.10 A
CissC_{iss}, CossC_{oss}, CrssC_{rss}73, 10, 5 pF typVDS=−25V_{DS} = -25 V, VGS=0V_{GS} = 0, f=1f = 1 MHz
QgQ_g1.3 nC max (0.9 typ)VDS=−25V_{DS} = -25 V, ID=−0.10I_D = -0.10 A, VGS=−5V_{GS} = -5 V
VSDV_{SD}-1.2 V max (-0.8 typ)body diode, VGS=0V_{GS} = 0, IS=−0.26I_S = -0.26 A
PDP_D, RθJAR_{\theta JA}0.36 W, 350 °C/Wabsolute maximum
VGSSV_{GSS}±20 V maxabsolute maximum

What to read first. RDS(on)R_{DS(on)} is given only at VGS=−5V_{GS} = -5 V, 10 Ω at most. As a high-side switch the source sits on the positive rail and the gate is pulled below it to turn the part on.

GDSTO-220

tab: D

printed face toward the viewer, tab behind; the same G D S order as the N-channel IRF540N, and the tab is the drain

IRF9540NPbF

P-MOSFET, power

Infineon (International Rectifier), TO-220. Datasheet (PDF), infineon.com

LineValueMeasured at
V(BR)DSSV_{(BR)DSS}-100 V minVGS=0V_{GS} = 0, ID=−250I_D = -250 µA
VGSV_{GS}±20 V maxabsolute maximum
IDI_D-23 A maxVGS=−10V_{GS} = -10 V, case held at TC=25T_C = 25 °C (-16 A at TC=100T_C = 100 °C)
RDS(on)R_{DS(on)}0.117 Ω maxVGS=−10V_{GS} = -10 V, ID=−11I_D = -11 A; the only gate voltage given
VGS(th)V_{GS(th)}-2.0 to -4.0 VVDS=VGSV_{DS} = V_{GS}, ID=−250I_D = -250 µA
QgQ_g97 nC maxVGS=−10V_{GS} = -10 V, VDS=−80V_{DS} = -80 V, ID=−11I_D = -11 A (QgsQ_{gs} 15, QgdQ_{gd} 51 nC max)
EASE_{AS}430 mJ maxsingle pulse, IAS=−11I_{AS} = -11 A, L=7.1L = 7.1 mH, RG=25R_G = 25 Ω
VSDV_{SD}-1.6 V maxbody diode, IS=−11I_S = -11 A, VGS=0V_{GS} = 0
trrt_{rr}, QrrQ_{rr}220 ns, 1200 nC max (150, 830 typ)body diode, IF=−11I_F = -11 A, di/dt=100di/dt = 100 A/µs
RθJCR_{\theta JC}, RθJAR_{\theta JA}1.1, 62 °C/W maxjunction to case, junction to free air; PD=140P_D = 140 W only at TC=25T_C = 25 °C

What to read first. Every line is negative: the gate goes about 10 V below the source to turn the part on, and RDS(on)R_{DS(on)} is guaranteed only at -10 V. On a +15 V high side a gate pulled to 0 V sees -15 V, inside the ±20 V rating; the 0.117 Ω is about 2.7 times the 44 mΩ of the N-channel IRF540N.

DGSflat face

flat face toward the viewer, like the BS170. Read from an unnumbered sketch, so confirm with the diode test

BS250P

P-MOSFET, small signal

Diodes Incorporated (Zetex), E-Line, TO-92 compatible. Datasheet (PDF), diodes.com

LineValueMeasured at
VDSV_{DS}-45 V maxabsolute maximum
IDI_D-230 mA maxcontinuous (-3 A pulsed)
VGS(TH)V_{GS(TH)}-1 to -3.5 VID=−1I_D = -1 mA, VDS=VGSV_{DS} = V_{GS}
RDS(ON)R_{DS(ON)}14 Ω maxVGS=−10V_{GS} = -10 V, ID=−200I_D = -200 mA, pulsed
gfsg_{fs}150 mS typVDS=−10V_{DS} = -10 V, ID=−200I_D = -200 mA
CissC_{iss}60 pF typVGS=0V_{GS} = 0, VDS=−10V_{DS} = -10 V, f=1f = 1 MHz
t(on)t_{(on)}, t(off)t_{(off)}20 ns maxVDD≈−25V_{DD} \approx -25 V, ID=−500I_D = -500 mA
IDSSI_{DSS}-500 nA maxVGS=0V_{GS} = 0, VDS=−25V_{DS} = -25 V
VGSV_{GS}±20 V maxabsolute maximum
PTOTP_{TOT}700 mWTA=25T_A = 25 °C; no thermal resistance given

What to read first. RDS(ON)R_{DS(ON)} is given only at VGS=−10V_{GS} = -10 V and VGS(TH)V_{GS(TH)} reaches -3.5 V, so a 5 V gate swing guarantees nothing. The two-page sheet has no graphs, body-diode or gate-charge lines: it refers to the ZVP2106A for curves.

PDIP-14
Top view, notch up, pin 1 at top left. P-MOSFETs between pins 14 and 13, 2 and 1, 11 and 12; N-MOSFETs between 8 and 7, 5 and 4, 12 and 9 (pairs 1, 2, 3). Shared gates: pin 6, pin 3, pin 10. Pin 14 is VDD and every P substrate, pin 7 is VSS and every N substrate, so pair 1 has one end on each rail and only pairs 2 and 3 are free. One inverter: 14 to VDD, 7 to VSS, input on 6, output on 13 and 8 tied together.

The terminal diagram calls pins 14 and 11 P drains, yet both go to VDD in the inverter wiring (Fig. 2a): in use, the P source is the end at the higher voltage.

CD4007UBE

CMOS array, 3 P and 3 N MOSFETs

Texas Instruments, PDIP-14. Datasheet (PDF), ti.com

LineValueMeasured at
VDDV_{DD}-0.5 to 20 Vabsolute maximum, referred to VSS
VDDV_{DD}3 to 18 Vrecommended
IOLI_{OL}0.51 mA min (1 typ)VDD=5V_{DD} = 5 V, VO=0.4V_O = 0.4 V, 25 °C
IOLI_{OL}3.4 mA min (6.8 typ)VDD=15V_{DD} = 15 V, VO=1.5V_O = 1.5 V, 25 °C
IOHI_{OH}-3.4 mA min (-6.8 typ)VDD=15V_{DD} = 15 V, VO=13.5V_O = 13.5 V, 25 °C
VILV_{IL}, VIHV_{IH}1 V max, 4 V minVDD=5V_{DD} = 5 V (2.5 V and 12.5 V at 15 V)
IDDI_{DD}0.25 µA maxquiescent, VDD=5V_{DD} = 5 V, 25 °C (5 µA at 20 V)
tPHLt_{PHL}, tPLHt_{PLH}110 ns max (55 typ)VDD=5V_{DD} = 5 V, CL=50C_L = 50 pF (50 ns max at 15 V)
PDP_D100 mW maxeach output transistor (500 mW for the package)
IINI_{IN}±10 mA maxDC, any input

What to read first. VDDV_{DD} first: 20 V absolute maximum, so the ±15 V lab supply, 30 V across the chip, is too much; +15 V and 0 V, or ±7.5 V, are safe. The sheet gives no threshold voltage: the typical drain-current curves or a measurement stand in for it.

06

On the bench

Meter check. On the diode range, red lead on the drain and black on the source: the body diode, a silicon junction drop. Nothing with the leads swapped. An N-MOSFET shows its body diode the other way, red lead on the source. The gate reads open to both other pins, but the meter's own voltage can charge it and turn the channel on, so the gate is shorted to the source for a moment before each reading. A 9 V battery held briefly with its negative terminal on the gate and its positive on the source charges the gate to -9 V, inside the ±20 V limit and past the -4 V worst threshold of an IRF9540: drain to source then reads a low resistance both ways, until the gate is shorted to the source again. The BSS84 is SOT-23 (pin 1 gate, 2 source, 3 drain) and needs an adapter; the IRF9540N's pin order is on its card. Small MOSFET gates are static-sensitive and are handled like CMOS ICs.

First build: the high-side switch of the first simulation. On the +15 V rail: a BSS84 on its adapter, or a BS250P (D-G-S with the flat face toward the viewer, read from the datasheet's sketch, so checked with the meter first), with its source on the rail and 10 kΩ from gate to source. A 2N7000 (S-G-D, flat face toward the viewer) has its drain on that gate, its source on ground, 100 kΩ from its gate to ground, and its gate on a 0 or 5 V wire through 100 Ω. The load is a red LED and 1 kΩ from the drain to ground. With the wire at 0 V the gate reads 15 V, VGS=0V_{GS} = 0, and the LED is off. At 5 V the 2N7000 pulls the gate to within about 8 mV of ground (1.5 mA through at most 5.3 Ω), VGSV_{GS} is about -15 V, inside the ±20 V limit, and the LED takes about (15−1.8) V/1 kΩ=13(15 - 1.8)\ \text{V} / 1\ \text{k}\Omega = 13 mA. From source to drain the meter reads a fraction of a volt: at most 0.13 V for a BSS84 (10 Ω max) and 0.18 V for a BS250P (14 Ω max).

Second build: a CMOS inverter on a CD4007UB. Pin 14 to +5 V, pin 7 to ground, the input on pin 6 from a potentiometer across the supply, the output on pins 13 and 8 tied together, and the unused gate pins 3 and 10 tied to ground. Never the ±15 V pair: 30 V is past the chip's 20 V absolute maximum, while 0 and +15 V is fine. As the input turns from 0 to 5 V, the output falls from about 5 V to about 0 V around the middle. The datasheet guarantees a valid output only for inputs under 1 V or over 4 V on 5 V: a single unbuffered stage has a gentle slope.

A milliammeter in series with pin 14 reads almost nothing at either end, 0.25 µA at most by the datasheet, and a peak in the middle: the shoot-through current. A square-law estimate from the datasheet's output currents puts it under 1 mA on 5 V and at a few milliamps on 15 V. The datasheet also gives the P and N transistors the same typical output current, 1 mA at 5 V with 0.4 V across: the P transistors are made larger to match the N ones, which puts the switching point near the middle of the supply.

07

Common traps

  • A P-MOSFET high-side switch can be driven straight from a 5 V or 3.3 V pin.

    Only when the pin's supply is the source rail. On 12 V a 3.3 V logic high leaves VGS=−8.7V_{GS} = -8.7 V, and the switch stays fully on whatever the pin does. A level shifter and a pull-up from gate to source make it work.

  • 0 V on the gate means off.

    With the source on the rail, 0 V on the gate is fully on: VGS=−12V_{GS} = -12 V on a 12 V rail. Off is the gate at the source voltage.

  • The gate draws no current, so it can be left floating.

    An undriven gate keeps whatever charge it last had, or drifts with leakage and stray coupling, and can settle half on, in the current-source region where the part heats. The pull-up from gate to source is what defines off.

  • VGS(th)V_{GS(th)} is the voltage that turns the switch on.

    It is a test point where a small current flows: -1 mA for the BSS84, with VDS=VGSV_{DS} = V_{GS}. The BSS84's RDS(on)R_{DS(on)} is guaranteed only at VGS=−5V_{GS} = -5 V and the IRF9540's only at -10 V. The gate goes as far below the source as the RDS(on)R_{DS(on)} line asks.

  • An off MOSFET blocks current both ways.

    The body diode conducts from drain to source whatever the gate does, with up to 1.2 V across it at 0.26 A on a BSS84. A switch whose drain is pulled above its rail, by a second supply on the load side, feeds that rail backwards. Reverse-battery protection puts the same diode to use.

  • A P-MOSFET is an N-MOSFET with the signs changed, numbers included.

    The physics flips, the numbers do not. Holes move less easily than electrons: Vishay's IRF9540 guarantees 0.20 Ω where its N counterpart, the IRF540, guarantees 0.077 Ω, both at 10 V of gate drive. For the same resistance a P part needs a larger die, with more capacitance.

08

Check yourself

answers fold out
  1. A BSS84 switches a 50 mA load on a 5 V rail, its gate driven from a 5 V logic pin. What does it drop, worst case, cold and hot?

    Answer

    Logic low gives VGS=−5V_{GS} = -5 V, exactly where RDS(on)R_{DS(on)} is guaranteed: at most 10 Ω, so 50 mA×10 Ω=0.550\ \text{mA} \times 10\ \Omega = 0.5 V and 25 mW; a typical part (1.2 Ω) drops 60 mV. At 125 °C the maximum is 17 Ω, or 0.85 V. Logic high gives VGS=0V_{GS} = 0: off. That works only because the pin's supply is the source rail; on a 12 V rail the same pin could not turn it off.

  2. An IRF9540 switches a 24 V rail. The level shifter pulls the gate down through R1R_1, with R2=10R_2 = 10 kΩ from gate to source. What R1R_1 gives VSG=15V_{SG} = 15 V, and is it safe if the rail rises to 30 V?

    Answer

    R2/(R1+R2)=15/24R_2 / (R_1 + R_2) = 15 / 24, so R1+R2=16R_1 + R_2 = 16 kΩ and R1=6R_1 = 6 kΩ. Rounding up to the E12 value 6.8 kΩ keeps the gate on the safe side: 24×10/16.8=14.324 \times 10 / 16.8 = 14.3 V, still past the -10 V line. At 30 V the divider gives 30×10/16.8=17.930 \times 10 / 16.8 = 17.9 V, inside ±20 V. With 5.6 kΩ it would be 19.2 V, with almost no margin. A rail that can rise further gets a zener from gate to source instead.

  3. In reverse-battery protection the P-MOSFET has its drain toward the battery. What happens with a reversed 12 V battery if it is mounted the usual way, source to the battery and drain to the load?

    Answer

    The source sits at -12 V while the load ties the drain toward 0 V. The drain is above the source, so the body diode, anode on the drain, conducts, and the load sees about -11.3 V. The channel is off (VGS=+12V_{GS} = +12 V), but the diode alone defeats the protection. Mounted backwards, the reversed battery puts that diode in reverse and VGSV_{GS} at 0.