Skip to content

← Grade 12 Physics

Semiconductor Devices

Unit 22 · CDC textbook pages 404–419

Hide the stories, facts, photos, activities and interactives, for revising before an exam
In this unit 8 sections
  1. 22.1 Formation of p–n junction
  2. 22.2 Biasing of p–n junction
  3. 22.3 Characteristics of a junction diode
  4. 22.4 Zener diode
  5. 22.5 Junction diode as rectifier
  6. 22.6 Logic gate
  7. 22.7 Truth table and Boolean expression
  8. Exercise

Look at the charger of your phone. Inside that small white box, 230 V of alternating current from the wall becomes a steady 5 V that always pushes the same way, and the phone counts the charge going in, switches the screen’s pixels and plays music, all with the same kind of part: a sandwich of two slightly different kinds of silicon. One sandwich lets current through one way only. Billions of them, switching on and off, can do arithmetic.

This unit is about the simplest of these devices. A p–n junction diode passes current one way and blocks it the other; a Zener diode holds a voltage steady; a few diodes together turn a.c. into d.c.; and diodes and transistors make logic gates, the switches that decide 1 or 0 in every computer.

Three men in suits at a laboratory bench with a microscope and equipment: John Bardeen and Walter Brattain standing, William Shockley seated
Figure 22.1 John Bardeen, William Shockley (seated) and Walter Brattain at Bell Laboratories in 1948, a few months after the first transistor worked. Photo: AT&T; photographer: Jack St. (last part of name not stamped well enough to read), New York, New York., Public domain

22.1 Formation of p–n junction

Have you ever wondered what happens when two kinds of silicon meet?

A crystal of silicon can be doped to make it one of two kinds (Grade 11, Unit 25). In p-type silicon (doped with a trivalent element such as boron), the current is carried mostly by holes, missing electrons that behave like positive charges: holes are its majority carriers. In n-type silicon (doped with a pentavalent element such as phosphorus), the majority carriers are free electrons. Both kinds are electrically neutral: each free electron has left behind a positive donor ion, each hole a negative acceptor ion.

When a p-type and an n-type region are made in one single crystal, side by side, the boundary between them is a p–n junction. The whole device is called a junction diode, or simply a junction. (It can’t be made by pressing two separate pieces together: the surfaces would never touch closely enough. The two regions are made by doping different parts of one crystal.)

Diffusion. Just after the junction forms, there are very many holes on the p side and very few on the n side, and very many free electrons on the n side and very few on the p side. Like ink spreading in water, carriers spread from where there are many to where there are few: holes diffuse from the p side into the n side, and electrons from the n side into the p side. When an electron meets a hole, it falls into it and the two vanish: they recombine.

The depletion layer. So a thin region on each side of the junction is left with almost no free carriers. It is called the depletion layer (it has been depleted, emptied, of carriers). It is very thin, between about 0.01 µm and 1 µm, the thinner the more heavily the silicon is doped.

−−−−++++−−++−−−−++++−−++−−−−++++−−++−−−−++++−−++fieldp-typen-typedepletion layer⊖ ⊕ fixed ions ○ hole ● free electron
Figure 22.2 A p–n junction. Electrons from the n side and holes from the p side have crossed and recombined, leaving the depletion layer: the fixed negative acceptor ions on the p side and positive donor ions on the n side, with no free carriers between them. Their electric field, from the n side to the p side, makes the potential barrier.

The potential barrier. The depletion layer isn’t neutral. The n side of it has lost electrons and is left with its fixed positive donor ions; the p side has lost holes and is left with its fixed negative acceptor ions. So the p side of the junction becomes slightly negative and the n side slightly positive. These charges make an electric field across the depletion layer, pointing from the n side to the p side. It pushes electrons back towards the n side and holes back towards the p side, so it opposes any more diffusion. Soon the two balance and diffusion stops.

The potential difference across the depletion layer that this field makes is the potential barrier (or barrier potential). It works like a small built-in voltage that a carrier must climb to cross. It is about 0.15–0.3 V for germanium and about 0.7 V for silicon, the exact value depending on how heavily the semiconductor is doped (and on its temperature).

In the depletion layer of a p–n junction:

Pick an answer to see why.

The electric field across the depletion layer points:

Pick an answer to see why.

22.2 Biasing of p–n junction

What happens when a battery is joined across the junction?

Applying a potential difference across a p–n junction to make it work is called biasing it. There are two ways round:

  • i.forward biasing
  • ii.reverse biasing

1. Forward bias

When the p side is connected to the positive terminal of a battery and the n side to the negative terminal, the junction is forward biased.

The battery’s positive terminal pushes the holes in the p side towards the junction, and its negative terminal pushes the electrons in the n side towards it. The battery’s voltage works against the barrier: the depletion layer becomes thinner and the barrier lower. Once the applied voltage is more than the barrier potential (0.7 V for silicon), the majority carriers, holes from the p side and electrons from the n side, cross the junction in large numbers. The current they carry is the forward current, and it grows quickly as the forward voltage is raised. A forward-biased diode has a low resistance.

2. Reverse bias

When the p side is connected to the negative terminal and the n side to the positive terminal, the junction is reverse biased.

Now the battery pulls the holes away from the junction towards its negative terminal, and the electrons away towards its positive terminal. The depletion layer becomes wider and the barrier higher, adding to the battery’s voltage. The majority carriers can’t cross, and the diode’s resistance is very high. A very small current still flows, carried by the few minority carriers (the few electrons on the p side and holes on the n side, made by heat), which the barrier’s field sweeps across. It is the reverse current, typically a few microamperes or less.

Notice that the barrier opposes the forward current (the majority carriers must climb it) but helps the reverse current (its field carries the minority carriers across).

Try it

A junction, forward and reverse

Choose forward or reverse bias, raise the voltage, and watch the depletion layer and the point on the diode’s graph.

+−p: holesn: electronsdepletion layer thin0.20.40.60.8600current (mA)volts
Bias
Current
0.15 mA
Depletion layer
0.5 × its width at 0 V

Forward bias, but below the knee: the battery has thinned the depletion layer, yet the carriers still can’t get over the barrier. Almost no current.

The symbol of a diode

A junction diode is drawn as a triangle against a bar (Figure 22.3). The triangle is the p side (the anode) and the bar the n side (the cathode). The triangle points the way conventional current (and holes) flows when the diode is forward biased; the electrons flow the other way. On a real diode, a band painted round one end marks the cathode.

junction diodeanodep sidecathoden sideZener diodeanodecathode
Figure 22.3 The symbols of a junction diode (left) and a Zener diode (right). The triangle is the p side, the anode; the bar the n side, the cathode, marked on a real diode by a painted band. Forward biased, conventional current flows the way the triangle points. A Zener diode’s bar has bent ends, like a flattened Z.

Which way round must a silicon diode be connected for it to conduct?

Pick an answer to see why.

22.3 Characteristics of a junction diode

How does the current through a diode change as the voltage across it is raised?

The graph of the current through a junction diode against the potential difference across it is called its characteristic (or I–V characteristic). It is plotted in two parts, forward and reverse, because the currents are so different: milliamperes forward, microamperes reverse.

Forward characteristics

The forward characteristic is the graph of the current against the forward bias voltage. The circuit is in Figure 22.4: a battery feeds a rheostat used as a potential divider, so the voltage across the diode can be raised from zero a little at a time; a voltmeter reads the voltage across the diode, and a milliammeter in series the current.

+−rheostat RhDVmAslidingcontact
Figure 22.4 Measuring a diode’s forward characteristic. The rheostat Rh, connected across the battery as a potential divider, sets the voltage V across the diode D, read by the voltmeter; the milliammeter reads the current. The p side (anode) of the diode is towards the positive terminal.

As the forward voltage is raised from zero, almost no current flows at first, because the carriers can’t yet get over the potential barrier. When the voltage reaches about the barrier, the knee voltage Vk V_k (about 0.7 V for silicon, 0.3 V for germanium at room temperature), the current begins to rise, and beyond the knee it rises very steeply (in fact exponentially: each extra 0.06 V multiplies it by about ten), so that a few tenths of a volt more give hundreds of milliamperes. In this part the diode’s resistance is low. If the forward voltage is pushed further, the current becomes so large that it heats the junction, and the diode is burnt out: that is why a diode in a circuit always has a resistance in series to limit its current.

0.20.40.60.8204060−10−20−30−20−40I (mA)V (V)V (V)I (µA)forwardreversekneebreakdownVB= 25 V
Figure 22.5 The I–V characteristic of a silicon diode. Forward (right): almost no current until the knee voltage, about 0.7 V, then a steep rise, in milliamperes. Reverse (left, a different scale): a tiny current of a few microamperes, nearly constant, until the breakdown voltage VB V_B , where the current suddenly shoots up.

Reverse characteristics

The reverse characteristic is the graph of the current against the reverse bias voltage. The circuit is the same with the diode turned round (p side to the negative terminal), and with a microammeter in place of the milliammeter, since the reverse current is so small; the voltmeter needs a much larger range (Figure 22.6). The diode’s resistance now is very high, about 10⁵ Ω or more.

+−rheostat RhDVµAslidingcontact
Figure 22.6 Measuring the reverse characteristic: the diode is turned round, so its n side is towards the positive terminal, and a microammeter (µA) reads the tiny current.

As the reverse voltage is raised, the reverse current, carried by minority carriers, is small and hardly changes: there are only so many minority carriers, and all of them are already being swept across. This nearly constant current is the reverse saturation current. But at a certain large reverse voltage the current suddenly rises sharply. This is breakdown, and the voltage at which it happens is the reverse breakdown voltage VB V_B (about 25 V in Figure 22.5; tens to hundreds of volts for ordinary diodes).

What happens at breakdown? In the very strong field of the wide depletion layer, the few minority carriers crossing it are accelerated so hard that they knock electrons out of the covalent bonds of the silicon atoms they hit. Those freed electrons are accelerated in turn and knock out more: the number of carriers grows like an avalanche, and so does the current (avalanche breakdown). In a heavily doped junction, with a very thin depletion layer, the field is so strong that it pulls electrons straight out of their bonds (Zener breakdown). Unless something limits the current, the large current at breakdown heats the junction and destroys an ordinary diode.

A silicon diode is reverse biased at 5 V. Raising the reverse voltage to 10 V (still well below breakdown):

Pick an answer to see why.

22.4 Zener diode

Can the breakdown that ruins an ordinary diode be put to good use?

A Zener diode is a specially made diode, heavily doped, designed to work in the breakdown region. Forward biased, it conducts like any diode. Reverse biased, it conducts too, once the reverse voltage exceeds a definite value, its Zener breakdown voltage VZ V_Z , and above that the voltage across it stays almost constant however much the current changes. Zener diodes are made with breakdown voltages from about 2 V to a few hundred volts (3.3 V, 5.1 V and 12 V are common).

0.20.40.60.8204060−2−4−6−8−20−40−60I (mA)V (V)V (V)I (mA)forwardreversekneeZenerVZ= 5.1 V
Figure 22.7 The characteristic of a Zener diode with VZ=5.1 V_Z = 5.1 V. Forward, it is like an ordinary diode. Reverse, it carries almost nothing until 5.1 V, then the current rises steeply while the voltage across it hardly changes: along the near-vertical line the voltage is held at VZ V_Z .

This is what a Zener diode is used for: keeping a voltage steady, voltage regulation. An electronic circuit that turns a varying d.c. input into a steady d.c. output is called a voltage regulator. In the simplest one (Figure 22.8), the Zener diode is connected reverse biased across the load, with a resistor R in series with the supply. If the input rises, more current flows through R and the Zener, the extra voltage drops across R, and the voltage across the Zener and the load stays at VZ V_Z . If the input falls (but stays above VZ V_Z ), the Zener takes less current, and again the output stays at VZ V_Z .

RVZRL+−varyinginputsteadyoutputreverse biased
Figure 22.8 A Zener diode as a voltage regulator. The Zener is reverse biased (its bar towards the positive side) across the load RL R_L . Whatever the varying input, as long as it is above VZ V_Z , the extra voltage drops across the series resistor R, and the load gets a steady VZ V_Z .

The symbol of a Zener diode (Figure 22.3) is a diode’s with the bar (the n side) bent at its ends, like a flattened letter Z.

Applications of diodes

Diodes are used:

  • a.as rectifiers, to turn a.c. into d.c. (Section 22.5);
  • b.as switches in logic circuits in computers (Section 22.7);
  • c.as Zener diodes, in voltage regulation;

and in many other ways: as light-emitting diodes (LEDs), which give out light when forward biased, as photodiodes and solar cells, which make a current when light falls on the junction, and to protect circuits from a battery put in the wrong way round.

22.5 Junction diode as rectifier

How does a phone charger turn the a.c. from the wall into d.c.?

An electronic device that converts a.c. power into d.c. power is called a rectifier, and the process is rectification.

Principle. A junction diode has a low resistance when forward biased and a very high resistance when reverse biased. An alternating e.m.f. reverses its direction every half cycle, so its two halves bias a diode in opposite directions: if the first half cycle biases it forward, the next biases it in reverse. A diode in an a.c. circuit therefore conducts only during alternate half cycles, those that bias it forward. Its current flows one way only.

Half-wave rectifier

The simplest rectifier is a single diode in series with the load resistance RL R_L , fed from the secondary of a transformer (Figure 22.9). During the half cycle that makes the diode’s anode positive, the diode conducts and the current flows through RL R_L ; during the other half, the diode is reverse biased and no current flows. The output is a series of half-waves, all in the same direction, with gaps between them: half-wave rectification. Half of the input’s energy is simply not used.

mainsDRLXYS1S2
Figure 22.9 A half-wave rectifier. The transformer steps the mains voltage down; the diode D conducts only in the half cycles that make its anode (the top of the secondary) positive, so current flows through the load RL R_L one way only, from X to Y.

Full-wave rectifier with two diodes (center-tap)

A full-wave rectifier uses both halves of the a.c. One way needs a transformer whose secondary has a connection at its middle, a center tap (Figure 22.10). Its two ends, S₁ and S₂, go through diodes D₁ and D₂ to the same end of the load; the center tap goes to the other end.

During one half cycle, S₁ is positive with respect to the center tap and S₂ negative: D₁ is forward biased and conducts, D₂ is reverse biased. During the next half cycle, S₂ is positive: D₂ conducts and D₁ is off. Either way, the current flows through the load in the same direction. Each diode works for half of each cycle, and the load gets a current in both halves. The drawback: the transformer needs a center tap, and each half of its secondary gives only half the voltage.

mainsD1D2RLXYS1S2center tap
Figure 22.10 A full-wave rectifier with two diodes and a center-tapped transformer. When S₁ is positive, D₁ conducts; when S₂ is positive, D₂ conducts. Either way the current flows through RL R_L from X to Y, towards the center tap.

Full-wave bridge rectifier

The usual full-wave rectifier, in almost every charger, uses four diodes D₁, D₂, D₃ and D₄ arranged like a Wheatstone bridge (Figure 22.11). Two opposite corners, A and C, are connected to the ends S₁ and S₂ of the transformer’s secondary; the other two corners, B and D, to the load resistance RL R_L . The transformer’s primary P is connected to the a.c. mains.

When the a.c. is applied to the primary, at some instant the positive half of the cycle makes A positive and C negative. Diodes D₁ and D₃ are forward biased and conduct, and the current flows along S₁ → A → D₁ → B → RL R_L → D → D₃ → C → S₂. Meanwhile D₂ and D₄ are reverse biased and don’t conduct.

During the next half cycle, A is negative and C positive. Now D₂ and D₄ conduct, and the current flows along S₂ → C → D₂ → B → RL R_L → D → D₄ → A → S₁, while D₁ and D₃ are off.

In both halves the current flows through RL R_L from B to D, in the same direction. So a d.c. output appears across RL R_L in both halves of the cycle: full-wave rectification (Figure 22.12), with no center tap needed.

mainsD1D2D3D4RLABCDS1S2
Figure 22.11 A bridge rectifier. The transformer’s secondary feeds the corners A and C of a bridge of four diodes; the load RL R_L joins the other two corners, B and D. When A is positive, D₁ and D₃ conduct; when C is positive, D₂ and D₄ conduct. Either way the current flows through RL R_L from B to D.
input (a.c.)output across RLtime00D₁, D₃D₂, D₄D₁, D₃D₂, D₄
Figure 22.12 The input and output of a bridge rectifier. The input (top) is the a.c. from the transformer. The output (bottom) is a hump in every half cycle, all positive: in the first half D₁ and D₃ conduct, in the second D₂ and D₄, and so on.

Pulsating d.c. and smoothing

The output of a rectifier flows one way only, but it isn’t steady: it rises from zero to a peak and falls back to zero 100 times a second (for 50 Hz mains, full wave). Such a current is called pulsating d.c. To smooth it, a large capacitor (a filter capacitor) is connected across the load. It charges up to the peak voltage during each hump, and between humps, when the rectifier’s output falls, it keeps the voltage up by discharging slowly through the load. What remains is a nearly steady voltage with a small ripple. A voltage regulator, such as a Zener diode, then removes the ripple altogether.

Try it

Turning a.c. into d.c.

Press Play and follow the red current. Then try the capacitor.

mainsD1D2D3D4RLABCDS1S2
120−12volts40 ms
Rectifier
Capacitor
Output
10.6 V

A is positive: D₁ and D₃ conduct, current flows B to D.

a.c. inRL
Figure 22.13 For Test yourself 22.3 ii: an a.c. input, four diodes and a load resistor, not yet connected.
step-downtransformerbridgerectifierfiltercapacitor5 Vregulator230 V12 Vpulsating d.c.ripplesteady 5 V to the phone
Figure 22.14 The charger’s circuit, in blocks: an enclosed step-down transformer, a bridge rectifier, a filter capacitor C, a 5 V regulator, and the load (the phone).

22.6 Logic gate

How can electricity make a decision?

A digital circuit that either lets a signal through or stops it is called a gate. It lets the signal through only when certain logical conditions are satisfied, so such circuits are called logic gates. In a logic gate every input and output is either a high voltage (1, for example 5 V) or a low one (0, near 0 V). Simple gates can be built from diodes (and resistors), but a gate that turns a 1 into a 0 needs a transistor, and the gates inside a computer are built entirely of transistors, billions of them on one chip.

Logic gates are the building blocks of digital systems such as computers, mobile phones and calculators. Each gate follows a definite logical relationship between its input and output voltages.

The basic logic gates are of three types:

  1. the OR gate
  2. the AND gate
  3. the NOT gate

Each is drawn with its own symbol, and what it does is given either by a truth table or by a Boolean expression.

OR gate: Y = A + BAND gate: Y = A·BNOT gate: Y = AABORYABY000011101111ABANDYABY000010100111AYAY0110
Figure 22.15 The symbols of the three basic gates, with their truth tables. OR: Y = A + B, 1 if either input is 1. AND: Y = A·B, 1 only if both are. NOT: Y = Aˉ \bar{A} , the opposite of its input.

22.7 Truth table and Boolean expression

Truth table

A truth table is a table showing all the possible combinations of the inputs of a logic gate (or circuit) and the output for each. It is also called a table of combinations. With two inputs there are 2 × 2 = 4 combinations; with three, 8; with n inputs, 2n 2^n . For example, the OR function:

A B A or B
0 0 0
0 1 1
1 0 1
1 1 1

Boolean algebra

George Boole, an English mathematician (1815–1864), invented an algebra of logical statements, which can only be true or false. Its variables are called Boolean variables: true is written 1 and false 0. These 1 and 0 are not numbers to be added in the ordinary way; they are names for the two values. In electronic circuits, 1 and 0 stand for the two states of a circuit: on and off, a high voltage and a low one.

In Boolean algebra:

  • the addition sign (+) means OR: A + B is read “A or B”;
  • the multiplication sign (· or ×) means AND: A·B is read “A and B”;
  • a bar over a variable means NOT: Aˉ \bar{A} is read “not A”.

So in Boolean algebra 1 + 1 = 1 (true or true is true), which is why the symbols must not be confused with arithmetic.

The OR gate (Y = A + B)

An OR gate is a logic gate whose output is 1 if any one or more of its inputs is 1.

Figure 22.16 shows a two-input OR gate made of two ideal diodes D₁ and D₂: A and B are the inputs, Y the output, and R the load resistor between Y and earth (0 V). Each input is either 0 V (0) or, say, 5 V (1).

  • Case I: A = 0, B = 0. Neither diode has a voltage to drive it, so no current flows through R, and the output is 0 V: Y = 0.
  • Case II: A = 1, B = 0. D₁ is forward biased and conducts, D₂ doesn’t. Current flows from A through D₁ and R to earth, and Y is at the input’s voltage: Y = 1.
  • Case III: A = 0, B = 1. D₂ conducts and D₁ doesn’t: Y = 1.
  • Case IV: A = 1, B = 1. Both diodes conduct: Y = 1.

Summarized as a truth table:

D1D2RABYoutput
Figure 22.16 A two-input OR gate made of two diodes. Each input, A or B, is joined through its own diode, pointing towards Y, to the output Y; the resistor R joins Y to earth.
A B Y = A + B
0 0 0
0 1 1
1 0 1
1 1 1

The AND gate (Y = A · B)

In an AND gate, the output is 1 only when every input is 1; a single 0 at any input makes it 0.

A two-input AND gate can also be made of two ideal diodes, turned the other way round (Figure 22.17): the output Y is joined through the resistor R to the + terminal of a 1 V (or 5 V) supply, and each diode’s anode is at Y, its cathode at an input. Each input is either 0 V (0) or the supply’s voltage (1).

  • Case I: A = 0, B = 0. Both diodes are forward biased: current flows from the supply through R and both diodes into the inputs at 0 V. Y is held at 0 V: Y = 0.
  • Case II: A = 1, B = 0. D₂ conducts and holds Y at B’s 0 V: Y = 0.
  • Case III: A = 0, B = 1. D₁ conducts and holds Y at 0 V: Y = 0.
  • Case IV: A = 1, B = 1. Both inputs are at the supply’s voltage, so neither diode is forward biased. No current flows through R, so there is no voltage drop across it, and Y is at the supply’s voltage: Y = 1.
D1D2R+5 VABYoutput
Figure 22.17 A two-input AND gate made of two diodes. Each diode points from the output Y to an input, A or B; the resistor R joins Y to the + terminal of the supply.
A B Y = A · B
0 0 0
0 1 0
1 0 0
1 1 1

Try it

OR and AND from two diodes

Pick the gate and tap the inputs. The diodes that conduct, and the current, are drawn in red; the output’s voltage and its row in the truth table are shown below.

D₁D₂RA5 VB0 VY5 VABY000011101111
Gate
Inputs

D₁ is forward biased: current flows from the input at 5 V through R to earth, and Y is lifted to 5 V. Y = 1.

In the diode OR gate, A = 1 and B = 0. Which diodes conduct?

Pick an answer to see why.

The NOT gate (Y = Aˉ \bar{A} )

A NOT gate has one input and one output, and it inverts its input: if the input is 1 the output is 0, and if the input is 0 the output is 1. It is also called an inverter.

A NOT gate can’t be made of diodes and resistors alone: diodes can only pass on a voltage, never turn a low one into a high one. It needs a transistor used as a switch (Figure 22.18). The input A is joined through a resistor R₁ to the transistor’s base; its collector is joined through R₂ to the supply +V and is the output Y; its emitter is earthed.

  • When A = 0, no current flows into the base, so the transistor is off (like an open switch). No current flows through R₂, so there is no drop across it, and Y is at +V: Y = 1.
  • When A = 1, a current flows into the base and the transistor is fully on (like a closed switch from collector to emitter). The output is joined almost directly to earth: Y = 0.
a.A+VYR1R2transistorb.AYc.AY0110
Figure 22.18 A NOT gate from a transistor: a. the circuit, b. its symbol, c. its truth table. Input 0: the transistor is off and Y is pulled up to +V through R₂ (1). Input 1: the transistor is on and Y is joined to earth (0).

The NOR gate (Y = A+B‾ \overline{A + B} )

An OR gate followed by a NOT gate is a NOR gate (NOT-OR). The NOT gate inverts the OR gate’s output (Figure 22.19), so its output is 1 only when both inputs are 0. Its symbol is the OR symbol with a small circle (the sign of NOT) at its output.

a. OR followed by NOTb. one NOR gateABORYABNORY
Figure 22.19 a. An OR gate followed by a NOT gate. b. The same thing as one gate: the NOR gate, drawn as an OR with a small circle at its output.
  • Case I: A = 0, B = 0: A + B = 0, so Y=A+B‾=1 Y = \overline{A + B} = 1 .
  • Case II: A = 0, B = 1: A + B = 1, so Y = 0.
  • Case III: A = 1, B = 0: A + B = 1, so Y = 0.
  • Case IV: A = 1, B = 1: A + B = 1, so Y = 0.
A B Y = A+B‾ \overline{A + B}
0 0 1
0 1 0
1 0 0
1 1 0

So a NOR gate gives a high output (1) only when both inputs are low (0).

The NAND gate (Y = A⋅B‾ \overline{A \cdot B} )

An AND gate followed by a NOT gate is a NAND gate (NOT-AND): a transistor NOT circuit placed after the diode AND circuit. Its symbol is the AND symbol with a small circle at its output (Figure 22.20).

a. AND followed by NOTb. one NAND gateABANDYABNANDY
Figure 22.20 An AND gate followed by a NOT gate is the same as one NAND gate, drawn as an AND with a small circle at its output.
  • Case I: A = 0, B = 0: A·B = 0, so Y=A⋅B‾=1 Y = \overline{A \cdot B} = 1 .
  • Case II: A = 0, B = 1: A·B = 0, so Y = 1.
  • Case III: A = 1, B = 0: A·B = 0, so Y = 1.
  • Case IV: A = 1, B = 1: A·B = 1, so Y = 0.
A B Y = A⋅B‾ \overline{A \cdot B}
0 0 1
0 1 1
1 0 1
1 1 0

So a NAND gate gives a high output (1) when either or both inputs are low (0), and 0 only when both are 1.

The output of a two-input gate is 0 only when both inputs are 1. The gate is:

Pick an answer to see why.

NAND gate as a universal gate

The NAND gate is called a universal gate: NAND gates alone, used over and over, can make every other gate, and so any logic circuit at all.

  • NOT from NAND: join both inputs of one NAND gate together. With both inputs equal to A, Y=A⋅A‾=Aˉ Y = \overline{A \cdot A} = \bar{A} .
  • AND from NAND: a NAND gate followed by a NAND used as a NOT: Y=A⋅B‾‾=A⋅B Y = \overline{\overline{A \cdot B}} = A \cdot B . Two gates.
  • OR from NAND: invert each input with a NAND used as a NOT, then feed both into a NAND: Y=Aˉ⋅Bˉ‾=A+B Y = \overline{\bar{A} \cdot \bar{B}} = A + B (by De Morgan’s law). Three gates.
NOT from NAND: Y = AAND from NAND: Y = A·BOR from NAND: Y = A + BANANDYABNANDNANDA·BYABNANDNANDNANDABY
Figure 22.21 NOT, AND and OR made of NAND gates only. A NAND with its two inputs joined is a NOT gate; a NAND followed by such a NOT is an AND; two of these NOTs, giving Aˉ \bar{A} and Bˉ \bar{B} , feeding a NAND make an OR.

In the same way, the NOR gate is a universal gate too:

  • NOT from NOR: both inputs joined: A+A‾=Aˉ \overline{A + A} = \bar{A} .
  • OR from NOR: a NOR followed by a NOR used as a NOT: A+B‾‾=A+B \overline{\overline{A + B}} = A + B .
  • AND from NOR: invert each input with a NOR, then feed both into a NOR: Aˉ+Bˉ‾=A⋅B \overline{\bar{A} + \bar{B}} = A \cdot B .
NOT from NOR: Y = AOR from NOR: Y = A + BAND from NOR: Y = A·BANORYABNORNORA + BYABNORNORNORABY
Figure 22.22 NOT, OR and AND made of NOR gates only: a NOR with its inputs joined is a NOT gate, a NOR followed by such a NOT is an OR, and Aˉ \bar{A} and Bˉ \bar{B} into a NOR make an AND.

Exercise

Choose the correct option

  1. The barrier potential difference is the potential difference across:

Pick an answer to see why.

  1. The current through a p–n junction is negligible when the junction is:

Pick an answer to see why.

  1. A reverse-biased p–n junction has:

Pick an answer to see why.

  1. Which device is used to convert a.c. into d.c.?

Pick an answer to see why.

  1. A Zener diode can be used as a:

Pick an answer to see why.

  1. All logic gates can be made by repeated use of:

Pick an answer to see why.

  1. What is the minimum number of NAND gates needed to make a NOT gate?

Pick an answer to see why.

ABNORNORY
Figure 22.29 For question 8: A and B into a NOR gate, whose output goes to both inputs of a second NOR gate.
  1. Which gate does the logic circuit above give?

Pick an answer to see why.

ABORNORY′Y
Figure 22.30 For question 9: A and B into an OR gate, whose output Y′ = A + B goes to both inputs of a NOR gate.
  1. Which gate does the logic circuit above give?

Pick an answer to see why.

  1. Boolean algebra is essentially based on:

Pick an answer to see why.

Answer these questions

11.
  • a.Explain the formation of the potential barrier and the depletion layer in a p–n junction.
  • b.Explain the forward and reverse characteristics of a p–n junction diode.
Hint
Answer
12.
  • a.What is a junction diode? Explain a full-wave rectifier using two diodes.
  • b.What will happen if one of the diodes is damaged?
  • c.The output of a full-wave rectifier is pulsating d.c. Which device can be used to get a constant output voltage? Draw its symbol and its characteristic.
Hint
Answer
13.
  • a.What are logic gates? Give the truth table of a two-input NAND gate, with its symbol.
  • b.Explain why the NAND gate is called a universal gate.
Answer
14.
  • a.Draw a circuit diagram to realize an AND gate from NOR gates, with its truth table.
  • b.Which gate will you get if you connect a NOT gate at the output of the circuit of part a?
  • c.Show, using a truth table, that the circuit given below acts as an OR gate.
ABNANDNANDNANDABY
Figure 22.31 For question 14 c: A and B each go to both inputs of a NAND gate; the two outputs go to a third NAND gate.
Hint
Answer

A companion to your textbook, not a replacement for it: study from the book your school uses, and where the two differ, follow your teacher. Found a mistake? Please tell us.