ExamSaathi learning library · Government exams · SSC CGL general awareness; published syllabus labelled 2024 · General awareness / General science: physics

Semiconductors: diodes, LEDs, solar cells, transistors and logic gates

Learn why semiconductors such as silicon sit between conductors and insulators, how doping makes n-type and p-type material, how a p-n junction diode, an LED and a solar cell work, and how transistors act as switches inside logic gates and chips.

Status: original pilot lesson. Teacher review is pending. It is not a complete course or official exam material.

You will learn to

Before you start

Electric current is the rate of flow of electric charge, driven through a material by a voltage. In metal wires the moving charges are electrons; in other materials holes or ions can carry the current. Metals such as copper conduct easily because they hold many electrons that are free to drift. Glass, rubber and dry wood hardly conduct at all, because their electrons remain bound within atoms or bonds rather than moving freely through the material. Current, resistance, Ohm's law and electrical power are taught in separate lessons; this one only uses power = voltage x current from there. Here the question is what happens in materials that sit between these two groups, and how that in-between behaviour gives us diodes, LEDs, solar cells, transistors and the chips inside phones and computers. All circuit figures in this lesson are invented values for practice.

Semiconductors and doping

Silicon and germanium are the best-known semiconductors. Each of their atoms has four outer (valence) electrons, shared in bonds with four neighbours. In the band picture, a bound electron in a semiconductor needs only a small energy to break free and carry current: about 1.1 eV in silicon and about 0.7 eV in germanium. An insulator such as diamond needs several eV, while a metal already has plenty of free electrons. Heat supplies this energy, so a pure (intrinsic) semiconductor conducts better as it gets warmer, the opposite of a metal. Each freed electron leaves a gap called a hole; a neighbouring electron can jump into it, so the hole moves through the crystal like a positive charge. Doping means adding a tiny, controlled amount of another element, which makes an extrinsic semiconductor. Atoms with five outer electrons, such as phosphorus or arsenic, give one spare electron each, making n-type material whose main carriers are electrons. Atoms with three outer electrons, such as boron, aluminium or gallium, leave a hole each, making p-type material whose main carriers are holes. A doped crystal is still electrically neutral as a whole.

The p-n junction diode and rectifiers

Join a p-type region to an n-type region in one crystal and you get a p-n junction. Near the boundary, free electrons from the n side cross over and fill holes on the p side. This leaves a thin depletion layer with almost no free carriers and a small built-in voltage barrier. A diode is a p-n junction with two leads. In forward bias the p side is connected to the positive terminal of the supply and the barrier shrinks. As the forward voltage across a silicon diode approaches roughly 0.6 to 0.7 V, its current rises steeply, so a resistor or other load is used to limit it. In reverse bias the p side goes to the negative terminal: the depletion layer widens and only a tiny leakage current flows, until a sufficiently high reverse voltage, whose value depends on the diode, causes breakdown. So a diode lets current pass easily one way and blocks it the other way. That is why diodes are used as rectifiers, which change alternating current (AC) from the mains into direct current (DC) for chargers and electronic circuits. One diode passes only half of each AC cycle (half-wave rectification), while a bridge of four diodes uses both halves (full-wave rectification).

LEDs, photodiodes and solar cells

Some diodes trade energy with light. In a light-emitting diode (LED), forward bias pushes electrons and holes together at the junction, and when a pair recombines the released energy can leave as light. The colour depends on the semiconductor used: a material with a wider energy gap gives light of higher energy, towards the blue end. LEDs turn more of their input energy into light and less into heat than filament bulbs, so they are used in lamps, torches, screens and indicator lights. A photodiode works the other way round. It is usually operated in reverse bias, and light falling on the junction frees extra electrons and holes, so the small reverse current grows with the brightness; light sensors and TV remote receivers use this. A solar (photovoltaic) cell is a large p-n junction with no supply connected. Sunlight frees electrons and holes, the built-in field of the junction drives them to opposite sides, and roughly 0.5 to 0.6 V appears across a working silicon cell. Cells joined in series add their voltages and cells in parallel add their currents, so many cells make a panel. Panels give direct current; an inverter changes it into alternating current for household use.

Transistors, logic gates and chips

A junction transistor has three layers, n-p-n or p-n-p, called the emitter, the base and the collector. In an n-p-n transistor a small current entering the thin middle layer, the base, controls a much larger collector current; in a p-n-p transistor the currents and polarities are reversed. The ratio of collector current to base current is the current gain, so a gain of 100 turns a 0.02 mA base current into a 2 mA collector current. Used this way the transistor is an amplifier, as in a microphone-to-loudspeaker circuit. In digital circuits the same device works as a fast on-off switch. Two voltage levels stand for 1 and 0, and whether an on transistor gives a 1 or a 0 at the output depends on how the circuit is wired; such switches are combined into logic gates. An AND gate gives 1 only when every input is 1. An OR gate gives 1 when at least one input is 1. A NOT gate turns 1 into 0 and 0 into 1. NAND (NOT AND) gives 0 only when every input is 1, and NOR (NOT OR) gives 1 only when every input is 0. Any other gate can be built from NAND gates alone, or from NOR gates alone, so these two are called universal gates. A truth table lists every input combination: a gate with k inputs needs 2^k rows. An integrated circuit, or chip, holds a huge number of transistors on one small piece of silicon; processors and memory chips are examples.

Common mistakes

Thinking n-type material carries a negative charge overall: its spare electrons are balanced by the positive charge of the donor atoms, so the crystal stays neutral, and the same holds for p-type material. Mixing up the dopants: five outer electrons (phosphorus, arsenic) give n-type, three (boron, aluminium, gallium) give p-type. Reversing the bias rule: forward bias means the p side goes to the positive terminal. Expecting a pure semiconductor to behave like a metal when heated, when in fact it conducts better as it warms. Thinking a solar cell stores energy like a battery: it converts light into electrical energy only while light falls on it. Confusing NAND with NOR: NAND gives 0 only when all inputs are 1, while NOR gives 1 only when all inputs are 0. Writing 2 x k instead of 2^k for the number of rows in a truth table.

A short routine

1. For a material, ask how many free carriers it has: very many (metal), almost none (insulator), or a few that increase with temperature (semiconductor). 2. For doping, count the outer electrons of the added atom: five gives n-type, three gives p-type. 3. For a diode, check where the p side is connected: to positive means forward bias and a large current, to negative means reverse bias and almost none. 4. Match each device to its job: rectifier diode for AC to DC, LED for light out, photodiode for sensing light, solar cell for electrical power from light, transistor for switching or amplifying. 5. For a logic circuit, list every input combination, work gate by gate from the inputs and write the output for each row. 6. For a solar panel, add the voltages of cells joined in series, then apply power = voltage x current from the electrical power lesson.

Worked examples

  1. A solar panel on a school roof in Jodhpur has 36 silicon cells joined in series. In bright sunlight each cell gives 0.5 V and the panel supplies a current of 6 A. Find the panel voltage and, using power = voltage x current, its power output.

    1. Step 1: In series the cell voltages add: 36 x 0.5 = 18 V.
    2. Step 2: The same 6 A flows through every cell in the chain, so the panel current is 6 A.
    3. Step 3: Power = voltage x current = 18 x 6 = 108 W.

    Answer: The panel gives 18 V and delivers 108 W in this sunlight.

  2. Inputs A and B feed a NAND gate. The NAND output and a third input C feed an AND gate, whose output Q switches on a warning LED. Find Q when A = 1, B = 1, C = 1, and when A = 1, B = 0, C = 1.

    1. Step 1: First case: A AND B = 1 AND 1 = 1, so the NAND gate gives NOT 1 = 0.
    2. Step 2: Q = 0 AND C = 0 AND 1 = 0, so the LED stays off.
    3. Step 3: Second case: A AND B = 1 AND 0 = 0, so the NAND gate gives NOT 0 = 1.
    4. Step 4: Q = 1 AND C = 1 AND 1 = 1, so the LED lights.

    Answer: Q = 0 (LED off) for A = 1, B = 1, C = 1, and Q = 1 (LED on) for A = 1, B = 0, C = 1.

Practice checks

  1. Which element, added in a tiny amount to pure silicon, makes an n-type semiconductor?
  2. Why can a diode be used to change AC into DC in a phone charger?
  3. A transistor has a current gain of 120. If its base current is 0.05 mA, what is its collector current?
  4. For which inputs does a two-input NOR gate give an output of 1?
  5. A solar panel has 48 identical cells joined in series, each giving 0.5 V in sunlight. What is the panel voltage?

Sources checked