4.2: Conversion between Analog and Digital Signals (A/D and D/A Conversions)

Mechatronics: Fundamentals, Design, Integration, and Validation · LibreTexts

0%

Contents

    Text

    Size
    100%
    Theme
    Typeface
    Line length
    Spacing

    Read aloud

    How

    Speed: 1×
    Light up
    Highlight

    Symbols: Mulberry Symbols, © 2018–2026 Steve Lee, CC BY-SA 4.0 (licence, the set), the site's own copies.

    From LibreTexts, under CC BY-NC 4.0, as the source states it; its equations are written in TeX, which the PDF shows typeset. This page at LibreTexts.

    4.2: Conversion between Analog and Digital Signals (A/D and D/A Conversions)
    Learning Objectives

    After completing this section, you will be able to:

    1. Describe the conversion process of analog-to-digital and digital-to-analog signals.
    2. Calculate the quantization error in terms of the signal-to-noise ratio during the analog-to-digital conversion as a function of A/D conversion bits.
    3. Describe the hardware (conversion circuits) for A/D and D/A converters.
    4. Define binary and decimal representations of a digital number in the information domain. Then conduct the associated conversion between the two representations.

    From Figure 4.1, a mechatronic system consists of two domains: physical and information domains. The physical domain is where the physical system hardware is located. Signals inside the physical domain are usually analog. The information domain is inside the microprocessor (or microcontroller) to process the digital signals and send the control signals to the physical domain. The mechatronic system control law is normally implemented into digital devices such as a microcontroller equipped with microprocessors, and both analog-to-digital (A/D) and digital-to-analog (D/A) converters. The microcontroller connects the discrete-time information domain to the continuous-time physical domain using A/D and D/A converters and other mechanisms that will be discussed in Section 4.6.

    Note that A/D and D/A converters are connected to physical sensors and actuators, respectively. For example, a servo-motor mechatronic system consists of physical domain components (including a DC motor, gear system, and position sensor) and information domain components (including mainly the microcontroller that converts the analog sensor signal into a digital one). The system generates the corresponding digital control signal and converts the digital control signal to an analog one. This section mainly addresses the conversion from analog to digital and from digital to analog signals. Figure 4.9 shows the detailed processes of A/D and D/A conversion located within the information domain seen earlier in Figure 4.1.

    A block diagram showing the process of signal conversion process between physical and information domains in a mechatronic system.
    Figure 4.9: Mechatronic system signal conversion process.

    Now, let’s dive into the A/D conversion process. It can be divided into three steps as shown in Figure 4.10: sample, digitization, and hold. In Figure 4.10 (a), the red curve represents the analog signal that is normally a DC voltage signal. To convert the analog signal to the digital one, a sample period \(T\) in second needs to be determined. (Section 4.5 will show how to determine a proper sample period.) The green dots in Figure 4.10 (a) is the sampled DC voltage.

    In a microprocessor, a digital number has a finite number of bits. Therefore, the sampled analog signal needs to be approximated by its nearest digital number. Figure 4.10 (b) shows a digitization process for a 3-bit binary number (see Table 4.2 for details), where the smallest binary number is \(000\) and the largest binary number is \(111\). Within the microprocessor, all numbers are represented using binary number; this will be discussed later in this section. In Figure 4.10 (b), the sampled data points (green dots) are approximated by the nearest digital number (red dots) below the sampled data points. Because the digital data will be updated only every sampled points (0, \(T,\) \(2T,\) \(\cdots\)), a sample hold will be used to represent the signal between any two nearby sample points, as demonstrated in Figure 4.10 (c) with the solid red line.

    Three graphic charts showing the A/D conversion process of sampling, digitization, and hold for a given signal with sample period of T.
    Figure 4.10: Analog-to-digital conversion process.

    Mathematically, the analog-to-digital conversion can be represented using the following steps. First, the sampling process can be shown below, where \(f(t)\) is the analog function to be converted (sampled), \(T\) is the sample period in second, \(k\) is the sample index (or step) in discrete-time domain similar to \(t\) in continuous-time domain with \(t=kT\), and \(f_s\left(k\right)\) is the sampled signal (as shown in Figure 4.10 (a) as green dots).

    \[f_s\left(k\right)=f(kT) \label{4.10}\]

    After the signal is sampled, the digitization process can be expressed by the following formula, where \(\mathcal{D}\left[\cdot \right]\) is a digitization operator that approximates the sampled analog signal \(f_s\left(k\right)\) by its nearest digital number \(f_d\left(k\right)\) (shown in Figure 4.10 (b) as red dots).

    \[f_d\left(k\right)=\mathcal{D}\left[f_s\left(k\right)\right] \label{4.11}\]

    Next, we will use an example to demonstrate the digitization process below.

    Digital binary # Analog voltage
    000 [0.0, 0.0625)
    001 [0.0625, 0.1875)
    010 [0.1875, 0.3125)
    011 [0.3125, 0.4375)
    100 [0.4375, 0.5625)
    101 [0.5625, 0.6875)
    110 [0.6875, 0.8125)
    111 [0.8125, 0.9375)
    Table 4.2: Analog voltage and binary digital number relationship for Example 4.2.
    Example 4.2

    This example will demonstrate how the digitization (or quantization) is completed in the process of analog-to-digital conversion. First, let’s define the desired relationship between the input analog signal in voltage and the output digital binary number in Table 4.2, where conventional mathematical notations are used. That is, the low limit is closed with a square bracket "[" and the upper limit is open with a rounded bracket ")". Table 4.2 indicates the corresponding binary digital number for a given analog voltage range. For example, if the input analog voltage is 0.35 volt, the corresponding binary output is 011, based upon the fourth data row in the table.

    Figure 4.11 shows the conversion process. The purple curve represents the given analog signal. The green dots are the sampled analog signal with a sample period of \(T\) second (note that the signal is sampled at 0, \(T\), \(2T\), . . .). In addition, the red dots are the binary approximations of the sampled signal (green dots) calculated based on Table 4.2.

    The quantization (or digitization) error is indicated in Figure 4.11 by the pair of blue arrows. The horizontal axis is the time in seconds whereas the vertical axis is the input analog signal in volts. The red text box at the bottom shows the discretized binary number for each sample point. From Figure 4.11, it can be found that the maximum quantization error is 0.0625 volt. Note that as the number of A/D digits increases, the A/D conversion error decreases.

    A graphic chart showing a three-step analog-to-digital conversion process marked with analog value, quantized valve, and quantization error.
    Figure 4.11: Analog-to-digital conversion diagram for a given signal.

    For most of the applications, 10- and 12-bit A/D converters are widely used; for certain high precision applications, 16-bit A/D may be used instead. In general, selecting the number of bits for an A/D converter is highly dependent on the allowed conversion error and cost. For example, for a 12-bit A/D converter with 5-volt reference voltage, the conversion error is \(5\times 2^{-12}=0.00122\) volt. In this case, the sensor signal noise level should be at a level similar to the conversion error in order to avoid affecting converted sensor signal accuracy.

    We have discussed in principle how an analog signal is converted into a digital one in three steps; see Figure 4.10. Now, we will address the A/D converter hardware used to implement this three-step conversion process. Figure 4.12 shows a fast analog-to-digital 2-bit conversion circuit using four comparators. Note that the resistors and comparators are analog circuits whereas the decoder is digital. When the input signal \(V_{in}\) is greater than the reference input (e.g., \(0.5\times V_{ref}\)), the corresponding bit (in this case, \(a_1\)) will be set to 1; otherwise, it will be set to 0.

    On the digital side, a program will convert the converted bits (\(a_3a_2a_1a_0\)) into the 2-bit binary number (\(b_1b_0\)). This is a relatively expensive conversion circuit because a lot of comparators are required. For example, for a 12-bit A/D convertor, \(2^{12}=4096\) comparators would be needed. The advantage of this type of A/C conversion circuit is its fast conversion speed.

    A circuit and decoder diagram used to realize analog-to-digital (A/D) conversion utilizing four comparators.
    Figure 4.12: Example of realizing analog-to-digital (A/D) conversion.

    Now we will discuss the digital-to-analog conversion process. Figure 4.13 shows a two-step digital-to-analog conversion process. First, the digital signal stored in the microprocessor is truncated to the proper bits that matches the D/A hardware. For example, if the microprocessor uses 32-bit floating digital numbers with a 10-bit D/A converter, these 32-bit floating numbers will be scaled, converted to a fixed-point binary number if needed (to be discussed later in this section), and truncated to match the number of bits for the D/A converter (10 bits in this case). Be aware that this truncation process introduces the D/A conversion error. Next, the fixed-bit digital number is sent to the D/A hardware to convert it to an analog signal (voltage). The D/A converter will hold the converted analog signal until the truncated digital number is updated. That is the reason that sometimes we call it a hold.

    Three graphic charts showing the three-step D/A conversion process of digital signal, truncated digital signal, and D/A analog signal with holder.
    Figure 4.13: Digital-to-analog (D/A) conversion process.

    Now that we have discussed in principle how a digital signal is converted into an analog one, let’s address the D/A converter hardware used to implement the two-step conversion process. Figure 4.14 shows a 4-bit digital-to-analog conversion circuit using only one operational amplifier and a few resistors.

    A circuit diagram and block diagram showing the realization of digital-to-analog (D/A) conversion using an operational amplifier with negative feedback.
    Figure 4.14: Example of realizing a 4-bit digital-to-analog (D/A) conversion.

    When \(b_i\) (\(i=0,\ 1,\ 2,\ 3\)) is one, \(-b_iV_{ref}=-V_{ref}\) so that there is a negative reference voltage of \(V_{ref}\) input to the circuit. This results in a current \(I_i\), where \(b_3b_2b_1b_0\) is the 4-bit binary number to be converted into the analog voltage. With the selected resistances in the circuit shown in Figure 4.14, we can have the current relationship shown in equation \ref{4.12}, based on the operational amplifier circuit review conducted in Chapter 2.

    \[I_F=I_3+I_2+I_1+I_0=-b_3\dfrac{V_{ref}}{2R}-b_2\dfrac{V_{ref}}{4R}-b_1\dfrac{V_{ref}}{8R}-b_0\dfrac{V_{ref}}{16R}\ \ \label{4.12}\]

    As a result, we can see the output analog voltage of the operational amplifier in Figure 4.14.

    \[V_{out}=-I_FR=b_3\dfrac{V_{ref}}{2}+b_2\dfrac{V_{ref}}{4}+b_1\dfrac{V_{ref}}{8}+b_0\dfrac{V_{ref}}{16}=V_{ref}\left(0.5b_3{+0.25b}_2+0.125b_1+0.0625b_0\right)\ \ \label{4.13}\]

    Example 4.3

    Let \(b_3b_2b_1b_0\) be a given 4-bit binary number ranging from 0 to 0.9375, where \(b_i\) is either \(1\) or \(0\) for \(i\mathrm{=}0,\ 1,\ 2,\ 3\). That is,

    \[{\left(b_3b_2b_1b_0\right)}_{binary}={\left(b_32^{-1}+b_22^{-2}+b_12^{-3}+b_02^{-4}\right)}_{decimal}\ \ \label{4.14}\]

    Therefore, if \(b_3b_2b_1b_0=1111\), the analog voltage output of the operational amplifier is \(0.9375V_{ref}\) based on equation \ref{4.14}. If \(b_3b_2b_1b_0=1011\), the resulting analog output voltage is \(0.6875V_{ref}\) based on equation \ref{4.14}.

    In Figure 4.12, a fast A/D conversion circuit is presented with relatively high hardware cost because thousands of comparators are needed for a 12-bit A/D converter. Now, we will present a low-cost A/D conversion circuit using the D/A converter seen in Figure 4.14. Figure 4.15 shows a 4-bit low-cost A/D conversion circuit where one operational amplifier and one comparator are used along with a few analog switches and a digital counter.

    Note that a 4-bit D/A conversion circuit is in the middle section of the conversion circuit. The A/D conversion process starts by resetting the count to zero. Because the input analog signal \(V_{in}\) is greater than zero, the comparator output is high (or \(1\)); the operational amplifier output is zero volt due to resetting the counter. Therefore, after resetting, the counter will count up due to enabling counting from the comparator output as well as clock input. As the counted number increases, these analog switches will be closed with \(b_i=1\) (\(i=0,\ 1,\ 2,\ 3\)) and the operational amplifier output gradually increases.

    The counting will stop when the comparator output becomes low, i.e., the operational amplifier output is greater than the input voltage \(V_{in}\). In this case, the stopped counting number is the A/D converted binary digital number \(b_3b_2b_1b_0\). The advantage of this A/D circuit is its low cost. However, the disadvantage is its slowness because we have to wait the counted number to increase in order to make the operational amplifier output match with the analog input. For a 12-bit A/D converter, this could take 4096 clock pulses, which could take some time. Meanwhile, the A/D conversion in Figure 4.12 is almost instantaneous.

    A circuit diagram with a digital counter of a clock signal used to realize analog-to-digital (A/D) conversion using only one operational amplifier and comparator.
    Figure 4.15: A 4-bit low-cost A/D conversion circuit.

    Computers and digital devices represent and store information in a binary number format. The smallest unit is called a bit (binary digit) which can be represented by only two states: \(0\) or \(1\). Many bits together represent more states. There are two main reasons to use binary number for representation and arithmetic:

    1. A transistor is the basic building block of nearly all current digital technologies. It is designed to act like a switch having two distinct states (\(0\) and \(1\): on and off).
    2. Semiconductor memory (such as RAM—random access memory), magnetic disks, and optical disks store only one of two possible states (\(0\) or \(1\)) at each physical location on the device.

    An \(N\)-bit binary number can represent \(2^N\) states; the stored integer is between 0 and \(2^N-1\).

    Next, let’s look at converting a number between its binary and decimal forms. This process is relatively simple compared with the reversed process. The general method of converting an 8-bit binary number \(b_7b_6b_5b_4b_3b_2b_1b_0\) (where \(b_i\) is either zero or “\(1\)”) is stated in the following equation.

    \[{\left(b_7b_6b_5b_4b_3b_2b_1b_0\right)}_{binary}={\left(\sum^7_{i=0}{b_i2^i}\right)}_{decimal}\ \ \label{4.15}\]

    For example, if \(b_7b_6b_5b_4b_3b_2b_1b_0=11010101\),

    \[{\left(11010101\right)}_{binary}={\left( \begin{array}{c} 1\times 2^7+1\times 2^6+0\times 2^5+1\times 2^4+0\times 2^3 \\ +1\times 2^2+0\times 2^1+1\times 2^0 \end{array} \right)}_{decimal}=213 \label{4.16}\]

    The conversion process from a decimal number to a binary one is more complicated than the process of converting from binary to decimal. Figure 4.1 illustrates the process of converting the decimal number 213 to its binary equivalent. We first compare \(213\) with \(2^7\) (or \(128\)) associated with the highest bit. If it is greater than \(128\), bit \(b_7\) is set to one and \(128\) is subtracted from 213. The resulting number of \(85\) is then compared with \(2^6\) (or \(64\)). Because \(85\) is greater than \(64\), bit \(b_6\) is set to one and 64 is subtracted from \(85\). The remainder \(21\) is smaller than \(32\), so bit \(b_5\) is set to zero. In turn, \(21\) is used as the remaining number for the next bit. This process will be repeated through the last bit of \(b_0\), resulting in a binary number of \(11010101\). If this process is followed correctly, it will end with zero remaining

    A schematic diagram showing the decimal to binary number conversion process of an eight-bit number.
    Figure 4.16: Decimal to binary number conversion process.

    Note that the decimal number 213 can also be factored into the following summation weighted by binary power of \(2^i\) (\(i=7,\ 6,\ \dots ,\ 0\)).

    \[213=1\times 2^7+1\times 2^6+0\times 2^5+1\times 2^4+0\times 2^3+1\times 2^2+0\times 2^1+1\times 2^0 \label{4.17}\]

    The conversion process we’ve discussed is for integers. Now, the question is how to express a number with a fraction. Figure 4.17 shows how by moving the fraction point from the right-most point to the middle (blue dot). Those bits on the left of the blue dot represent the integer part and those on the right of the blue dot represent the fraction. The number converted in Figure 4.17 has the relationship shown in the equation below.

    \[\begin{array}{cc} {\left(01101.101\right)}_2 & =1\times 2^3+1\times 2^2+0\times 2^1+1\times 2^0+1\times 2^{-1}+0\times 2^{-2}+1\times 2^{-3}\ \ \ \ \\ & ={\left(13.625\right)}_{decimal} \end{array} \label{4.18}\]

    Here, the decimal number 13.625 is expressed by a summation of weighted binary power factors. The calculation method to obtain these weighting coefficients (binary expression) is the same as the one we used in Figure 4.16.

    A schematic diagram showing the format of an eight-bit fixed-point binary fractional number.
    Figure 4.17: Fixed-point binary fractional number format.

    Low-cost microcontrollers often use the fixed-point fraction expression (see Figure 4.17) because it is simple, uses less memory, and can be connected with A/D and D/A converters directly with a scaling factor. However, the disadvantage of using fixed point format is its high digitization error, especially for small numbers. For example, given the decimal number \(0.625234\), the fixed-point fraction expression in Figure 4.17 is \(0.625\) (\(00000.101\) binary), leading to word length error of \(0.000234\).

    In order to reduce the transaction error based on a digital expression’s word length, a floating-point fraction expression is often used in relatively high-end microcontrollers. The commonly used floating-point formats are 32-bit single precision and 64-bit double precision arithmetic; see [19] for IEEE 754-2018 standard. The 32-bit floating-point format uses 4 bytes (one byte containing 8 bits), where the first bit represents the sign of the number, the next 8 bits are for the exponent, and the remaining 23 bits are for the significand. For the double precision format (32-bit floating-point format), there are 11 bits for the exponent and 52 bits for the significand.

    Next, we’re going to concentrate on the 32-bit single precision format. The 64-bit double precision case is similar to the single precision case, but with different numbers of bits for exponent and significand. For the 32-bit single precision case, the first bit represents the sign of the number, where \(0\) is positive and \(1\) is negative. The 8-bit exponent from bits \(2\) to \(9\) (see Figure 4.18) is not a power of ten, but powers of two. That is, 8-bit stored exponents can range from \(-127\) to \(127\), stored as \(0\) to \(254\), where \(127\) represents zero exponent of \(2\). Note that the value \(2^{127}\) is roughly equivalent to \({10}^{38}\), which is the actual limit of a single-precision number. The significand from bits 10 to 32 is stored as a binary fraction of the form \(1.\times \times \times \times \cdots\).

    This fraction has a value greater than or equal to 1 and less than 2. Real numbers are always stored in its normalized form. That is, the significand is left-shifted such that the high-order bit of the significand is always 1. Because this bit is always 1, we assume it is in the single-precision and double-precision formats implicitly. The binary point (not the decimal one) is assumed to be just to the right of the leading \(1\). That is, only the “\(\times \times \times \cdots\)” part is represented in bits 10 to 32. Example 4.4 and Figure 4.18 provide examples for the 32-bit single precision format.

    A schematic diagram showing the format of a 32-bit floating-point binary number format with three decimal numbers.
    Figure 4.18: Floating point binary number format.
    Example 4.4

    The number \(2.0\) can be expressed as \(1.0\times 2^1\). Note that before proceeding to determine the number \(2.0\)’s single precision form, we need to factor it into a coefficient between \(1\) and \(2\) and multiply to an exponent of \(2\). The single precision form of the number \(2.0\) can be found in the second row of Figure 4.18. Note that bit 1 is zero because \(2.0\) is positive; bits 2–9 are \(10000000\) (its decimal form is \(128\)) because \(127\) plus exponent \(1\) equals \(128\); and bits 10–32 are all zeros because the coefficient number (\(1.0\)) after \(1\) is zero.

    Next, consider the number \(0.75\), which can be expressed as \(1.5\times 2^{-1}\). Note that \(1.5\) is between \(1\) and \(2\). The single precision form of number \(0.75\) can be found in the third row of Figure 4.18. Note that bit 1 is zero because \(0.75\) is positive. Bits 2–9 are \(01111110\) (its decimal form is \(126\)) because \(127\) plus exponent \(-1\) equals \(126\). Bits 11–32 are all zeros except bit 10, which is \(1\) because the coefficient number (\(1.5\)) after \(1\) is \(0.5\), which is equal to \(2^{-1}\).

    Last, consider the number \(-13.625\), which can be expressed as \(-1.703125\times 2^3\). Note that \(1.703125\) is between 1 and 2. The single precision form of the number \(-13.625\) can be found in the fourth row of Figure 4.18. Bit 1 is one because \(-13.625\) is negative. Bits 2–9 are \(10000010\) (its decimal form is \(130\)) because \(127\) plus exponent 3 equals 130. In turn, bits 10–15 are \(.101101\) and bits 16–32 are all zeros. The decimal form of \(.101101\) in this case is \(0.703125\) because it can be factored as follows.

    \[\begin{array}{cc} \ {\left(.101101\right)}_2 & =1\times 2^{-1}+0\times 2^{-2}+1\times 2^{-3}+1\times 2^{-4}+0\times 2^{-5}+1\times 2^{-6} \\ & ={\left(0.703125\right)}_{decimal} \end{array} \label{4.19}\]

    In addition, \(101.101\) is the same as the last 6 binary digits for the fixed-point representation of \(13.625\).

    There are also two special cases: zero and infinity. Note that the format discussed above cannot express both zero and infinity because we cannot express zero in the form of \(1.\times \times \times \times \cdots\) and infinity with a finite exponent. As a result, zero will be expressed with exponent and significand parts equal to zero for all 31 bits; and the first bit can be either \(0\) or \(1\). Meanwhile, the plus infinity (\(+\infty\)) and negative infinity (\(-\infty )\) values are represented by an exponent of all ones with a significand of all zeroes. Positive and negative are represented by using the sign bit 0 for positive and 1 for negative.

    Now, we will discuss the quantization error due to number of bits in the A/D converter. Note that quantization rounds to the closest discrete level. The accuracy of digitized signal depends on the number of bits used per sample. The error of quantization operation goes down as the number of bits increases. Using \(N\) bits to store each sample provides \(2^N\) quantization levels. For example, \(2\) bits give \(4\) levels, \(3\) bits give \(8\) levels, \(4\) bits give \(16\) levels, \(8\) bits give \(256\) levels, 10 bits give \(1024\) levels, 12 bits give \(4096\) levels, and 16 bits give \(65,536\) levels. Figure 4.19 shows the effect of the quantization error as a function of number of bits used to store the signal. We can see that the quantization error gradually reduces as the number of bits increases, where 3 bits show the largest error between red and blue curves and 5 bits have the smallest error between red and blue lines.

    Three MATLAB plots showing the relationship between A/D number of bits and associated quantization error for 3-, 4-, and 5-bit A/D conversions
    Figure 4.19: A/D number of bits and its quantization error.

    The last content we will cover in this section is the concept of signal-to-noise ratio (SNR) due to signal quantization, which is defined below.

    Definition 4.2

    The signal-to-noise ratio (SNR) is defined as the magnitude ratio of the maximum signal level to the maximum noise (quantization error) level. The general form for SNR is defined for two cases. The first case is for positive numbers with \(N\) bits; the SNR can be calculated by the following formula,

    \[ SNR=\dfrac{2^N-1}{2^{-1}}~=2^{N+1}-2 \label{4.20}\]

    The second case is for positive and negative numbers with \(N\) bits; the SNR can be calculated by the following formula,

    \[ SNR=\dfrac{2^{N-1}-1}{2^{-1}}~=2^N-2 \label{4.21}\]

    Example 4.5

    For Figure 4.20, calculate the corresponding signal-to-noise ratio (SNR) for positive and positive/negative cases.

    Two MATLAB plots showing the digitization of a 2-bit positive and 4-bit positive/negative representation of two signals for visualization of digitization noises.
    Figure 4.20: Positive and positive/negative signal-to-noise ratios.

    For the positive case shown on the left plot of Figure 4.20, the number of bits \(N=3\) and the positive number signal-to-noise ratio (\(SNR=14\)) can be calculated by the following equation.

    \[SNR\ =\dfrac{2^N-1}{2^{-1}}=\dfrac{7}{0.5}\ =\ 14 \label{4.22}\]

    For the positive/negative case shown on the right plot of Figure 4.20, the number of bits \(N=4\) and the positive/negative number signal-to-noise ratio (\(SNR=14\)) can be calculated by the following equation.

    \[SNR\ =\dfrac{2^{N-1}-1}{2^{-1}}=\dfrac{7}{0.5}\ =\ 14 \label{4.23}\]

    Section Summary

    This section discusses the analog-to-digital (A/D) and digital-to-analog (D/A) conversion processes. The electric circuits that perform these conversions are called analog-to-digital (A/D) and digital-to-analog (D/A) converters, respectively. Most A/D and D/A converters are fabricated as integrated circuits. They can be found at place where analog signals are to be sampled, quantized, or transmitted digitally, e.g., internet, cell phones, computers, and automobiles. Note that the quantization operation causes errors in representing digitized information. These errors are called quantization (or digitization) noises because the effect of quantization errors sounds like noise in a digitized music signal and looks like noises in a digital image. In general, the higher the A/D bits, the smaller the quantization error.

    Section Keywords

    Practice Problems

    1. What is the signal-to-noise ratio of a 10-bit A/D converter due to quantization error (positive) with \(N=10\)?
    1. How many comparators are needed for an 8-bit the A/D conversion circuit shown in Figure 4.12?
      1. 32
      2. 128
      3. 256
    1. An 8-bit digital number of \(11110101\) is sent to an 8-bit D/A converter with reference voltage of \(5\) volts. What is the resulting analog voltage output from the D/A converter?
      1. 3.256 volts
      2. 4.805 volts
      3. 6.256 volts
    1. What is the 32-bit single precision representation of decimal number \(-4.625\)?
      1. 0 00000010 0010100…0
      2. 0 10000001 0010110…0
      3. 1 10000001 0010100…0

     


    This page titled 4.2: Conversion between Analog and Digital Signals (A/D and D/A Conversions) was last modified on Sun, 23 Aug 2026 22:33:35 GMT and is shared under a CC BY-NC 4.0 license and was authored, remixed, and/or curated by Guoming Zhu (Co-DREAM OER) .