Chapters

15 Semiconductors: Doping and Diode Behaviour

electronics-controller-design
doping
diodes

15.1 Start With the Decision

This section: Start With the Decision — A diode works because added atoms shape which charge carriers can move.

A diode works because added atoms shape which charge carriers can move. That material change creates the junction and its one-way behaviour.

15.2 Route Overview

This section: Route Overview — This is part 1 of 2.

This is part 1 of 2. Continue with Semiconductors: Fabrication and Switching Devices.

15.3 Part Objectives

This section: Part Objectives

  • Explain n-type and p-type doping with charge carriers.
  • Relate junction voltage to diode current and use.

15.4 Start Simple

This section: Start Simple — A microcontroller is a small computer built for direct control.

Choose the Switch From the Real Load

A microcontroller is a small computer built for direct control. General Purpose Input Output (GPIO) is a pin it can read or drive. Picture that pin turning a motor on through an electronic switch. The pin can signal the change, but it cannot safely supply the motor current.

Start with the load voltage, running current, start-up current, direction, and heat limit. Then choose a diode or switch that is fully on at the actual control voltage. Add a safe path for stored energy when a coil turns off.

Measure the control pin, voltage across the switch, load current, and part temperature. Test start, stop, a stalled load, reversed supply, and a reset. A part name or headline rating is not proof that it will be safe in this circuit.

The simple one-way picture has limits. Real parts leak, warm, switch over time, and have exact rated conditions. The deeper sections explain material, junctions, and device curves so the practical choice stays tied to measured limits.

Imagine current allowed through a part in one direction but blocked in the other. Doping creates the P-N junction that makes that behavior useful for rectifiers, clamps, LEDs, and protection paths. Start with the direction of current, the voltage needed to turn the junction on, and the reverse condition the circuit must survive.

15.5 Learning Objectives

This section: Learning Objectives

  • Distinguish N-type (excess electrons) from P-type (holes) semiconductors and explain how doping concentration determines conductivity
  • Explain PN junction behavior in forward bias (depletion narrows, current flows) and reverse bias (depletion widens, current blocked) using carrier physics
  • Contrast BJT (current-controlled, continuous base drive) against MOSFET (voltage-controlled, near-zero gate current) switching behavior for IoT load control
  • Select a logic-level MOSFET whose data sheet specifies RDS(on) at the controller’s actual gate-to-source drive; check load current, voltage drop, power, and temperature at that drive. Do not use VGS(th) as proof of full turn-on.
  • Calculate MOSFET power dissipation using P = I²×Rds(on) at actual gate voltage and determine if heatsinking is required
In 60 Seconds

Doping transforms pure silicon into useful N-type (extra electrons) or P-type (missing electrons) semiconductors. Combining these creates PN junctions — the basis of diodes (one-way current valves) and transistors (electronic switches) that power every IoT microcontroller, sensor, and radio module.

How to Use the Key Concepts
  • Semiconductor Doping: Intentionally adding impurity atoms to pure silicon to create excess electrons (N-type, donor atoms like phosphorus) or electron holes (P-type, acceptor atoms like boron), dramatically increasing conductivity and enabling transistor and diode fabrication
  • P-N Junction: The interface between P-type and N-type semiconductor regions; free electrons from the N-region combine with holes from the P-region to form a depletion zone with an internal electric field; this built-in potential is approximately 0.6-0.7 V for silicon
  • Forward Bias: Applying positive voltage to the P-side and negative to the N-side reduces the depletion zone and allows current to flow; silicon diode conducts when applied voltage exceeds approximately 0.6-0.7 V; current increases exponentially above this threshold
  • Reverse Bias: Applying negative voltage to the P-side widens the depletion zone and blocks current flow (only tiny leakage current); this is the ‘off’ state of a diode — high resistance, minimal current, fundamental to rectifier and protection circuits
  • Zener Diode: Operates in controlled reverse breakdown at a specific voltage (Zener voltage, typically 2.4-75 V); maintains constant output voltage across a range of currents; used as voltage references and protection circuits
  • Schottky Diode: A metal-semiconductor junction diode with lower forward voltage (0.2-0.4 V vs. 0.6-0.7 V for silicon PN) and faster switching speed; used in RF circuits, high-frequency power supplies, and as flyback protection diodes where low voltage drop matters
  • LED (Light Emitting Diode): A P-N junction where recombining electron-hole pairs release energy as photons; forward voltage and photon wavelength depend on semiconductor material: red (~1.8-2.0 V), green (~2.0-2.5 V), blue/white (~3.0-3.5 V)
  • Diode I-V Characteristic: The exponential relationship between current and voltage in a diode: I = Is x (e^(V/nVT) - 1) where Is is reverse saturation current, n is ideality factor (1-2), and VT is thermal voltage (~26 mV at 25 C); explains why diodes have a sharp turn-on voltage threshold

Semiconductors are materials that sit between conductors (like copper wire that lets electricity flow freely) and insulators (like rubber that blocks it completely). By adding tiny amounts of other elements (called “doping”), engineers can make semiconductors conduct in controllable ways. A diode is the simplest semiconductor device — it acts like a one-way valve that lets electricity flow in only one direction, much like a turnstile that only lets people through one way.

15.6 Learning Objectives and Motivation

This section: Learning Objectives and Motivation — Follow these connections in order: This is the chapter that explains why modern electronics work at all.

Follow these connections in order: This is the chapter that explains why modern electronics work at all. Without it, diodes and transistors can feel like magic parts with arbitrary rules. In real projects, this knowledge shows up whenever you choose a protection diode, interpret an LED forward voltage, or decide whether a MOSFET will really turn on from a 3.3 V GPIO pin. You do not need to become a semiconductor physicist, but you do need enough mental model to stop copying circuits blindly.

15.7 How To Use This Chapter

This section: How To Use This Chapter

  • Read it in two passes if needed. First understand the big ideas: doping creates controllable materials, PN junctions create one-way behavior, and that one-way behavior becomes useful devices.
  • Use the deeper formulas and carrier-physics details as support, not as the first thing to memorize.
  • As you read, keep asking: how does this explain a real IoT part I already know, such as an LED, a reverse-polarity diode, or a transistor switch.
Chapter Roadmap
  • Start Simple
  • In 60 Seconds
  • Key Concepts
  • For Beginners: Semiconductors and Diodes
  • Why This Chapter Matters
  • How To Use This Chapter
  • Semiconductor Foundations
  • Atomic Structure
  • Deep dive: Putting Numbers to It
  • Doping Calculator
  • Checkpoint: Doping
  • N-type and P-type Semiconductors
  • Diode Forward and Reverse Bias
  • Phoebe’s Field Notes: Where the Diode Equation Comes From
  • Checkpoint: Junctions and Bias

15.8 Semiconductor Foundations

This section: Semiconductor Foundations — Stop one on the roadmap: the raw material.

~20 min | Intermediate | P06.C05.U02

Stop one on the roadmap: the raw material. Before anything can conduct on command, we need a material that can be persuaded to conduct — and pure silicon, on its own, is surprisingly bad at the job.

15.8.1 Pure Semiconductors

Common Materials:

Pure semiconductors aren’t very useful because they don’t conduct well at room temperature.

The next selection should be grounded in Figure 15.1. Look for the labels that establish simplified silicon shell model.

Simplified silicon atom with 14 electrons arranged as 2 in the first shell, 8 in the second shell and 4 highlighted valence electrons in the third shell; the nucleus is labelled as containing 14 protons with a neutron count that varies by isotope.
Figure 15.1: Simplified silicon shell model

In the visual Figure 15.1, Simplified Silicon Atom establishes one fact and 2nd shell another; Z = 14 connects them to the operating case. The diagram is showing simplified silicon shell model. That connection advances the section’s running technical explanation.

A simplified silicon shell model helps explain why four outer-shell electrons matter for bonding and why donor or acceptor dopants change the available charge carriers.

Doping concentration determines semiconductor conductivity. Pure silicon has ~5×10225 \times 10^{22} atoms/cm³ but only ~1.5×10101.5 \times 10^{10} free carriers/cm³ at room temperature (300K).

N-type doping with phosphorus (1 in 10⁶ atoms):

n=5×1022106=5×1016 free electrons/cm3n = \frac{5 \times 10^{22}}{10^6} = 5 \times 10^{16} \text{ free electrons/cm}^3

This increases free carrier concentration by a factor of ~5×10161.5×1010≈3×106\frac{5 \times 10^{16}}{1.5 \times 10^{10}} \approx 3 \times 10^{6}, roughly 3 million times more than intrinsic silicon!

Carrier mobility determines switching speed. In silicon at 300K:

  • Electron mobility: μn=1400 cm2/(V⋅s)\mu_n = 1400 \text{ cm}^2/(V \cdot s)
  • Hole mobility: μp=450 cm2/(V⋅s)\mu_p = 450 \text{ cm}^2/(V \cdot s)

N-type semiconductors switch 3× faster than P-type because electrons have higher mobility — this is why NMOS transistors are preferred for high-speed digital logic.

Depletion width in a PN junction with 1V reverse bias (the potential that matters is the total across the junction, V=Vbi+VR≈0.7+1=1.7V = V_{bi} + V_R \approx 0.7 + 1 = 1.7 V):

W=2ϵVq(1NA+1ND)≈0.1μm to 1μmW = \sqrt{\frac{2\epsilon V}{q} \left(\frac{1}{N_A} + \frac{1}{N_D}\right)} \approx 0.1\mu m \text{ to } 1\mu m

This microscopic insulating region prevents current flow in reverse bias, enabling diode rectification.

Adjust the doping ratio to see how many free carriers are created and the conductivity improvement factor over intrinsic silicon.

15.8.2 Doping: Creating Useful Semiconductors

We just saw that pure silicon barely conducts. The fix is deliberate contamination — and it is the single most important trick in all of electronics.

Doping = Adding impurities (dopants) to semiconductors to control conductivity

Inspect Figure 15.2 with Each silicon atom shares 4 electrons and Conducts poorly until doped in mind. Look at how it presents semiconductor Doping Process: Creating N-Type and P-Type Materials before applying doping: creating useful semiconductors.

Semiconductor doping diagram showing pure silicon, N-type doping with phosphorus creating an extra free electron, and P-type doping with boron creating a hole, illustrating how dopants transform silicon into useful conductors for transistors and diodes in IoT systems.
Figure 15.2: Semiconductor Doping Process: Creating N-Type and P-Type Materials

Follow the diagram in Figure 15.2 from Each silicon atom shares 4 electrons under Semiconductor Doping Process. That stable lattice explains the neighbouring statement Conducts poorly until doped; donor and acceptor additions then create majority carriers without turning silicon into an ordinary metal. The progression supplies the material basis for the diode and transistor behaviour that follows, including why polarity and junction bias matter.

Voltage Vera, Electronics measurement and prototyping expertCheckpoint: Doping

You now know:

  • Silicon dominates integrated-circuit substrates, while intrinsic silicon conducts poorly at room temperature compared with the chapter’s doped example.
  • Doping means intentionally adding impurity atoms to control conductivity.
  • Even a tiny dose works: about 1 dopant per million silicon atoms raises the free-carrier count roughly 3 million times over pure silicon.

15.9 N-type and P-type Semiconductors

This section: N-type and P-type Semiconductors — Doping creates extra charge carriers — but which kind of carrier you get depends entirely on which element you add.

~20 min | Intermediate | P06.C05.U03

Doping creates extra charge carriers — but which kind of carrier you get depends entirely on which element you add. That one choice splits the semiconductor world into two families.

15.9.1 N-type (Negative)

Doping: Add elements with extra electrons (e.g., Phosphorus)

Result: Excess of free electrons (negative charge carriers)

Atom TypeValence ElectronsResult
Silicon atom4Normal semiconductor lattice
Phosphorus dopant5One extra electron becomes available for conduction

Properties:

  • Majority carriers: Electrons (-)
  • Minority carriers: Holes (+)
  • Better conductivity than pure silicon

15.9.2 P-type (Positive)

Doping: Add elements with fewer electrons (e.g., Boron)

Result: Deficit of electrons creates “holes” (positive charge carriers)

Atom TypeValence ElectronsResult
Silicon atom4Normal semiconductor lattice
Boron dopant3One missing electron creates a mobile hole

Properties:

  • Majority carriers: Holes (+)
  • Minority carriers: Electrons (-)
  • Holes act as positive charge carriers

Inspect Figure 15.3 and ask how one dopant atom changes the majority charge carrier in silicon.

Comparison of phosphorus-doped N-type silicon and boron-doped P-type silicon using valence counts, energy bands, and majority carriers.
Figure 15.3: Donor and acceptor dopants create different majority carriers while the semiconductor band structure remains visible.

Read Figure 15.3 from the dopant to the band view. Silicon supplies four outer electrons. Phosphorus supplies five, so $5-4=1$ extra electron remains for each new atom. Electrons are thus the main carriers in N-type material. Boron supplies three outer electrons. Its missing electron acts as a moving hole, so holes lead in P-type material. The band, gap, and valence panels show one base material, not two unrelated ones. The dopant sets which carrier leads. That choice changes how the later junction can conduct.

15.9.3 How It Works: PN Junction and Diode Bias

On their own, N-type and P-type are just two flavors of doped silicon. The interesting behavior appears the moment you join them into a single crystal.

15.10 Diode Forward and Reverse Bias

The big picture: A PN junction diode conducts current easily in one direction (forward bias) but blocks it in the reverse direction, acting as an electronic one-way valve controlled by voltage polarity.

Step-by-step breakdown:

  1. Forward Bias (Conducting): Connect P-side to positive voltage, N-side to ground, reducing depletion zone width from 500nm to ~10nm, allowing electron flow across junction with only 0.7V voltage drop - Real example: 1N4007 diode passing 1A forward current drops 0.9V, dissipating 0.9W as heat

  2. Reverse Bias (Blocking): Connect N-side to positive, P-side to ground, expanding depletion zone to 5-10um, creating insulating barrier that blocks current with only <1uA leakage - Real example: Same 1N4007 diode blocking 12V reverse voltage passes only 0.5uA leakage current, negligible 0.006mW power loss

  3. Breakdown (Destructive): Exceed reverse voltage rating (1000V for 1N4007), causing avalanche effect where electric field tears electrons free, creating runaway current that generates heat until junction melts - Real example: Applying 1200V reverse voltage to 1N4007 rated for 1000V causes catastrophic failure within milliseconds

Why this matters: Forward voltage drop (0.7V silicon, 0.3V Schottky) wastes power in rectifiers and protection circuits. In the chapter’s assumed 5 V series-diode example, replacing a 0.7 V silicon drop with a 0.3 V Schottky drop recovers 0.4 V, or 8% of the supply voltage; end-to-end efficiency depends on the full circuit.

Hands-on lab · 25 min · Falstad CircuitJS

Diode forward and reverse conduction

I have explained diode polarity; now compare forward and reverse current in the circuit simulator.

Open the lab

The mathematical gist. A silicon junction has thermal voltage (V_T=kT/q), and its forward-current ratio changes as (e^{\Delta V/V_T}). At 300 K, (V_T=25.85) mV, so one decade of current needs (V_T\ln 10=59.5) mV and a 120 mV rise multiplies ideal current by about 104.

Read the math banner as a bridge from the junction equation to the physical knee seen on a bench trace. Thermal voltage sets the exponential scale, and the decade calculation translates that scale into a change a learner can recognize on a semilog current plot. The linked lesson then separates the ideal model from series resistance, leakage, temperature, and device variation. This placement matters because the equation should guide a measurement rather than become a memorized forward-voltage constant. Record temperature, current range, and device type whenever the model is used to explain an observed diode drop.

Math Bridge · guided foundationsWhy does a silicon diode look as if it has a knee?Read the linked diagram with Eddie to connect temperature, thermal voltage, and current decades.

This section: — Inspect Figure 15.9 as a real power MOSFET in a TO-220 package below.

Inspect Figure 15.9 as a real power MOSFET in a TO-220 package below.

Real photograph of power mosfet (to-220 package)
Figure 15.9: This real example (Epson Stylus S22 - Advanced Power AP03N70I-A on Power adapter-2743) shows a physical form of power mosfet (to-220 package). Use the visible package, interfaces, scale, mounting, and surrounding context as evidence; a catalogue label alone does not establish deployment fit. Photo: Raimond Spekking; CC BY-SA 4.0

Read Figure 15.9 from the three leads to the tab and surrounding power-board context. The package makes heat removal, lead spacing, mounting, and service access visible, but a photograph cannot identify the pin order, isolation of the tab, voltage rating, current rating, or switching loss. Those claims require the exact marking and datasheet. The image therefore connects semiconductor theory to a physical selection check: confirm identity and pinout, calculate the operating and fault stresses, plan the thermal path, and verify creepage and attachment before substituting a device merely because it shares the TO-220 outline.

Voltage Vera, Electronics measurement and prototyping expertCheckpoint: Junctions and Bias

You now know:

  • N-type material (phosphorus, 5 valence electrons) carries current with electrons; P-type material (boron, 3 valence electrons) carries it with holes.
  • Forward bias shrinks the depletion zone and a silicon diode conducts with about a 0.7 V drop; reverse bias widens the zone and blocks current except for tiny leakage (<1 uA).
  • Exceeding the reverse voltage rating (1000 V for a 1N4007) causes destructive avalanche breakdown.

15.10.1 Transistor Types Overview

We just turned one junction into a one-way valve. The obvious next question: what happens with two junctions back to back? That is a transistor — a switch one circuit can operate on behalf of another.

Understanding the different transistor families helps you select the right component for IoT applications:

Bring the visual evidence in Figure 15.4 into transistor types overview. Its purpose is to reveal transistor Types Taxonomy: BJT vs FET Architectures and Applications before a design claim is accepted.

Transistor taxonomy diagram showing two main families: BJT (Bipolar Junction Transistor) with NPN and PNP types for current-controlled amplification and switching, and FET (Field Effect Transistor) with JFET and MOSFET types for voltage-controlled switching in IoT sensor and actuator circuits.
Figure 15.4: Transistor Types Taxonomy: BJT vs FET Architectures and Applications

In Figure 15.4, Transistor Types: BJT vs FET Architectures establishes the first electrical role, while BJT (Bipolar Junction) marks the contrasting role and NPN supplies the operating detail. Those labels show transistor Types Taxonomy: BJT vs FET Architectures and Applications. This connects the visual to transistor types overview by making the relevant component behaviour part of the design check.

Inspect Figure 15.5 and ask which semiconductor layer is shared by the two PN junctions in each transistor.

NPN and PNP transistor stacks showing collector, base, emitter, layer order, and the two PN junctions that share the base.
Figure 15.5: NPN and PNP bipolar transistors reverse the layer order while retaining collector, base, emitter, and two shared-base junctions.

Read Figure 15.5 from the NPN stack to the PNP stack. NPN places a thin P-type base between N-type collector and emitter regions, forming two PN junctions that share the base. PNP reverses every layer: its N-type base lies between P-type collector and emitter regions. The terminal names remain in the same order, so the structural comparison isolates the polarity change rather than suggesting a different three-terminal function. This layer view prepares the later circuit discussion. A small base condition controls the collector-emitter path because the two junctions interact through a shared region, which is why a BJT cannot be reduced to two unrelated diodes.

Inspect Figure 15.6 and look for where the useful two-junction mnemonic stops short of a complete transistor model.

NPN and PNP layer stacks compared with shared-base two-junction mnemonics and their transistor schematic symbols.
Figure 15.6: The shared-base junction mnemonic links NPN and PNP layer order to their schematic direction without equating a transistor to two separate diodes.

Read Figure 15.6 across each row from layer order to junction mnemonic and schematic symbol. For NPN, the N-type collector and emitter sit on either side of the shared P-type base; PNP reverses those materials. Joining the two junction symbols at the common base helps a learner reason about their polarity, and the final transistor symbol preserves the corresponding current direction. The key boundary appears at the shared base: two discrete diodes do not reproduce carrier transport through that thin region. The figure therefore supports junction checks and symbol recognition, while the chapter must still use transistor behavior—base drive, gain, saturation, and ratings—for a switching decision.

The BJT can be understood as two PN junctions sharing a common middle layer (base). In an NPN transistor, a small base current allows a much larger collector-emitter current to flow, providing current amplification essential for sensor signal conditioning and motor driver circuits.

Inspect Figure 15.7 and ask how an insulated gate can control the drain-source path without steady gate current.

MOSFET structure showing source, drain, channel, insulated gate oxide, circuit symbol, and gate-voltage control of drain-source current.
Figure 15.7: An N-channel MOSFET pairs its insulated-gate structure with the circuit symbol and the gate-voltage control principle.

Read Figure 15.7 from the cross-section to the N-channel symbol. Source and drain form the ends of the current path. Oxide keeps the gate apart from that path. This gap gives the input high resistance. Gate voltage can change how well the channel conducts without the steady input current of a BJT base. The next panel links this field effect to drain-source current. The sketch does not set a real part’s threshold or load limit. For that, check gate voltage, on-resistance, current, heat, and switch conditions in the data sheet.

MOSFETs control drain-source current through gate voltage without significant gate current, making them ideal for microcontroller-driven switching. The insulated gate oxide provides high input impedance, allowing direct connection to GPIO pins for logic-level MOSFETs.

Inspect Figure 15.8 with Flywheel and Lamp in mind. Look at how it presents n-channel MOSFET low-side switching circuit for IoT load control before applying transistor types overview.

Circuit diagram showing N-channel MOSFET used as low-side switch with gate connected to microcontroller GPIO through optional resistor, drain connected to load positive, source connected to ground, and flyback diode across inductive load
Figure 15.8: N-channel MOSFET low-side switching circuit for IoT load control

The diagram makes the reading specific: Figure 15.8 distinguishes FET as a Switch Circuit from Flywheel, then adds Lamp as the detail that changes the circuit interpretation. This makes n-channel MOSFET low-side switching circuit for IoT load control visible. It connects to transistor types overview by identifying the evidence a practitioner should retain.

15.11 Continue to the Next Part

This section: Continue to the Next Part — Carry this evidence into Semiconductors: Fabrication and Switching Devices, which begins with How ICs Are Actually Made.

Carry this evidence into Semiconductors: Fabrication and Switching Devices, which begins with How ICs Are Actually Made.

Find help

3 reviewed answers.

Where should I start in a module?

Open the module page from the sidebar to see its chapters in order. Use the module map to return to a topic you need.

Modules and paths

Reviewed

What can I try when a project does not work?

Check the symptom, then work through the diagnostic steps. Keep the error message and the smallest example that reproduces it.

When you are stuck

Reviewed

How do interactive examples work?

Use the interactive guide to check how examples and simulations work before changing your project.

Interactive examples guide

Reviewed