• Practice
  • About 15 min
  • 5 practice questions

Semiconductors, diodes and logic gates

Distinguish n-type and p-type semiconductors, explain a p-n junction diode as a rectifier, and read the truth tables of basic logic gates.

If something looks wrong, please tell us.

Every phone, computer and LED lamp is built from semiconductors. You need the basic physics of how they conduct, how a diode works, and how logic gates turn inputs into outputs.

Semiconductors

  • Semiconductors (silicon, germanium) have conductivity between conductors and insulators, and it increases with temperature.
  • Doping with a pentavalent atom (arsenic, phosphorus) gives an n-type semiconductor (extra electrons).
  • Doping with a trivalent atom (boron, aluminium) gives a p-type semiconductor (holes).
  • A p-n junction diode conducts when forward biased (p to positive terminal) and blocks current when reverse biased.
  • A diode is used as a rectifier to turn AC into DC. An LED emits light when forward biased.

Logic gates

Truth table (A, B are inputs; 1 = high, 0 = low)
ABANDORNANDNOR
000011
010110
100110
111100

The NOT gate inverts its single input (0 becomes 1, 1 becomes 0). NAND and NOR are called universal gates because any other gate can be built from either one.

Worked examples

Example 1. Silicon doped with phosphorus: phosphorus has 5 valence electrons, so the result is an n-type semiconductor.

Example 2. A diode in series with a resistor is connected to an AC source. Only the half-cycle that forward biases the diode passes, so the output across the resistor is a pulsating DC (half-wave rectification).

Example 3. For inputs A = 1 and B = 0: AND gives 0, OR gives 1, NAND gives 1, NOR gives 0.

Example 4. Joining the two inputs of a NAND gate together gives a NOT gate: with A = B, the output is NOT A.

Forward bias: conducts. Reverse bias: blocks. n-type: extra electrons. p-type: holes. Gate outputs: AND needs both inputs high; OR needs at least one; NAND and NOR are the inverses.

— Remember

Key takeaways

  • Doping controls the type of conduction in a semiconductor.
  • A diode conducts only in forward bias.
  • Memorise the AND, OR, NAND and NOR truth tables.

Check your understanding

  1. 1. Silicon is doped with arsenic. What kind of semiconductor is formed?

    1. p-type, with holes
    2. An intrinsic semiconductor
    3. An insulator
    4. n-type, with extra electrons
    Show answer

    Answer: D. Arsenic is pentavalent (5 valence electrons), so each atom adds an extra electron: an n-type semiconductor.

  2. 2. When is a p-n junction diode forward biased?

    1. When the n side is connected to the positive terminal
    2. When the p side is connected to the positive terminal of the battery
    3. When no battery is connected
    4. When both sides are connected to the positive terminal
    Show answer

    Answer: B. Forward bias means p to positive and n to negative; the diode then conducts. The reverse connection blocks current.

  3. 3. Which logic gate gives an output of 1 only when both inputs are 1?

    1. AND
    2. OR
    3. NAND
    4. NOR
    Show answer

    Answer: A. From the truth table, AND is 1 only for inputs 1 and 1. OR is 1 when at least one input is 1; NAND and NOR give 0 for inputs 1 and 1.

  4. 4. A single diode in series with a resistor is connected to an AC source. What is the output across the resistor?

    1. Smooth AC of twice the frequency
    2. No output at all
    3. AC with both halves of each cycle
    4. Pulsating DC from only one half of each cycle
    Show answer

    Answer: D. The diode conducts only in the half-cycle that forward biases it, so the output is a pulsating DC: half-wave rectification.

  5. 5. What happens to the conductivity of a semiconductor when it is heated?

    1. It decreases, as in a metal
    2. It stays exactly the same
    3. It increases, because more charge carriers are freed
    4. It becomes zero
    Show answer

    Answer: C. Heating frees more electrons (and holes), so a semiconductor conducts better as its temperature rises.

Sign in to keep track of the lessons you finish.

Next lesson → X-rays, lasers and mass-energy

Privacy · Terms · Refunds · Delivery