14.3 Electronics: p-n Junction, Rectifiers, Transistors, Op-Amps & Logic Gates
Key Takeaways
A p-n junction forms a depletion region with a barrier potential of about 0.7 V for silicon and 0.3 V for germanium; it conducts when forward biased and blocks (apart from a tiny leakage current) when reverse biased.
A half-wave rectifier uses one diode and passes alternate half-cycles; a full-wave bridge rectifier uses four diodes so both half-cycles drive current the same way through the load, and a capacitor smooths the output.
In a transistor and the current gain is ; for amplification the base–emitter junction is forward biased and the collector–base junction reverse biased.
An ideal op-amp has very high open-loop gain and input resistance; the inverting amplifier gain is and the non-inverting gain is .
NAND and NOR gates are universal: any logic function can be built from either one alone, and the NAND output is 0 only when all inputs are 1.
Electronics: p-n Junction, Rectifiers, Transistors, Op-Amps & Logic Gates
Electronics builds directly on the n-type and p-type semiconductors introduced in Section 14.2. Most questions test either a definition (biasing, majority carriers, gate outputs) or a short calculation (transistor currents, amplifier gain), so clarity on the basic rules is enough to score well.
1. The p-n Junction
When p-type and n-type material are joined, electrons diffuse from the n-side into the p-side and holes diffuse the other way. They recombine near the boundary, leaving a thin depletion region of fixed ions (negative on the p-side, positive on the n-side) with no free carriers. The resulting electric field creates a potential barrier:
- about for silicon
- about for germanium
Biasing
| Bias | Connection | Depletion region | Current |
|---|---|---|---|
| Forward | p-side to positive terminal | Narrows | Large current once the applied voltage exceeds the barrier |
| Reverse | p-side to negative terminal | Widens | Very small leakage current from minority carriers |
The diode's I–V curve is therefore highly non-linear: almost no current below about 0.7 V (Si) in forward bias, then a steep rise. A very large reverse voltage causes breakdown.
2. Rectification
A rectifier converts AC into DC.
- Half-wave rectifier: one diode in series with the load conducts only during the half-cycles that forward-bias it; the other half-cycles are cut off. Output is pulsating DC at the supply frequency.
- Full-wave bridge rectifier: four diodes arranged in a bridge. In each half-cycle, two diodes conduct and route the current through the load in the same direction. The output pulses at twice the supply frequency (100 Hz from 50 Hz mains).
- Smoothing: a capacitor connected across the load charges near each peak and discharges slowly between peaks, reducing the ripple.
3. Special-Purpose Diodes
| Device | Principle | Use |
|---|---|---|
| Light-emitting diode (LED) | Forward-biased; electrons and holes recombine and emit photons. Colour depends on the band gap of the material (for example gallium arsenide phosphide) | Indicators, displays, lighting |
| Photodiode | Reverse-biased; light creates electron–hole pairs that increase the reverse current | Light detection, optical communication, counters |
| Photovoltaic (solar) cell | Unbiased junction; light creates carriers that are separated by the junction field, producing an emf | Solar panels, calculators |
4. The Transistor
A bipolar junction transistor (BJT) is a thin, lightly doped base sandwiched between an emitter (heavily doped) and a collector (moderately doped, largest). It may be npn or pnp; in the circuit symbol the arrow on the emitter points in the direction of conventional current.
Currents
Because the base is thin and lightly doped, most carriers from the emitter cross into the collector, so is only a small fraction of and is typically 50 to a few hundred.
Example: with and , and .
Transistor as an Amplifier
For amplification, the base–emitter junction is forward biased and the collector–base junction is reverse biased. In the common-emitter amplifier, a small change in base current produces a large change in collector current; the voltage across the collector load resistor changes correspondingly. The output voltage is inverted ( out of phase) relative to the input.
Transistor as a Switch
- Cut-off (OFF): base current is zero, collector current is (almost) zero, and the transistor behaves like an open switch.
- Saturation (ON): a large base current drives the collector current to its maximum, and the voltage across the transistor is very small, like a closed switch.
Switching circuits are used in automatic lighting (with a light-dependent resistor) and in digital electronics.
5. The Operational Amplifier (Op-Amp)
An op-amp is an integrated-circuit amplifier with an inverting input (), a non-inverting input () and one output. Its open-loop gain is very high (around or more), its input resistance is very high and its output resistance is low. Without feedback, the output is
and it saturates near the supply voltage for any appreciable difference between the inputs.
| Circuit | Feedback | Gain |
|---|---|---|
| Inverting amplifier | from output to input; input through | |
| Non-inverting amplifier | from output to input; from input to ground; signal at | |
| Comparator | No feedback | Output switches to or depending on which input is larger |
Example: an inverting amplifier with and has , so a 0.2 V input gives . A non-inverting amplifier with the same resistors has .
A comparator with a thermistor or light-dependent resistor in a voltage divider forms a night switch or temperature alarm: the output changes state when the sensor voltage crosses a reference.
6. Logic Gates
Digital circuits use two voltage levels, written 1 (high) and 0 (low).
| A | B | AND | OR | NAND | NOR | XOR | XNOR |
|---|---|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 |
| 0 | 1 | 0 | 1 | 1 | 0 | 1 | 0 |
| 1 | 0 | 0 | 1 | 1 | 0 | 1 | 0 |
| 1 | 1 | 1 | 1 | 0 | 0 | 0 | 1 |
The NOT gate (inverter) has one input and outputs its complement: .
| Gate | Boolean expression | Rule of thumb |
|---|---|---|
| AND | 1 only if all inputs are 1 | |
| OR | 1 if any input is 1 | |
| NAND | 0 only if all inputs are 1 | |
| NOR | 1 only if all inputs are 0 | |
| XOR | 1 if the inputs differ | |
| XNOR | 1 if the inputs are equal |
Universal gates: NAND alone (or NOR alone) can build every other gate. Joining both inputs of a NAND gate makes a NOT gate; a NAND followed by a NOT gives AND.
De Morgan's theorems for logic, and , mirror the set-theory laws in Section 2.1. Logic gates are used in alarms (for example, sounding if a door is open AND the system is armed), in arithmetic circuits and in computer memory.
In a common-emitter circuit the base current is and the collector current is . What are the current gain and the emitter current?
and
and
and
and
An op-amp is used as a non-inverting amplifier with and . What is the output voltage for an input of 0.3 V?
2.7 V
-2.7 V
3.0 V
-3.0 V
A two-input logic gate gives output 1 for every input combination except A = 1, B = 1, when its output is 0. Which gate is it?
NOR
XOR
AND
NAND
Sections you finish are checked off in the contents.