Voltecx is in beta. The macOS build comes first; Windows and Linux packages are still being tested.Beta. macOS comes first; Windows and Linux are still in testing. What's new
Documentation

NPN Transistor (npn)

A bipolar transistor where a small base current controls a larger collector current.

npn

Component reference · 繁體中文

Group: Switches · Kind: {"kind":"npn"}

When to use it

Use it for base-driven switches, gate drivers, current sources and linear stages. For gate-driven power switching, use IGBT or MOSFET.

Pins

Pin Domain Meaning
c electrical Collector; collector current flows in
b electrical Base; a small current in controls the part
e electrical Emitter; base and collector current leave here

Common parameters

  • bf: Current gain in normal use (Default: 100)
  • vbeOn: Base-emitter voltage when it turns on (Default: 0.7)
  • vceSat: Collector-emitter voltage when fully on (Default: 0.2)
  • ron: Resistance of each junction when on (Default: 10m)

Parameters

Key Unit Default Typical range Description
bf — 100 Current gain in normal use
br — 1 Current gain when used backwards
vbeOn V 0.7 Base-emitter voltage when it turns on
vceSat V 0.2 Collector-emitter voltage when fully on
ron Ω 10m Resistance of each junction when on
roff Ω 10g Resistance of each junction when off
rb Ω 0 Resistance in series with the base
rbm Ω optional (off) Base resistance at high current, where rb falls to; rb when not set; Gummel–Poon level only
irb A 0 Base current where rb falls halfway to rbm; 0 to follow the base charge instead; Gummel–Poon level only
rc Ω 0 Resistance in series with the collector
re Ω 0 Resistance in series with the emitter
level — pwl Transistor model; pwl is the fast piecewise-linear model (bf, br, vbeOn, vceSat, ron, roff), gp the SPICE Gummel–Poon model of vendor models (is, bf, br, nf, nr, vaf, var, ikf, ikr, ise, ne, isc, nc, temperature, junction capacitances and transit times)
is A 1e-16 Transport saturation current; Gummel–Poon level only
nf — 1 Forward emission coefficient; Gummel–Poon level only
nr — 1 Reverse emission coefficient; Gummel–Poon level only
vaf V 0 Forward Early voltage; how much the collector current grows with the collector voltage; 0 for none; Gummel–Poon level only
var V 0 Reverse Early voltage; 0 for none; Gummel–Poon level only
ikf A 0 High-current corner of the forward gain; the collector current where the gain starts to fall; 0 for none; Gummel–Poon level only
ikr A 0 High-current corner of the reverse gain; 0 for none; Gummel–Poon level only
ise A 0 Base-emitter leakage saturation current; lowers the gain at small currents; Gummel–Poon level only
ne — 1.5 Base-emitter leakage emission coefficient; Gummel–Poon level only
isc A 0 Base-collector leakage saturation current; Gummel–Poon level only
nc — 2 Base-collector leakage emission coefficient; Gummel–Poon level only
xtb — 0 Temperature exponent of the current gains; Gummel–Poon level only
eg eV 1.11 Energy gap for the temperature effect on is; Gummel–Poon level only
xti — 3 Temperature exponent of is; Gummel–Poon level only
tnom °C 27 Temperature the model's values belong to; Gummel–Poon level only
cje F 0 Base-emitter zero-bias depletion capacitance; Gummel–Poon level only
vje V 0.75 Base-emitter built-in potential; Gummel–Poon level only
mje — 0.33 Base-emitter grading coefficient; Gummel–Poon level only
cjc F 0 Base-collector zero-bias depletion capacitance; Gummel–Poon level only
vjc V 0.75 Base-collector built-in potential; Gummel–Poon level only
mjc — 0.33 Base-collector grading coefficient; Gummel–Poon level only
xcjc — 1 Base-collector capacitance share inside rb; the rest is at the base pin, outside rb; Gummel–Poon level only
fc — 0.5 Forward-bias depletion capacitance coefficient; Gummel–Poon level only
tf s 0 Forward transit time; the charge stored while it conducts; Gummel–Poon level only
xtf — 0 Bias coefficient of the forward transit time; Gummel–Poon level only
vtf V 0 Collector voltage scale of the transit time; how fast xtf's effect grows with the base-collector voltage; 0 for none; Gummel–Poon level only
itf A 0 Current where the transit time starts to grow; Gummel–Poon level only
tr s 0 Reverse transit time; the charge stored in saturation, which sets the turn-off delay; Gummel–Poon level only
temp °C 27 Device temperature the model is evaluated at; Gummel–Poon level only
kf — 0 Flicker (1/f) noise coefficient of the base current, for the noise analysis; 0 for none; Gummel–Poon level only
af — 1 Flicker noise exponent of the base current; Gummel–Poon level only
part — optional (off) Part number; the catalogue part number, such as XAL8080-123MEC or 2 × XAL8080-123MEC for two in series; information only, not simulated

Parameter descriptions are in English in both languages.

Use for: Base-driven switches · Gate driver stages · Current sources · Linear stages

Not for: High-side switching → pnp · Gate-driven power switching → mosfet

Formulas

Formula Equation Source
Base current Ib = (Vdrv − vbeOn)/Rb Sedra & Smith, Microelectronic Circuits, 7th ed. (2015), ch. 6 (BJT circuits at DC)
Largest active-mode collector current Ic = bf·Ib Sedra & Smith, Microelectronic Circuits, 7th ed. (2015), ch. 6 (active mode, Ic = β·Ib)
Overdrive factor k = bf·Ib/Ic(load) Sedra & Smith, Microelectronic Circuits, 7th ed. (2015), ch. 6 (saturation mode and forced β)

Quick check

Inputs:

  • vdrv: Base drive voltage = 5 V
  • rbase: Base resistance = 1k Ω
  • vbeOn: Base-emitter on voltage = 700m V, vbeOn
  • bf: Current gain = 100 —, bf
  • iload: Collector current the load needs = 200m A

Outputs:

  • ib: Base current = (vdrv - vbeOn)/rbase A
  • icmax: Largest collector current = bf*ib A
  • overdrive: Overdrive (above 1 saturates) = bf*ib/iload —

Model logic

  • It is piecewise-linear Ebers-Moll: two junction diodes with drop vbeOn and resistance ron, and a source c to e of bf times the base-emitter current.
  • When the circuit cannot take bf·Ib, the base-collector junction (drop vbeOn - vceSat) turns on and holds VCE near vceSat.
  • The junction states are settled by iteration within each step, one flip at a time if they cycle; an off junction is roff, 10 Gohm by default.
  • There is no exponential law, no charge storage, no Early effect and no switching time; i(name) is the collector current.

Model

Piecewise-linear Ebers-Moll. The base-emitter junction is a diode with drop vbeOn and resistance ron, and the base-collector junction is a diode with drop vbeOn - vceSat. A source from c to e carries bf times the base-emitter current minus br times the base-collector current. In the active region IC = bf * IB. When the circuit cannot supply that much, the base-collector junction turns on and holds VCE at vceSat. rb, rc and re add series resistances, and i(name) is the collector current. There is no exponential law, charge storage or Early effect.

Common mistakes

  • Without a base resistor, a voltage source on the base sees only ron and drives a very large base current. Always feed the base through a resistor or a current source.
  • Switching speed is not modelled, so turn-off is instant. Losses are counted only in the two junctions, so the collector-emitter heat of a linear stage is not in the loss report.

Datasheet and sources

bf is hFE at your collector current, vbeOn is VBE(on), and vceSat is VCE(sat) at your forced gain. ron comes from the slope of the VBE curve, and SPICE models give BF and BR directly.

Example

Open the example with the command file.openExample and the name demo:npn.


Generated by cargo xtask reference from the usage texts and parameter specs. Do not edit by hand.