Digital Lab > ADC and DAC
In modern life, electronic equipment is frequently used in different fields such as communication, transportation, entertainment, etc. Analog to Digital Converter (ADC) and Digital to Analog Converter (DAC) are very important components in electronic equipment. Since most real world signals are analog, these two converting interfaces are necessary to allow digital electronic equipments to process the analog signals. Take the audio signal processing in Figure 1 as an example, ADC converts the analog signal collected by audio input equipment, such as a microphone, into a digital signal that can be processed by computer. The computer may add sound effect such as echo and adjust the tempo and pitch of the music. DAC converts the processed digital signal back into the analog signal that is used by audio output equipment such as a speaker.
A DAC can be constructed by using a Summing Amplifier and a set of resistors R, 2R, 4R and 8R as its inputs, Figure 2. The resistors are scaled to represent weights for the different input bits.
The resistor with the lowest value R corresponds to the highest weighted binary input Bit 3 (MSB) [23 = 8], and 2R, 4R, 8R correspond to the binary weights of Bit 2 (22 = 4), Bit 1 (21 = 2), and Bit 0 (LSB) [20 = 1] respectively. The relationship between the digital inputs (Bit 0 to Bit 3) and the analog output VOUT is as follow:
where Vref is the Reference Voltage of the circuit. Assuming the value of Vref as 5 V, the Analog Output Voltages corresponding to the Digital Input Codes is shown in Table 1.
In electronics, an Analog to Digital Converter (ADC) is a device for converting an analog signal (current, voltage etc.) to a digital code, usually binary. In the real world, most of the signals sensed and processed by humans are analog signals. Analog-to-Digital conversion is the primary means by which analog signal are converted into digital data that can be processed by computers for various purposes, Figure 3.
There are many types of ADC for different applications. The most inexpensive type of ADC is a Successive-Approximation ADC. Figure 4 shows the transfer curve of a 4-bit ADC. Inside a Successive-Approximation ADC, a series of digital codes, each corresponds to a fix analog level, are generated successively by an internal counter to compare with the analog signal under conversion. The generation is stopped when the analog level becomes just larger than the analog signal. The digital code corresponds to the analog level is the desired digital representation of the analog signal.
The performance of ADCs and DACs mainly depends on their Resolution and Speed.
The Resolution of a converter is expressed in the number of Bit. For an ADC, the Resolution states the number of intervals or levels which can be divided from a certain analog input range. An n-bit ADC has the resolution of 1 / 2n. For example, the Resolution of a 16-bit ADC is 1 / 65536, since 216 = 65536. If the measuring voltage range is 10 V, then this input range can be resolved into 10 V / 65536 = 0.153 mV precision.
The Speed of a converter is expressed by the Sampling Frequency. It is the number of times that the converter samples the analog signal, its unit is Hertz (Hz). In audio signal processing, Sampling Frequencies of 44 kHz, 22 kHz and 11 kHz are mostly used. Using 44 kHz Sampling Frequency means the converter is sampling the analog audio signal and doing analog to digital conversion at 44000 times per second. The higher the Sampling Frequency, the lower the distortion and the better the sound quality.
ADCs are used virtually everywhere, whenever an analog signal has to be transported, it is processed and stored in digital form. They are always used together with different transducers to convert physical sense and measurement such as temperature, pressure, humidity, speed, vibration, sound, picture etc. in digital signal for further processing by microprocessor.
A Voltmeter is a measuring instrument for measuring the Voltage between two points in an electric circuit.
This Exhibit is a simple application of the ADC for measuring the value of an analog input. Figure 4 is its block diagram. The 1-Digit Voltmeter consists of an ADC, a Clock Generator, a 4-bit Binary Counter, a BCD to 7-Segment Decoder and a 7-Segment LED Display.
The operation flow is as follow:
Digital Lab > ADC and DAC