MOSFET (mosfet)
A gate-controlled switch with a body diode. Can add stray parts and losses.
Group: Switches · Kind: {"kind":"mosfet"}
When to use it
Use it for converter legs, inverter legs and synchronous rectifiers. Use IGBT for high-voltage one-way switching, and Ideal Switch when you want no body diode.
Pins
| Pin | Domain | Meaning |
|---|---|---|
d |
electrical | Drain; forward current flows from d to s |
s |
electrical | Source; the body diode conducts from s to d |
gate |
signal | Signal input; above 0.5 turns it on |
Common parameters
ron: Resistance when it is on (Default: 10m)vf: Voltage lost while it conducts (Default: 0)coss: Capacitance across the device (Default: 0)eon: Energy lost each time it turns on (Default: 0)eoff: Energy lost each time it turns off (Default: 0)
Parameters
| Key | Unit | Default | Typical range | Description |
|---|---|---|---|---|
ron |
Ω | 10m | Resistance when it is on | |
roff |
Ω | 1meg | Resistance when it is off | |
vf |
V | 0 | Voltage lost while it conducts | |
device |
— | optional (off) | Device name used to look up losses | |
thermal |
— | optional (off) | Where the lost heat goes | |
eon |
J | 0 | Energy lost each time it turns on | |
eoff |
J | 0 | Energy lost each time it turns off | |
err |
J | 0 | Energy lost when the diode recovers | |
vref |
V | 0 | Voltage used to measure those energies | |
iref |
A | 0 | Current used to measure those energies | |
tc |
1/K | 0 | How on-resistance changes with heat | |
tj |
°C | 25 | Junction temperature for the loss tables | |
nParallel |
— | 1 | Identical devices this one switch stands for: the current is shared, the losses add up, each device keeps its own junction | |
tjMax |
°C | optional (off) | Highest junction temperature allowed; overrides the device's rating | |
ls |
H | 0 | 500p – 50n H | Unwanted inductance in series with it |
coss |
F | 0 | 10p – 5n F | Capacitance across the device |
cj |
F | 0 | 5p – 2n F | Extra capacitance across the junction |
tdon |
s | 0 | 1n – 500n s | Delay before it turns on |
tdoff |
s | 0 | 1n – 500n s | Delay before it turns off |
qrr |
C | 0 | 1n – 5u C | Charge released as the diode recovers |
trr |
s | 100n | 10n – 1u s | How long the diode takes to recover |
qrrTemp |
— | optional (off) | Junction temperature (°C) and factor pairs that scale qrr, from the datasheet's curve | |
part |
— | optional (off) | Part number; the catalogue part number, such as BSC070N10NS5, written on the schematic; information only, not simulated | |
vRating |
V | optional (off) | Voltage rating; the largest blocking voltage of the data sheet's maximum ratings (VDS, VCES, VRRM), written on the schematic; information only, not simulated | |
iRating |
A | optional (off) | Current rating; the continuous current of the data sheet's maximum ratings (ID, IC, IF), written on the schematic; information only, not simulated | |
level |
— | ideal | Switching model: ideal switches at once; dynamic follows the gate drive, the gate charge and the device capacitances |
|
tech |
— | si | Device technology: si and sic have a body diode; gan is a GaN HEMT with no body diode, conducting in reverse at vth − voff without recovery; ganCascode has the body diode of its silicon MOSFET |
|
dvdt |
V/s | optional (off) | Turn-on slew rate set by a driver in the package, such as an integrated GaN FET's drive-strength pin: the drain-source voltage falls at this rate instead of at once; the device's default setting when unset; ideal level only, with steps shorter than the ramp | |
rdsDyn |
— | 1 | Dynamic on-resistance of a GaN device: the factor on ron after blocking a high voltage, from the datasheet's dynamic RDS(on) figure; 1 is off | |
vgsMax |
V | optional (off) | Largest gate-source voltage of the datasheet's maximum ratings; a drive above it is an error | |
vgsMin |
V | optional (off) | Most negative gate-source voltage of the datasheet's maximum ratings; a drive below it is an error | |
von |
V | 15 | Gate drive voltage while on; dynamic level, and the gate-charge loss estimate (10 V when unset) | |
voff |
V | 0 | Gate drive voltage while off; dynamic level, the gate-charge loss estimate and the reverse drop of a GaN HEMT | |
rgon |
Ω | 10 | Gate resistance while turning on; driver and external resistor; dynamic level, and the gate-charge loss estimate (2 Ω when unset) | |
rgoff |
Ω | optional (off) | Gate resistance while turning off; same as rgon when unset | |
rgint |
Ω | optional (off) | Gate resistance inside the device; from the device data when unset, else 0 | |
vth |
V | optional (off) | Gate voltage where the channel starts to conduct; dynamic level, and the reverse drop vth − voff of a GaN HEMT | |
gfs |
S | optional (off) | Drain current gained per volt of gate drive; dynamic level only | |
vplateau |
V | optional (off) | Miller plateau voltage; the gate voltage held while the drain voltage swings | |
iplateau |
A | optional (off) | Drain current at which vplateau was measured | |
ciss |
F | optional (off) | Input capacitance; gate to source with the drain shorted to the source, dynamic level only | |
crss |
F | optional (off) | Reverse transfer capacitance; gate to drain, dynamic level only | |
cissTable |
— | optional (off) | Input capacitance over drain voltage; voltage and capacitance pairs, dynamic level only | |
cossTable |
— | optional (off) | Output capacitance over drain voltage; voltage and capacitance pairs, dynamic level only | |
crssTable |
— | optional (off) | Reverse transfer capacitance over drain voltage; voltage and capacitance pairs, dynamic level only | |
qgd |
C | optional (off) | Gate to drain charge from the datasheet; scales the gate to drain capacitance to carry it | |
vdsq |
V | optional (off) | Drain voltage of the test that gave qgd | |
lcs |
H | 0 | Source inductance shared by gate and power loops; dynamic level only | |
lg |
H | 0 | Gate loop inductance of the driver, gate trace and return, less lcs; dynamic level only |
Parameter descriptions are in English in both languages.
Use for: Converter legs · Synchronous rectifiers · Inverter legs
Not for: High-voltage high-current legs → igbt · Switches without a body diode → idealSwitch
Formulas
| Formula | Equation | Source |
|---|---|---|
| Conduction loss | P = ron·Irms² | Mohan, Undeland & Robbins, Power Electronics, 3rd ed. (2003), ch. 2 (on-state power loss) |
| Switching loss | P = ½·V·I·(tr + tf)·fs | Mohan, Undeland & Robbins, Power Electronics, 3rd ed. (2003), ch. 2 (switching power loss with linearized transitions) |
| Total loss | P = Pcond + Psw | Mohan, Undeland & Robbins, Power Electronics, 3rd ed. (2003), ch. 2 |
Quick check
Inputs:
id: Drain current (switched and rms) = 10 Aron: On resistance = 10m Ω,ronvds: Blocking voltage = 48 Vtsw: Rise plus fall time = 40n sfs: Switching frequency = 100k Hz
Outputs:
pcond: Conduction loss =ron*id^2Wpsw: Switching loss =0.5*vds*id*tsw*fsWptot: Total loss =pcond + pswW
Model logic
- At the default level ideal a gate above 0.5 makes the channel the resistor ron in both directions with no drop; the switch changes at once.
- With the gate low it blocks through roff, but the body diode turns on once v(s) - v(d) exceeds vf, through the same ron.
- qrr and trr give the body diode a stored-charge reverse recovery; eon and eoff only add to the loss report and do not shape the edges.
- Level dynamic charges the gate through rgon and rgoff and follows vth, the capacitances and the Miller plateau; tech gan removes the body diode.
Model
With the gate above 0.5, the channel is a resistor ron in both directions with no drop. With the gate low, the part blocks through roff, but the body diode conducts from s to d once v(s) - v(d) exceeds vf. qrr and trr give the body diode its reverse recovery, coss and cj add capacitances across the part, and ls adds a series inductance. At the default level ideal the gate is a logic level, so threshold voltage, gate charge and the linear region are not modelled. Set level to dynamic for real edges: a gate driver (von, voff, rgon, rgoff) charges the gate, the channel follows the gate above vth, and the device capacitances (ciss, crss and coss or their tables, or a library device with gate data) set the Miller plateau, the dv/dt and the switching loss. That level needs a variable step, or a fixed step well below the gate time constant. Set tech to gan for a GaN HEMT: it has no body diode and no reverse recovery, and with the gate off the channel itself conducts from s to d once v(s) - v(d) exceeds vth - voff, so a negative turn-off voltage raises the reverse drop and the dead-time loss. tech ganCascode keeps the body diode and recovery of a cascode's silicon MOSFET.
Common mistakes
- The two MOSFETs of a leg on together short the supply. Add dead time between the gate signals, and expect the body diode to conduct during it.
- An unconnected gate keeps the channel off, but the body diode still conducts, so the part then acts as a rectifier. The simulator warns about the open gate.
- ron defaults to 10 mohm, which is only an example value. Take it from the datasheet at your gate voltage and hot junction.
- A GaN gate tolerates only a few volts, and the 15 V default drive of the dynamic level destroys it. Take vgsMax and vgsMin from the datasheet's maximum ratings, and turn it off below 0 V when a fast drain edge could lift the gate past vth through the Miller capacitance.
Problems rules: shoot-through, param.out_of_range, device.rating, gate.overvoltage, gate.false_turn_on
Datasheet and sources
ron comes from RDS(on) at your gate voltage and temperature, and tc from how much it rises with temperature. vf is the body-diode drop, coss the output capacitance and qrr the body-diode recovery charge, and eon and eoff come from the switching-energy table with its test voltage vref and current iref. vgsMax and vgsMin are the gate-source maximum ratings; for a GaN HEMT vth is VGS(th), and its reverse drop is the source-drain voltage curve at your turn-off gate voltage.
Example
Open the example with the command file.openExample and the name demo:mosfet.
Generated by cargo xtask reference from the usage texts and parameter specs. Do not edit by hand.