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

PNP Transistor (pnp)

The NPN Transistor with every current and voltage reversed.

pnp

Component reference · 繁體中文

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

When to use it

Use it for high-side switches, current mirrors and stages that pair with an NPN Transistor.

Pins

Pin Domain Meaning
c electrical Collector; collector current flows out
b electrical Base; current flows out when the emitter is higher
e electrical Emitter; base and collector current flow in

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: High-side switches · Current mirrors · Complementary push-pull stages

Not for: Low-side switching → npn · Gate-voltage-driven high-side switches → pmos

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: Emitter to drive-low voltage = 5 V
  • rbase: Base resistance = 1k Ω
  • vbeOn: Emitter-base 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 the npn model mirrored: the emitter-base junction conducts through ron once v(e) - v(b) exceeds vbeOn.
  • A source from e to c carries bf times the emitter-base current; when the circuit cannot take it, the collector-base junction (drop vbeOn - vceSat) holds VEC near vceSat.
  • The parameters are magnitudes, and i(name) is the current into c, so it is negative while the part conducts.
  • There is no exponential law, no charge storage, no Early effect and no switching time.

Model

The npn model mirrored. The emitter-base junction conducts when v(e) - v(b) exceeds vbeOn, the source carries bf times that current from e to c, and saturation holds VEC at vceSat. The parameters are magnitudes, so the same values serve both types.

Common mistakes

  • A PNP switch turns off only when the base is pulled up to the emitter level. A base driven to 0 V while the emitter sits at the supply keeps it fully on.
  • Do not enter negative values for vbeOn or vceSat, because the part type sets the signs. i(name) is the collector current, which is negative because it flows out of c.

Datasheet and sources

Take bf from hFE, vbeOn from VBE(on) and vceSat from VCE(sat), all as magnitudes. SPICE models give BF and BR directly.

Example

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


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