📘 CodingMarble Learn

Semiconductors and the p-n Junction Diode

A semiconductor has a small energy gap (about 1 eV), so a little heat frees some electrons. Pure silicon is intrinsic (electrons = holes). Adding a 5-valence atom makes n-type; a 3-valence atom makes p-type. Joining p and n makes a junction with a depletion layer and a barrier (about 0.7 V for Si). The diode conducts in forward bias, almost not in reverse bias, so it can change AC into one-way DC (rectifier).

🎬 Step-by-step story

  1. Look at three materials. Blue box = valence band (electrons are held). Orange box = conduction band (electrons can move). The gap between them decides everything.
  2. This is pure silicon. Each grey ball is an atom joined to its neighbours. Heat breaks a few bonds. Each break makes one free electron and one hole. Count them: always equal.
  3. Now we add one outside atom (doping). Phosphorus brings an extra electron: n-type. Boron is one electron short, so it leaves a hole: p-type.
  4. Join p-type and n-type. Electrons and holes near the border meet and cancel. A thin empty strip is left: the depletion layer. Its fixed ions make a barrier of about 0.7 V.
  5. Connect a battery with p to plus. The strip gets thinner. After about 0.7 V current shoots up. Turn it round (reverse bias): the strip gets wider and almost no current flows.
  6. One-way door at work: the rectifier. AC goes in, the diode lets only one direction through. Try half-wave and full-wave, and drag the bias slider to play.

Tip: drag the 3D scene to turn it. Use two fingers to zoom.

🤔 Common doubts, cleared

Why does a semiconductor conduct better when hot, but a metal conducts worse?

In a semiconductor, heat pushes more electrons across the gap, so carriers increase. A metal already has plenty of free electrons; heat only makes atoms shake more and block them.

Is a hole a real particle?

No. It is an empty place in a bond. When a neighbouring electron fills it, the empty place moves the other way, so it acts like a positive charge.

If n-type has extra electrons, why is it not negative?

Each extra electron came with a phosphorus atom that has one extra proton too. Charges balance.

Why does diffusion stop? Why don't all electrons cross?

The fixed ions in the depletion layer create a field that pushes electrons back. Soon the push back equals the spreading, and it balances.

Why is there almost no current until 0.7 V?

The battery must first cancel the barrier. Only after that can majority carriers cross in large numbers.

Why does any current flow in reverse bias?

Minority carriers (few holes in n, few electrons in p) are helped by the field. There are very few of them, so the current is tiny.

Why is the output of a rectifier not steady DC?

It is one-way but still rises and falls with the AC. A capacitor filter fills in the dips.

Energy bands in solids (qualitative)

In one atom, an electron can have only some fixed energies (levels). In a solid, crores of atoms sit close together. Their levels spread into wide bands.

Three kinds of solids

Heating a semiconductor gives more electrons the energy to jump, so its resistance falls with temperature. A metal behaves the opposite way.

Intrinsic semiconductor

Intrinsic means pure. In pure Si or Ge each atom has 4 outer electrons and shares them with 4 neighbours (covalent bonds).

Heat breaks a bond. The electron becomes free. The empty place it leaves is a hole. A hole acts like a positive charge, because a nearby electron can jump into it, and then the hole seems to move the other way.

Free electrons and holes are always made in pairs, so ne = nh = ni (ni = intrinsic carrier concentration). Total current = electron current + hole current.

Extrinsic semiconductor: n-type and p-type

Doping = adding a very small amount (about 1 atom in a million) of another element. The result is an extrinsic semiconductor. It conducts much better than pure silicon.

n-type

Add a pentavalent atom (5 outer electrons: P, As, Sb). Four electrons make bonds; the fifth is loosely held and becomes free easily. The dopant is called a donor. Majority carriers = electrons; minority carriers = holes.

p-type

Add a trivalent atom (3 outer electrons: B, Al, In, Ga). One bond is left incomplete: a hole. The dopant is called an acceptor. Majority carriers = holes; minority carriers = electrons.

Key rule

In any semiconductor at a steady temperature, ne × nh = ni². More electrons means fewer holes.

Important: an n-type or p-type crystal is still electrically neutral. Each extra electron came with its own atom.

Formation of a p-n junction

A p-n junction is one crystal with p-type on one side and n-type on the other.

  1. Diffusion: n side has many electrons, p side has many holes. Each spreads to where there are fewer. Electrons cross to p, holes cross to n.
  2. They meet and cancel. Near the border only fixed ions remain: negative ions on the p side, positive ions on the n side.
  3. This thin carrier-free strip is the depletion layer (about a micrometre thick).
  4. The fixed ions make an electric field from n to p. It pushes back further diffusion and causes a drift current the other way.
  5. When diffusion current = drift current, the junction is in balance. The p.d. across the layer is the barrier potential: about 0.7 V for Si, 0.3 V for Ge.

Diode I-V characteristics: forward and reverse bias

A diode is a p-n junction with two leads. Symbol: an arrow (p side, anode) touching a bar (n side, cathode). The arrow shows the easy current direction.

Forward bias

p to +, n to −. The battery pushes against the barrier, so the depletion layer gets thinner and the barrier falls to (V0 − V). Below the threshold (knee) voltage (≈ 0.7 V Si) the current is tiny. Above it, current rises very fast (milliamperes).

Reverse bias

p to −, n to +. The barrier rises to (V0 + V) and the layer gets wider. Only minority carriers cross: a tiny, almost constant reverse saturation current (microamperes). At a large reverse voltage, breakdown happens and current rises suddenly.

The graph

The I-V curve is not a straight line, so a diode is non-ohmic. Dynamic resistance rd = ΔV / ΔI, read from the slope near a point. It is small in forward bias and very large in reverse bias.

Try it (practical): in the 3D at step 5, drag the bias slider from 0 to 1 V slowly and watch the red dot climb the I-V curve; then drag to −3 V and see the current almost vanish. At home with a multimeter on diode mode: red probe on the anode shows about 0.6–0.7; swap probes and it shows OL.

Diode as a rectifier

Rectification = changing AC (direction flips) into DC (one direction). The diode is a one-way door, so it can do it.

Half-wave rectifier

One diode in series with the load. In the positive half the diode is forward biased and current flows; in the negative half it is reverse biased and nothing flows. Output = only the positive halves. Output ripple frequency = input frequency (50 Hz). Half the energy is wasted.

Full-wave rectifier (centre-tap)

A centre-tapped transformer and two diodes. In one half D1 conducts, in the other half D2 conducts; both send current through the load in the same direction. Output = all humps upward. Ripple frequency = 2 × input = 100 Hz.

Filter

The output is one-way but bumpy (pulsating DC). A capacitor across the load charges at each peak and slowly gives charge in the gaps, so the output becomes almost steady.

Key formulas and definitions

Worked examples

1. Pure silicon at 300 K has n_i = 1.5 × 10¹⁶ m⁻³. How many holes per m³ does it have?

Step 1: Pure means intrinsic, so n_h = n_e. Step 2: n_h = n_i = 1.5 × 10¹⁶ m⁻³.

2. Silicon (n_i = 1.5 × 10¹⁶ m⁻³) is doped with arsenic so that n_e = 5 × 10²² m⁻³. Find n_h. Is it n-type or p-type?

Step 1: Use n_e × n_h = n_i². Step 2: n_h = (1.5 × 10¹⁶)² / (5 × 10²²) = 2.25 × 10³² / 5 × 10²² = 4.5 × 10⁹ m⁻³. Step 3: Electrons ≫ holes, and arsenic has 5 outer electrons, so it is n-type.

3. A Si diode (knee 0.7 V) is in series with a 200 Ω resistor and a 5 V battery, forward biased. Find the current.

Step 1: The diode takes about 0.7 V. Step 2: Voltage left for the resistor = 5 − 0.7 = 4.3 V. Step 3: I = 4.3 / 200 = 0.0215 A = 21.5 mA.

4. The same circuit, but the diode is turned round (reverse bias). Find the current roughly.

Step 1: Reverse bias: only a tiny reverse saturation current (microamperes). Step 2: So I ≈ 0 (a few µA). The resistor gets almost no voltage; the full 5 V is across the diode.

5. On a diode's forward curve, voltage rises from 0.70 V to 0.72 V and current rises from 10 mA to 20 mA. Find the dynamic resistance.

Step 1: ΔV = 0.72 − 0.70 = 0.02 V. Step 2: ΔI = 20 − 10 = 10 mA = 0.01 A. Step 3: r_d = ΔV / ΔI = 0.02 / 0.01 = 2 Ω.

6. In reverse bias the voltage changes from 10 V to 20 V and the current changes from 1 µA to 1.5 µA. Find the dynamic resistance.

Step 1: ΔV = 10 V; ΔI = 0.5 µA = 5 × 10⁻⁷ A. Step 2: r_d = 10 / (5 × 10⁻⁷) = 2 × 10⁷ Ω = 20 MΩ. Step 3: Compare: forward r_d was a few ohms. That huge difference is why a diode works as a one-way door.

7. Input AC is 50 Hz. What is the output ripple frequency of (a) a half-wave and (b) a full-wave rectifier?

Step 1: Half-wave passes one hump per cycle: 50 Hz. Step 2: Full-wave passes two humps per cycle: 2 × 50 = 100 Hz.

8. A semiconductor has Eg = 2.0 eV. Can light of wavelength 700 nm free electrons across the gap?

Step 1: Photon energy E = 1240 / λ(nm) eV = 1240 / 700 ≈ 1.77 eV. Step 2: 1.77 eV < 2.0 eV, so the photon is too weak. Step 3: No. Light shorter than 1240/2 = 620 nm is needed.

Common mistakes

Practice quiz

1. In a semiconductor the energy gap is about:
2. Silicon doped with boron becomes:
3. The depletion layer contains:
4. In forward bias the depletion layer:
5. For 50 Hz input, the full-wave rectifier output ripple frequency is:

Practice: answer these yourself

Type or choose your answer, then press Check. Use a hint if you are stuck; the full solution appears after you answer.

Frequently asked questions

What is a p-n junction in simple words?

It is one piece of semiconductor with p-type on one side and n-type on the other. At the border a thin barrier forms, which lets current go easily only one way.

What is the knee voltage of a silicon diode?

About 0.7 V. Below it the forward current is tiny; above it the current rises very fast. For germanium it is about 0.3 V.

Is a diode ohmic?

No. Its V-I graph is curved and depends on direction, so V/I is not constant.

Where this is taught

PolandLiceum ogólnokształcące, klasa IIIElectric current
RomaniaClasa a XII-aSemiconductors and electronics
Ukraine11 класElectrodynamics
Ukraine11 класElectrodynamics
CBSE (India)Class 12Electronic Devices
England (GCSE, A level)Year 133.13 Electronics
Japan高校(専門学科)1〜3年Electrical Theory
Japan高校(専門学科)1〜3年Electronic Technology
Japan高校(専門学科)1〜3年Electronic Circuits
South Korea고등학교 1학년Matter and regularity
South Korea고등학교 2학년Electromagnetic interaction
South Korea고등학교 2학년Light and matter
South Korea고등학교 3학년ICT and new materials
South Korea고등학교 3학년Matter and electromagnetic fields
South Korea고등학교 3학년Electromagnetic fields
Germany (Bavaria)Jahrgangsstufe 10Profile area (science-technology school)
Russia10 классCurrent in various media
Russia10 классElectrodynamics: direct current

Learn first

Related lessons

All Physics lessons