Logic gates
| Gate | Output | High output when |
|---|---|---|
| OR | any input is 1 | |
| AND | all inputs are 1 | |
| NOT | input is 0 | |
| NOR | all inputs are 0 | |
| NAND | any input is 0 | |
| XOR | inputs are different | |
| XNOR | inputs are the same |
- Identities that shorten a circuit: , , , , , .
- NAND and NOR are universal gates. Any gate can be built from either one alone.
- A NAND or NOR gate with its two inputs joined is a NOT gate.
- NAND followed by NOT is AND. NOR followed by NOT is OR.
- Both inputs inverted, then NAND: , an OR gate. Both inputs inverted, then NOR: , an AND gate.
- Both inputs inverted, then AND gives NOR. Both inputs inverted, then OR gives NAND.
- Least number of NAND gates: NOT 1, AND 2, OR 3, NOR 4, XOR 4. Least number of NOR gates: NOT 1, OR 2, AND 3, NAND 4.
- Diode gates: two diodes pointing towards the output with a resistor to ground make an OR gate. Two diodes pointing away from the output with a resistor to the supply make an AND gate.
- Waveform questions: cut the time axis into slots, write the input pair in each slot, and apply the truth table slot by slot.
Worked example. The output of a NOR gate is given to both inputs of a second NOR gate. Which gate does the combination act as?
Show the method
- First gate: .
- The second gate has both inputs joined, so it inverts: .
- The combination is an OR gate.
Zener diode and special purpose diodes
- A Zener diode is heavily doped and is used in reverse bias in its breakdown region. The voltage across it stays at while the current through it changes. This makes it a voltage regulator.
- Largest safe Zener current . Power used in the Zener .
- The Zener regulates only if the voltage it would get without breakdown is at least : . Otherwise treat it as an open branch.
- If the input voltage rises, and rise and the load current stays the same. If the load is removed, the whole of passes through the Zener.
- Zener breakdown: heavy doping, thin depletion layer, strong field pulls electrons out of bonds. Avalanche breakdown: light doping, wide layer, carriers knock out more carriers by collision.
| Device | Bias | Working | Note |
|---|---|---|---|
| Photodiode | reverse | light creates electron-hole pairs, current rises with intensity | detects light with |
| LED | forward | electrons and holes recombine and emit light | heavily doped, about 1.8 eV or more for visible light |
| Solar cell | none | light produces an emf across the junction | I-V curve lies in the fourth quadrant |
- A photodiode is used in reverse bias because the fractional change in the small minority carrier current is large and easy to measure.
- LED materials: GaAs gives infrared, GaAsP red and yellow, GaP green. Silicon and germanium are not used because they give heat, not light.
- Solar cell materials have a band gap near 1.5 eV: Si, GaAs, CdTe. Open circuit voltage is read on the voltage axis and short circuit current on the current axis.
Worked example. In a Zener regulator V, ohm, V and kilo-ohm. Find the Zener current.
Show the method
- mA.
- mA.
- mA.
Transistors
- is a little less than 1 (0.95 to 0.99). is large (20 to 200). gives ; gives .
- Structure: emitter heavily doped, base thin and lightly doped, collector moderately doped and largest in size.
- Regions: active (emitter junction forward, collector junction reverse) for an amplifier; saturation (both forward) and cut-off (both reverse) for a switch.
- Common emitter circuit: and . Find from the input loop, then , then .
- The common emitter amplifier inverts the signal: output and input differ in phase by .
- Input resistance . Output resistance . Transconductance .
- Oscillator: an amplifier with positive feedback. Frequency .
- In an n-p-n transistor electrons carry the current from emitter to collector; in a p-n-p transistor holes do.
Worked example. A common emitter amplifier has , input resistance 1 kilo-ohm and load resistance 2 kilo-ohm. Find the voltage gain and the power gain.
Show the method
- .
- .
Rectifiers and diode circuits
| Quantity | Half wave | Full wave |
|---|---|---|
| Output frequency | ||
| Average current | ||
| RMS current | ||
| Greatest efficiency | 40.6 percent | 81.2 percent |
| Ripple factor | 1.21 | 0.48 |
- Peak inverse voltage: half wave , centre tap full wave , bridge .
- A centre tap rectifier uses 2 diodes, a bridge rectifier 4. A capacitor across the load smooths the output; a larger gives less ripple.
- Ideal diode: forward biased it is a closed switch, reverse biased an open switch. Decide the bias by comparing the potentials at its two ends: the p side must be higher.
- Real diode: subtract the knee voltage, 0.7 V for silicon and 0.3 V for germanium. Current .
- Silicon and germanium diodes in parallel: the germanium one conducts first and holds the voltage at 0.3 V, so the silicon diode stays off.
- Dynamic resistance from the characteristic curve.
- Two diodes back to back in series block the current in both directions.
Worked example. A silicon diode (knee voltage 0.7 V) is joined in forward bias to a 5 V battery through a 1 kilo-ohm resistor. Find the current.
Show the method
- Voltage across the resistor V.
- mA.
Energy bands and types of semiconductors
- Band gap: conductors have none (bands overlap), semiconductors below about 3 eV (Ge 0.7 eV, Si 1.1 eV), insulators above 3 eV (diamond 5.5 eV).
- At 0 K a pure semiconductor behaves as an insulator. Its conductivity rises with temperature, so the temperature coefficient of resistance is negative.
- Intrinsic: .
- n-type: doped with a pentavalent atom (P, As, Sb). Electrons are the majority carriers. The donor level lies just below the conduction band.
- p-type: doped with a trivalent atom (B, Al, Ga, In). Holes are the majority carriers. The acceptor level lies just above the valence band.
- Both types remain electrically neutral as a whole.
- Mobility of electrons is higher than that of holes.
- Doping of 1 part per million: dopant density density of host atoms.
Worked example. Pure silicon has m. It is doped so that m. Find the hole density.
Show the method
- .
- m.
The p-n junction
- Diffusion of majority carriers across the junction leaves a depletion region without free carriers, about m wide, with a barrier potential of about 0.7 V in silicon and 0.3 V in germanium.
- The field in the depletion region points from the n side to the p side. Its size is about .
- Diffusion current is due to majority carriers, drift current to minority carriers. Without bias they are equal and opposite.
- Forward bias (p to the positive terminal): barrier falls, depletion region narrows, current in milliampere after the knee voltage.
- Reverse bias: barrier rises, depletion region widens, a small current in microampere flows due to minority carriers. It hardly changes with voltage until breakdown.
- The junction diode conducts in one direction only, which is the basis of rectification.