We often hear that we live in a digital age. This refers to the massive adoption of computer systems within every aspect of our lives from smartphones to automobiles to household appliances. This statement also refers to the transformation that has occurred to our telecommunications infrastructure that now transmits voice, video, and data using 1’s and 0’s. There are a variety of reasons that digital systems have become so prevalent in our lives. In order to understand these reasons, it is good to start with an understanding of what a digital system is and how it compares to its counterpart, the analog system. The goal of this chapter is to provide an understanding of the basic principles of analog and digital systems.

FormalPara Learning Outcomes—After completing this chapter, you will be able to:
  1. 1.1

    Describe the fundamental differences between analog and digital systems.

  2. 1.2

    Describe the advantages of digital systems compared to analog systems.

1.1 Differences Between Analog and Digital Systems

Let’s begin by looking at signaling. In electrical systems, signals represent information that is transmitted between devices using an electrical quantity (voltage or current). An analog signal is defined as a continuous, time-varying quantity that corresponds directly to the information it represents. An example of this would be a barometric pressure sensor that outputs an electrical voltage corresponding to the pressure being measured. As the pressure goes up, so does the voltage. While the range of the input (pressure) and output (voltage) will have different spans, there is a direct mapping between the pressure and voltage. Another example would be sound striking a traditional analog microphone. Sound is a pressure wave that travels through a medium such as air. As the pressure wave strikes the diaphragm in the microphone, the diaphragm moves back and forth. Through the process of inductive coupling, this movement is converted to an electric current. The characteristics of the current signal produced (e.g., frequency and magnitude) correspond directly to the characteristics of the incoming sound wave. The current can travel down a wire and go through another system that works in the opposite manner by inductively coupling the current onto another diaphragm, which in turn moves back and forth forming a pressure wave and thus sound (i.e., a speaker or earbud). In both of these examples, the electrical signal represents the actual information that is being transmitted and is considered analog. Analog signals can be represented mathematically as a function with respect to time.

In digital signaling the electrical signal itself is not directly the information it represents; instead, the information is encoded. The most common type of encoding is binary (1’s and 0’s). The 1’s and 0’s are represented by the electrical signal. The simplest form of digital signaling is to define a threshold voltage directly in the middle of the range of the electrical signal. If the signal is above this threshold, the signal is representing a 1. If the signal is below this threshold, the signal is representing a 0. This type of signaling is not considered continuous as in analog signaling; instead, it is considered to be discrete because the information is transmitted as a series of distinct values. The signal transitions between a 1 to 0 and 0 to 1 are assumed to occur instantaneously. While this is obviously impossible, for the purposes of information transmission, the values can be interpreted as a series of discrete values. This is a digital signal and is not the actual information but rather the binary encoded representation of the original information. Digital signals are not represented using traditional mathematical functions; instead, the digital values are typically held in tables of 1’s and 0’s.

Examples of Analog Signals and Systems: The human interface to a computer; the electrical signal representing sound that travels down the wire of a set of headphones; the actual sound coming out of headphones; electricity coming out of a wall outlet; the voltage from a battery or solar cell.

Examples of Digital Signals and Systems: Information stored on a computer; the computer hardware that processes information; devices such as computers, tablets, and smartphones are also considered digital systems because their hardware and information being processed are digital; the information being transmitted over the Internet and wireless networks is digital.

Figure 1.1 shows an example analog signal (left) and an example digital signal (right). While the digital signal is in reality continuous, it represents a series of discrete 1 and 0 values.

Fig. 1.1
figure 1

Analog (left) vs. digital (right) signals

Concept Check

CC1.1 If a digital signal is only a discrete representation of real information, how is it possible to produce high quality music without hearing “gaps” in the output due to the digitization process?

  1. A)

    The gaps are present, but they occur so quickly that the human ear can’t detect them.

  2. B)

    When the digital music is converted back to analog sound the gaps are smoothed out since an analog signal is by definition continuous.

  3. C)

    Digital information is a continuous, time-varying signal so there aren’t gaps.

  4. D)

    The gaps can be heard if the music is played slowly, but at normal speed, they can’t be.

1.2 Advantages of Digital Systems over Analog Systems

There are a variety of reasons that digital systems are preferred over analog systems. First is their ability to operate within the presence of noise. Since an analog signal is a direct representation of the physical quantity it is transmitting, any noise that is coupled onto the electrical signal is interpreted as noise on the original physical quantity. An example of this is when you are listening to an AM/FM radio and you hear distortion of the sound coming out of the speaker. The distortion you hear is not due to actual distortion of the music as it was played at the radio station but rather electrical noise that was coupled onto the analog signal transmitted to your radio prior to being converted back into sound by the speakers. Since the signal in this case is analog, the speaker simply converts it in its entirety (noise + music) into sound. In the case of digital signaling, a significant amount of noise can be added to the signal while still preserving the original 1’s and 0’s that are being transmitted. For example, if the signal is representing a 0, the receiver will still interpret the signal as a 0 as long as the noise doesn’t cause the level to exceed the threshold. Once the receiver interprets the signal as a 0, it stores the encoded value as a 0 thus ignoring any noise present during the original transmission. Figure 1.2 shows the exact same noise added to the analog and digital signals from Fig. 1.1. The analog signal is distorted; however, the digital signal is still able to transmit the 0’s and 1’s that represent the information.

Fig. 1.2
figure 2

Noise on analog (left) and digital (right) signals

Another reason that digital systems are preferred over analog ones is the simplicity of the circuitry. In order to produce a 1 and 0, you simply need an electrical switch. If the switch connects the output to a voltage below the threshold, then it produces a 0. If the switch connects the output to a voltage above the threshold, then it produces a 1. It is relatively simple to create such a switching circuit using modern transistors. Analog circuitry, however, needs to perform the conversion of the physical quantity it is representing (e.g., pressure, sound) into an electrical signal all the while maintaining a direct correspondence between the input and output. Since analog circuits produce a direct, continuous representation of information, they require more complicated designs to achieve linearity in the presence of environmental variations (e.g., power supply, temperature, fabrication differences). Since digital circuits only produce a discrete representation of the information, they can be implemented with simple switches that are only altered when information is produced or retrieved. Figure 1.3 shows an example comparison between an analog inverting amplifier and a digital inverter. The analog amplifier uses dozens of transistors (inside the triangle) and two resistors to perform the inversion of the input. The digital inverter uses two transistors that act as switches to perform the inversion.

Fig. 1.3
figure 3

Analog (left) vs. digital (right) circuits

A final reason that digital systems are being widely adopted is their reduced power consumption. With the advent of complementary metal oxide transistors (CMOS), electrical switches can be created that consume very little power to turn on or off and consume relatively negligible amounts of power to keep on or off. This has allowed large-scale digital systems to be fabricated without excessive levels of power consumption. For stationary digital systems such as servers and workstations, extremely large and complicated systems can be constructed that consume reasonable amounts of power. For portable digital systems such as smartphones and tablets, this means useful tools can be designed that are able to run on portable power sources. Analog circuits, on the other hand, require continuous power to accurately convert and transmit the electrical signal representing the physical quantity. Also, the circuit techniques that are required to compensate for variances in power supply and fabrication processes in analog systems require additional power consumption. For these reasons, analog systems are being replaced with digital systems wherever possible to exploit their noise immunity, simplicity, and low power consumption. While analog systems will always be needed at the transition between the physical (e.g., microphones, camera lenses, sensors, video displays) and the electrical world, it is anticipated that the push toward digitization of everything in between (e.g., processing, transmission, storage) will continue.

Concept Check

CC1.2 When does the magnitude of electrical noise on a digital signal prevent the original information from being determined?

  1. A)

    When it causes the system to draw too much power.

  2. B)

    When the shape of the noise makes the digital signal look smooth and continuous like a sine wave.

  3. C)

    When the magnitude of the noise is large enough that it causes the signal to inadvertently cross the threshold voltage.

  4. D)

    It doesn’t. A digital signal can withstand any magnitude of noise.

Summary

  • An analog system uses a direct mapping between an electrical quantity and the information being processed. A digital system, on the other hand, uses a discrete representation of the information.

  • Using a discrete representation allows the digital signals to be more immune to noise in addition to requiring simple circuits that require less power to perform the computations.

Exercise Problems

Section 1.1: Differences Between Analog and Digital Systems

  1. 1.1.1

    If an electrical signal is a direct function of a physical quantity, is it considered analog or digital?

  2. 1.1.2

    If an electrical signal is a discrete representation of information, is it considered analog or digital?

  3. 1.1.3

    What part of any system will always require an analog component?

  4. 1.1.4

    Is the sound coming out of earbuds analog or digital?

  5. 1.1.5

    Is the MP3 file stored on an iPod analog or digital?

  6. 1.1.6

    Is the circuitry that reads the MP3 file from memory in an iPod analog or digital?

  7. 1.1.7

    Is the electrical signal that travels down earphone wires analog or digital?

  8. 1.1.8

    Is the voltage coming out of the battery in an iPod analog or digital?

  9. 1.1.9

    Is the physical interface on the touch display of an iPod analog or digital?

  10. 1.1.10

    Take a look around right now and identify two digital technologies in use.

  11. 1.1.11

    Take a look around right now and identify two analog technologies in use.

  12. 1.1.12

    Using the terminology from this chapter, describe the difference between an analog clock with a smooth moving second hand and a digital clock.

  13. 1.1.13

    Using the terminology from this chapter, describe the difference between an analog and digital thermometer.

Section 1.2: Advantages of Digital Systems over Analog Systems

  1. 1.2.1

    Give three advantages of using digital systems over analog.

  2. 1.2.2

    Name a technology or device that has evolved from analog to digital in your lifetime.

  3. 1.2.3

    Name an analog technology or device that has become obsolete in your lifetime.

  4. 1.2.4

    Name an analog technology or device that has been replaced by digital technology but is still in use due to nostalgia.

  5. 1.2.5

    Name a technology or device invented in your lifetime that could not have been possible without digital technology.

  6. 1.2.6

    In this chapter it was discussed that in digital circuits, a transistor is used to create a simple switch. Doing a quick internet search, about how many transistors are in a modern microprocessor?

  7. 1.2.7

    In this chapter it was discussed that in analog circuits the circuit design is more complex and as a result, fewer transistors are used. The analog circuit shown in Fig. 1.3 is based on an analog device called an operational amplifier. Doing a quick internet search, about how many transistors are in an operational amplifier device?