Transistors: BJT & MOSFET
The active devices at the heart of every amplifier, logic gate, and integrated circuit.
Bipolar Junction Transistor (BJT)
A BJT consists of two back-to-back PN junctions — either NPN or PNP. In an NPN transistor a thin p-type base separates the n-type emitter and collector. The base current controls a much larger collector current.
E-B forward biased, C-B reverse biased. \( I_C = \beta I_B \). Amplification is possible here.
Both junctions forward biased. \( V_{CE} \approx 0.2 \) V. Transistor acts as closed switch.
Both junctions reverse biased. \( I_C \approx 0 \). Transistor acts as open switch.
The current gain \( \beta \) (also written \( h_{FE} \)) relates collector to base current:
The Ebers-Moll model captures all regions with two coupled diode equations. In the active region it reduces to:
The factor \( (1 + V_{CE}/V_A) \) represents the Early effect: the slight increase in \( I_C \)with \( V_{CE} \) due to base-width modulation, characterised by Early voltage \( V_A \approx 50\text{–}200 \) V.
MOSFET: Metal-Oxide-Semiconductor FET
The MOSFET is a voltage-controlled device. In an NMOS transistor, a positive gate voltage creates an inversion layer (channel) between the n-type source and drain, allowing current to flow.
MOSFET Operating Regions
No channel. \( I_D = 0 \). Gate voltage insufficient to invert the substrate.
Channel present end-to-end. Acts as a voltage-controlled resistor:
Channel is pinched off. Current is controlled by \( V_{GS} \) alone:
where \( V_{ov} = V_{GS} - V_{th} \) is the overdrive voltage and \( K = \mu_n C_{ox} W/L \)is the process transconductance parameter (\( \mu_n \): electron mobility, \( C_{ox} \): gate capacitance per unit area).
CMOS Inverter
Complementary MOS (CMOS) logic pairs an NMOS and PMOS transistor. In a CMOS inverter:
- When \( V_{in} = V_{DD} \): NMOS ON, PMOS OFF → \( V_{out} = 0 \)
- When \( V_{in} = 0 \): NMOS OFF, PMOS ON → \( V_{out} = V_{DD} \)
At no time are both transistors fully ON simultaneously, so static power consumption is nearly zero — the key advantage of CMOS over older NMOS-only logic families.
Small-Signal Models
For AC analysis around a DC bias point, both BJT and MOSFET are linearised. The MOSFET small-signal model introduces the transconductance \( g_m \) and output resistance \( r_o \):
Python: BJT, MOSFET & CMOS Inverter
Plot BJT collector characteristics (with Early effect) for several base currents, NMOS output characteristics showing the triode/saturation boundary, and the CMOS inverter voltage transfer curve with switching point \( V_M \).
BJT Collector Curves, NMOS Output Characteristics & CMOS Inverter
PythonClick Run to execute the Python code
Code will be executed with Python 3 on the server