Buy the print and get FREE access to our online edition!

Nuts & Volts Magazine (July 2006)

Understanding Digital Logic ICs — Part 1

By Ray Marston    View Digital Edition  

Modern digital logic ICs are widely available in three basic types: TTL devices (typified by the 74LS00 logic family), “slow” CMOS devices (typified by the “4000” logic family), and “fast” CMOS devices (typified by the 74HC00 and 74AC00 logic families). Each of these families has its own particular advantages and disadvantages, and its own special set of usage rules.

This four-part mini-series explains the basic principles and usage rules of each of these three digital logic families, and provides practical usage guidance for the vast range of ICs available in each of these families. This opening article concentrates on digital logic IC basics.

Digital Logic IC Basics

An IC can be described as a complete electronic circuit or “electronic building block,” integrated into one or more semiconductor slices (or “chips”) and encapsulated in a small, multi-pin package. An IC can be made fully functional by wiring it to a suitable power supply and connecting various pins to appropriate external input, output, and auxiliary networks.

ICs come in both “linear” and “digital” forms. Linear ICs are widely used as pre-amplifiers, power amplifiers, oscillators, and signal processors, etc., and give a basic output that is directly proportional to the magnitude (analog value) of the input signal, which itself may have any value between zero and some prescribed maximum limit.

One of the simplest types of linear IC elements is the unity-gain buffer. If a large sine-wave signal is connected to the input of this circuit, it produces a low-impedance output of almost identical form and amplitude, as shown in Figure 1(a). Digital ICs, on the other hand, are effectively blind to the precise amplitudes of their input signals, and simply recognize them as being in either a low or a high state (usually known as logic-0 and logic-1 states, respectively).

FIGURE 1. When a large input sine wave is fed to the input of a linear buffer (a), it produces a sine-wave output, but when fed to the input of a digital buffer (b), it produces a purely digital output.

Their outputs similarly have only two basic states, either low or high (logic-0 or logic-1). One simple type of digital IC element is the non-inverting buffer. If a large sine-wave signal is connected to the input of this circuit, it produces an output that (ideally) is of purely digital form, as shown in Figure 1(b).

Digital ICs are available in a variety of rather loosely defined categories such as memory ICs, electronic delay-line ICs, and microprocessor support ICs, etc., but the most widely used category is that known as the “logic” type, in which the ICs are designed around fairly simple logic circuits such as digital buffers, inverters, gates, or flip-flop elements. Digital logic circuits come in a variety of basic types and can be built using a variety of discrete or integrated technologies. Figures 2 through 7 show a selection of very simple logic circuits that are designed around discrete components.

Figure 2(a) shows a simple inverting digital buffer (also known as a NOT logic gate), consisting of an unbiased transistor wired in the common-emitter mode, and Figure 2(b) shows the international symbol that is used to represent it. The arrowhead indicates the direction of signal flow, and the small circle on the symbol’s output indicates the inverting action.

FIGURE 2. Circuit (a), symbol (b), and Truth Table (c) of a simple inverting digital buffer.

The circuit action is such that Q1 is cut off (with its output high) when its input is in the zero state and is driven fully on (with its output pulled low) when its input is high. This information is presented in concise form by the Truth Table of Figure 2(c), which shows that the output is at logic-1 when the input is at logic-0, and vice versa.

Figure 3(a) shows a simple non-inverting digital buffer, consisting of a direct coupled pair of common-emitter (inverter) transistor stages. Figure 3(b) shows the arrow-like international symbol used to represent it. Figure 3(c) shows the Truth Table that describes its action, e.g., the output is at logic-0 when the input is at logic-0, and is at logic-1 when the input is at logic-1.

FIGURE 3. Circuit (a), symbol (b), and Truth Table (c) of a non-inverting digital buffer.

In digital electronics, a “gate” is a logic circuit that opens or gives an output (usually defined as a high or logic-1 state) only under a certain set of input conditions. Figure 4(a) shows a simple two-input OR gate, made from two diodes and a resistor, and Figure 4(b) shown the international symbol used to represent it. Figure 4(c) shows its Truth Table (in which the inputs are referred to as A or B). Note that the output goes to logic-1 if A or B goes to logic-1.

FIGURE 4. Circuit (a), symbol (b), and Truth Table (c) of a simple two-input OR gate.

Figure 5 shows the circuit, symbol, and Truth Table of a two-input NOR (Negated-output OR) gate, in which the output is inverted (as indicated by the output circle) and goes to logic-0 if either input goes high.

FIGURE 5. Circuit (a), symbol (b), and Truth Table (c) of a two-input NOR gate.

Figure 6(a) shows a simple two-input AND gate, made from two diodes and a resistor, and Figure 6(b) shows its standard international symbol. Figure 6(c) shows the AND gate’s Truth Table, which indicates that the output goes to logic-1 only if inputs A and B are at logic-1.

FIGURE 6. Circuit (a), symbol (b), and Truth Table (c) of a simple two-input AND gate.

Finally, Figure 7 shows the circuit, symbol, and Truth Table of a two-input NAND (Negated-output AND) gate, in which the output is inverted (as indicated by the output circle) and goes to logic-0 only if both inputs are at logic-1.

FIGURE 7. Circuit (a), symbol (b), and Truth Table (c) of a two-input NAND gate.

Note that although the four basic types of logic gate circuits described here are each shown with only two input terminals, they can, in fact, be designed or used to accept any desired number of inputs, and can be used to perform a variety of simple logic operations. Many types of digital buffers and gates are readily available in IC form, as are many other digital logic circuits, including flip-flops, latches, shift registers, counters, data selectors, encoders, and decoders.

Practical digital ICs may range from relatively simple logic devices — housing the equivalent of just a few basic gates or buffers — to incredibly complex devices housing the equivalent of tens of thousands of interconnected gates, etc. By convention, the following general terms are used to describe the relative density or complexity of integration:

  • SSI (Small Scale Integration) — Complexity level between one and 10 gates.
  • MSI (Medium Scale Integration) — Complexity level between 10 and 100 gates.
  • LSI (Large Scale Integration) — Complexity level between 100 and 1,000 gates.
  • VLSI (Very Large Scale Integration) — Complexity level between 1,000 and 10,000 gates.
  • SLSI (Super Large Scale Integration) — Complexity level between 10,000 and 100,000 gates.

Note that most logic ICs of the types described throughout this series of articles have complexity levels ranging from four to 400 gates, and are thus SSI, MSI, or LSI devices. In broad terms, most microprocessor ICs and moderately large memory ICs are VLSI devices, while large dynamic RAM (Random Access Memory) ICs are SLSI devices.

Digital Waveform Basics

Digital logic ICs are invariably used to process digital waveforms. It is thus pertinent at this point to review some basic facts and terms concerning digital waveforms.

Waveforms are available in either square or pulse form. Figure 8 illustrates the basic parameters of a square wave.

FIGURE 8. Basic parameters of a square wave.

In each cycle, the wave first switches from zero to some peak voltage value (Vpk) for a fixed period, then switches low again for a second fixed period, and so on. The time for the waveform to rise from 10% to 90% of Vpk is known as its rise time, and the time for it to drop from 90% to 10% of Vpk is known as its fall time.

In each square-wave cycle, the high part is known as its mark and the low part as its space. In a symmetrical square wave such as the one in Figure 8, the mark and space periods are equal. Such waveforms are said to have a 1:1 Mark-Space (or M-S) ratio, or a 50% duty cycle (since the mark duration forms 50% of the total cycle period). Square waves are not necessarily symmetrical, but are always free-running or repetitive, i.e., they cycle repeatedly, with consistent mark and space periods.

A pulse waveform is a bit like a square wave. It has both rise and fall times, but only one portion — either its mark or its space period — is specified; the duration of the remaining period is unimportant. Figure 9(a) shows a basic “positive-going” pulse waveform, which has a ‘rising’ or positive-going leading edge, and Figure 9(b) shows a “negative-going” pulse waveform, which has a “falling” or negative-going leading edge. Note that many modern MSI digital ICs, such as counter/dividers and shift registers, can be selected or programmed to trigger on either the rising or the falling edge of an input pulse, as desired by the user.

FIGURE 9. Basic forms of (a) “positive-going” and (b) “negative-going” pulses.

If a near-perfect pulse waveform is fed to the input of a real-life amplifier or logic gate, etc., the resulting output waveform will be distorted both in form and time, as shown in Figure 10. Thus, not only will the output waveform’s rise and fall times be increased, but the arrival and termination of the output pulse will be time delayed relative to that of the input pulse.

FIGURE 10. A perfect pulse, fed to the input of a practical amplifier or gate, produces an output pulse that is distorted both in form and time. The output pulse’s time delay is called its propagation delay, and (in (b)) = (t1 + t2) / 2.

The mean value of the delays is called the device’s propagation delay. Also, the peaks of the waveform’s rising and falling edges may suffer from various forms of ringing, overshoot, undershoot, etc. The magnitudes of these distortions vary with the quality or structure of the amplifier or gate.

In practice, pulse input waveforms may sometimes be so imperfect that they may need to be “conditioned” before they are suitable for use by modern, fast-acting digital ICs. Specifically, they may have such long rise or fall times that they may have to be sharpened up via a Schmitt trigger before they are suitable for use.

Again, many mechanically-derived pulse waveforms, such as those generated via switches or contact-breakers, may suffer from multiple “contact bounce” problems such as those shown in Figure 11(a). In this case, they will have to be converted to the clean form shown in Figure 11(b) before they can be usefully used.

FIGURE 11. Mechanically derived pulse waveforms often suffer from contact bounce (a), and must be cleaned up (b) before use.

Logic Families

Practical digital logic circuits and ICs can be built using various technologies. The first successful family of digital logic ICs appeared in the mid 1960s. These used a 3.6 V supply and employed a simple technology that became known as Resistor-Transistor Logic, or RTL. Figure 12 shows the basic circuit for a three-input RTL NOR gate. RTL was rather slow in operation, having a typical propagation delay (the time taken for a single pulse edge or transition to travel from input to output) of 40 nS in a low-power gate, or 12 nS in a medium power gate. RTL is now obsolete.

FIGURE 12. IC version of a three-input RTL NOR gate.

Another early type of IC logic technology, developed in the late 1960s, was based on simple developments of the discrete types of logic circuit shown in Figures 2 through 7, and was known as Diode-Transistor Logic, or DTL. Figure 13 shows the basic circuit of a three-input DTL NAND gate. DTL used a dual five-volt power supply, gave a typical propagation delay of 30 nS, and gave an output of less than 0.4 V in the logic-0 state and greater than 3.5 V in the logic-1 state. DTL is now obsolete.

FIGURE 13. IC version of a three-input DTL NAND gate.

Between the late 1960s and mid 1970s, several other promising IC logic technologies appeared. Most of them soon disappeared back into oblivion again. Amongst those that came and either went or receded in importance were HTL (High Threshold Logic), ECL (Emitter Coupled Logic), and PML (P-type MOSFET Logic). The most durable of these technologies was ECL, which is still in production and gives very fast operation, but at the cost of very high current/power consumption.

Figure 14 shows the basic circuit of the ECL digital amplifier — a non-saturating emitter-coupled differential amplifier (Q1 and Q2) with emitter-follower output stages (Q3 and Q4). Because its transistors do not saturate when switched, it gives typical propagation delays of only 4 nS. Note that the circuit’s V+ line is normally grounded and the V- line is powered at -5.2 V.

FIGURE 14. Basic ECL (Emitter-Coupled Logic) amplifier circuit.

Under this condition, the circuit provides nominal digital output swings of only 0.85 V, i.e., from a low state of -1.60 V to a high state of -0.75 V. The circuit’s digital input is applied to the base of Q1. A non-inverted output is available on Q3 emitter, and an inverted output is available on Q4 emitter. Modern ECL ICs are used only when ultra high-speed operation is required.

The basic aim of digital IC designers during the late 1960s to early 1970s was to devise a technology that would be simple to use and that achieved a good compromise between high operating speed and low power consumption. The problem here was that conventional transistor-type circuitry, using an output stage of the Figure 2 type (as in RTL and DTL systems), was simply not capable of meeting the last two of these design needs. The essence of this problem — and its ultimate solution — can be understood with the aid of Figure 15.

FIGURE 15. (a) Simple digital switch. (b) Basic “totem-pole” digital switch.

Figure 15(a) shows a simplified version of the circuit in Figure 2, with Q1 replaced by a mechanical switch. Remember here that all practical output loads inevitably contain capacitance (typically up to about 30 pF in most digital circuits), so it can be seen that this basic circuit will charge (source current into) a capacitive load fairly slowly via R2 when S1 is open, but will discharge it (sink current from it) rapidly via S1 when S1 is closed; thus, circuits of this type produce digital outputs that tend to have long rise times and short fall times. The only way to reduce the rise time is to reduce the R2 value, and that increases S1’s (Q1’s) current consumption by a proportionate amount.

Note that one good way of describing the deficiency of the Figure 15(a) logic circuit is to say that its output gives an active pull-down action (via S1), but a passive pull-up action (via S2). Obviously, a far better digital output stage could be made by replacing R2 and S1 with a ganged pair of change-over switches, connected as shown in Figure 15(b), so that S2 gives active pull-up action and S1 gives active pull-down action, but so arranged that only one switch can be closed at a time (thus ensuring that the circuit consumes zero quiescent current). Such a circuit — with one electronic switch placed above the other — is called a totem-pole output stage.

Throughout the late 1960s, digital engineers strove to design a cheap and reliable electronic version of the totem-pole output stage, and then — in the early 1970s — they hit the jackpot. Two such technologies hit the commercial market like bombshells and went on to form the basis of today’s two dominant digital IC families. The first of these — based on bipolar transistor technology — is known as TTL (Transistor-Transistor Logic). TTL is the basis of the so-called “74” family of digital ICs that first arrived in 1972.

The second, based on FET technology, is known as CMOS (Complementary MOS-FET logic). CMOS is the basis of the rival “4000-series” (and the similar “4500-series”) digital IC family that first arrived in about 1975. The TTL and CMOS technologies have vastly different characteristics, but both offer specific technical advantages that make them invaluable in particular applications.

The most significant differences between the technologies of CMOS and TTL ICs can be seen in their basic inverter/buffer networks, which are used (sometimes in slightly modified form) in virtually every IC within the family range of each type of device. Figures 16 and 17 show the two different basic designs.

The CMOS inverter of Figure 16 consists of a complementary pair of MOSFETs, wired in series, with p-channel MOSFET Q1 at the top and n-channel MOSFET Q2 below, and with both high-impedance gates joined together. The pair can be powered from any supply in the 3–15 V range.

FIGURE 16. Circuit and Truth Table of a basic CMOS inverter.

When the circuit’s input is at logic-0, the basic action is such that Q1 is driven on and Q2 is cut off, and the output is actively pulled high (to logic-1). Note that the output can source (drive) fairly high currents into an external load (via Q1) under this condition, but that the actual inverter stage consumes near-zero current, since Q2 is cut off.

When the circuit’s input is at logic-1, the reverse of this action occurs: Q1 is cut off and Q2 is driven on, and the output is actively pulled low (to logic-0). Note that the output can sink (absorb) fairly high currents from an external load (via Q2) under this condition, but that the actual inverter stage consumes near-zero current, since Q1 is cut off.

Thus, the basic CMOS inverter can be used with any supply in the 3-15 V range, has a very high input impedance, consumes near-zero quiescent current, has an output that switches almost fully between the two supply rails, and can source or sink fairly high output load currents. Typically, a single basic CMOS stage has a propagation delay of about 12-60 nS, depending on supply voltage.

The TTL inverter of Figure 17 is split into three sections, consisting of an emitter-driven input (Q1), a phase-splitter (Q2), and a totem-pole output stage (Q3-D1-Q4). It must be powered from a five-volt supply. When the circuit’s input is pulled down to logic-0, the basic action is such that Q1 is saturated, thus depriving Q2 of base current and causing Q2 and Q4 to cut off, and, at the same time, causing emitter-follower Q3 to turn on via R2 and give an active pull-up action in which the output has (because of various volt-drops) a typical loaded value of about 3.5 V.

FIGURE 17. Circuit and Truth Table of a basic TTL inverter.

This circuit can source fairly high currents into an external load. Conversely, when the circuit’s input is at logic-1, Q1 is disabled, allowing Q2 to be driven on via R1 and the forward-biased base-collector junction of Q1, thus driving Q4 to saturation and simultaneously cutting off Q3.

Under this condition, Q4 gives an active pull-down action and can sink fairly high currents, while the output takes up a typical loaded value of 400 mV. Note that (ignoring external load currents) the circuit consumes a quiescent current of about 1 mA in the logic-1 output state, and 3 mA in the logic-0 output state.

Thus, the basic TTL inverter can only be used with a five-volt supply, has a very low input impedance, consumes up to 3 mA of quiescent current, has an output that does not switch fully between the two supply rails, and can source or sink fairly high load currents. Typically, a single basic TTL stage has a propagation delay of about 12 nS.

Basic TTL Circuit Variations

There are five very important variations of the basic Figure 17 TTL inverter circuit. The simplest of these is the so-called “open collector” TTL circuit, which is shown in basic form in Figure 18.

FIGURE 18. TTL inverter with open-collector output.

Here, output transistor Q3 is cut off when the input is at logic-0, and is driven on when the input is at logic-1. Thus, by wiring an external load resistor between the OUT and +5 V pins, the circuit can be used as a passive pull-up voltage inverter that has an output that (when lightly loaded) switches almost fully between zero and the positive supply rail value.

Alternatively, it can be used to drive an external load (such as an LED or relay, etc.) that is connected between OUT and a positive supply rail, in which case the load activates when a logic-1 input is applied.

The second variation is the non-inverting amplifier or buffer. This is made by simply wiring an additional direct-coupled inverter stage between the phase-splitter and output stages of the standard inverter. Figure 19 shows an open collector version of such a circuit, which can be used with an external resistor or load. In this example, Q4 turns on when a logic-0 input is applied.

FIGURE 19. TTL non-inverting buffer with open-collector output.

Figure 20 shows a major TTL design variation.

FIGURE 20. TTL three-input NAND gate.

Here, the basic inverter circuit is used with a triple-emitter input transistor, to make a three-input NAND gate in which the output goes low (to logic-0) only when all three inputs are high (in the logic-1 state). Multiple-emitter transistors are widely used within TTL ICs. Some TTL gates use an input transistor with as many as a dozen emitters to make a 12-input gate.

A further variation concerns the use of a “Tri-State” (or “three-state”) type of output that incorporates additional networks plus an external ENABLE control terminal. In one state, the totem-pole output stage operates in its normal logic-0 or logic-1 mode, but in the other state, both totem-pole transistors are disabled (turned off), creating an open-circuit (high impedance) output. This facility is useful in allowing several outputs or inputs to be shorted to a common bus or line, as shown in Figure 21, and to communicate along that line by ENABLING only one output and one input device at a time.

FIGURE 21. Tri-State logic enables several outputs or inputs to be connected to a common bus. Only one output/input must be made active at any given moment.

The final circuit variation is an application one, and concerns the use of an external 2 kΩ pull-up resistor on a totem-pole output stage, as shown in Figure 22.

FIGURE 22. An external 2 kW pull-up resistor connected to the output of a totem-pole stage pulls the output to almost +5 V in the logic-1 state.

This resistor pulls the output (when lightly loaded) up to virtually the full +5 V supply value when the output is in the logic-1 state, rather than to only +3.5 V. This is sometimes useful when interfacing the output of a TTL IC to the input of a CMOS IC, for example.

The “74 Series” Digital ICs

TTL IC technology first hit the electronics engineering scene in a big way in about 1972, when it arrived in the form of an entire range of digital logic ICs that were exceptionally easy to use. The range was an instant international success, and quickly became the world’s leading IC logic system. Its ICs were produced in both commercial and military grades, and carried prefixes of 74 and 54, respectively; the commercial product range soon became known simply as the “74 series” ICs.

Over the years, the “74 series” ICs have progressively expanded their range of devices and advanced their production technology, so that today the 74 series is as popular and versatile as ever. When first introduced in the early 1970s, the series was based entirely on a simple type of TTL technology, but in later years, new sub-families of TTL were introduced in the series, and then various types of CMOS technology was added to it, so that today’s 74 series incorporates a variety of TTL and CMOS sub-families. Our next installment will take a close look at the sub-families of 74 series ICs, and explain some basic TTL terminology.  NV