15 Semiconductors: Doping and Diode Behaviour
15.1 Start With the Decision
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 is part 1 of 2. Continue with Semiconductors: Fabrication and Switching Devices.
15.3 Part Objectives
- Explain n-type and p-type doping with charge carriers.
- Relate junction voltage to diode current and use.
15.4 Start Simple
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
- 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 logic-level MOSFETs with Vgs(th) below your MCU GPIO voltage (3.3V or 5V) and verify Rds(on) at that gate voltage
- Calculate MOSFET power dissipation using P = I²×Rds(on) at actual gate voltage and determine if heatsinking is required
- 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 Why This Chapter Matters
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
- 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.
- 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
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:
- Silicon (Si) - 95% of all semiconductors
- Germanium (Ge) - Historical use, now rare
- Gallium Arsenide (GaAs) - High-frequency applications
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.
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 ~ atoms/cm³ but only ~ free carriers/cm³ at room temperature (300K).
N-type doping with phosphorus (1 in 10⁶ atoms):
This increases free carrier concentration by a factor of ~, roughly 3 million times more than intrinsic silicon!
Carrier mobility determines switching speed. In silicon at 300K:
- Electron mobility:
- Hole mobility:
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):
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.
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.
Checkpoint: Doping
You now know:
- Silicon dominates real devices (95% of all semiconductors), but pure semiconductors conduct poorly at room temperature.
- 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
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 Type | Valence Electrons | Result |
|---|---|---|
| Silicon atom | 4 | Normal semiconductor lattice |
| Phosphorus dopant | 5 | One 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 Type | Valence Electrons | Result |
|---|---|---|
| Silicon atom | 4 | Normal semiconductor lattice |
| Boron dopant | 3 | One missing electron creates a mobile hole |
Properties:
- Majority carriers: Holes (+)
- Minority carriers: Electrons (-)
- Holes act as positive charge carriers
The running circuit argument reaches Figure 15.3, where n-type vs P-type semiconductor energy band diagram showing electron and hole distributions can be inspected directly before p-type (positive) proceeds.
First identify N-Type vs P-Type Semiconductors in Figure 15.3, then contrast it with N-Type Semiconductor and test the claim beside Band Gap. These visible labels explain n-type vs P-type semiconductor energy band diagram showing electron and hole distributions. They keep p-type (positive) tied to evidence that can be inspected on the schematic, part, or trace.
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.
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:
-
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
-
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
-
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. Using Schottky diodes in 5V supplies recovers 8% efficiency compared to silicon diodes.
Before applying the specification, inspect the real power mosfet (to-220 package) below: its package, terminals, scale, and installation context are part of the engineering evidence.
Carry those visible constraints into the surrounding analysis; the abstract symbol or capability name does not capture mounting, wiring, protection, or service access.
Checkpoint: 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.9.4 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.
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.
Use the diagram in Figure 15.5 to ground transistor types overview: it shows internal structure of NPN and PNP bipolar junction transistors showing semiconductor layer arrangement rather than leaving the relationship implicit.
At BJT Transistor Structure, Figure 15.5 states one side of the design; NPN Transistor introduces the next state or component, and p-type names the consequence. The visual shows internal structure of NPN and PNP bipolar junction transistors showing semiconductor layer arrangement. The running transistor types overview narrative uses that consequence to decide what is safe and measurable.
Inspect this evidence before proceeding: a reliable transistor types overview starts by viewing Figure 15.6; it identifies BJT transistor diode model showing NPN and PNP as two back-to-back PN junctions with schematic symbols for the calculation or selection that follows.
In Figure 15.6, BJT Model with Two Diodes is a junction mnemonic, not a claim that two discrete diodes form a working transistor. Compare the n-type regions in the NPN stack with the reversed layering under PNP Transistor, then match each stack to its schematic arrow direction. The model helps predict junction polarity while the shared thin base region explains why transistor action requires more than two independent junctions.
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.
To connect the component details to transistor types overview, look closely at Figure 15.7, which sets out MOSFET internal structure showing gate oxide, source, drain, and channel.
Figure 15.7 places N-Channel FET: Structure and Symbol beside drain and qualifies the relationship with source. Read together, the labels demonstrate MOSFET internal structure showing gate oxide, source, drain, and channel. The chapter carries that evidence into transistor types overview so the selection rests on circuit behaviour rather than appearance.
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.
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.10 Continue to the Next Part
Carry this evidence into Semiconductors: Fabrication and Switching Devices, which begins with How ICs Are Actually Made.
