- 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
| A | B | AND | OR | NAND | NOR |
|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 1 | 1 |
| 0 | 1 | 0 | 1 | 1 | 0 |
| 1 | 0 | 0 | 1 | 1 | 0 |
| 1 | 1 | 1 | 1 | 0 | 0 |
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.
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. Silicon is doped with arsenic. What kind of semiconductor is formed?
- p-type, with holes
- An intrinsic semiconductor
- An insulator
- 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. When is a p-n junction diode forward biased?
- When the n side is connected to the positive terminal
- When the p side is connected to the positive terminal of the battery
- When no battery is connected
- 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. Which logic gate gives an output of 1 only when both inputs are 1?
- AND
- OR
- NAND
- 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. A single diode in series with a resistor is connected to an AC source. What is the output across the resistor?
- Smooth AC of twice the frequency
- No output at all
- AC with both halves of each cycle
- 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. What happens to the conductivity of a semiconductor when it is heated?
- It decreases, as in a metal
- It stays exactly the same
- It increases, because more charge carriers are freed
- 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.