Академический Документы
Профессиональный Документы
Культура Документы
The vast majority of signals in the world around us are analog. Most physical variables such as temperature, pressure, light intensity, audio signal, flow rate, speed, position etc. are analog in nature and can take on any value within a continuous range of values. For example, the output voltage of a thermocouple is analog because each possible value corresponds to different temperature On the other hand digital signals are represented by waveforms, which make abrupt transitions between two values. For example, a TTL circuit will assume logic 0 for voltage values between 0 V to 0.8 V and logic 1 for voltage values between 2 V to 5 V During the transmission of time varying output voltage (analog signal) of a microphone to a distantly located loud speaker, random unpredictable disturbance (known as noise) are superimposed on the actual analog signal. A most effective way of suppressing noise is to transmit the signal digitally
S. Kal, IIT-Kharagpur
Any information that has to be inputted to a digital system must first be put into digital form. Similarly the outputs of any digital system are always in digital form. Thus, to process any physical analog signal in any digital system, the conversion of signal from analog to digital (A/D) is absolutely necessary After the digital processing is completed, reconstitution of an analog output signal is required to get back the original physical quantity through a suitable transducer. This reconstitution of analog signal is accomplished by the operation of digital-toanalog (D/A) conversion Now a days, digital computers are used widely to monitor and/or control a physical process. So we must deal with the difference between the digital nature of the computer and the analog nature of the process variables. Thus, knowledge of conversion of analog signal to digital and vice versa is absolutely necessary in modern electronic instrumentation and data acquisition system
S. Kal, IIT-Kharagpur
The first block is a transducer that converts the physical variable to an electrical variable The signal from the transducer is then converted to its digital equivalent in the second block, known as analog Analog to Digital Converter (ADC). The digital output consists of a number of bits that represents the value of the analog input
S. Kal, IIT-Kharagpur
The digital representation of the process variable is transmitted from the ADC to the digital computer (third block), which stores the digital value and processes it according to a program of instruction that it is executing The digital output from the computer is connected to a subsequent block known as Digital-to-Analog Converter (DAC), which converts it to a proportional analog voltage or current The analog signal from the DAC id often connected to some device or circuit that serves as an actuator (fifth block) to control the physical variable Thus ADC and DAC work as an interface between the analog world and a completely digital system
S. Kal, IIT-Kharagpur
An analog voltage signal is divided at equal intervals along the time axis (t0, t1, t2, t3 etc.). At each of these time instants the magnitude of the signal is measured they are known as samples and the process is known as sampling
S. Kal, IIT-Kharagpur
Here b0 and bN-1 are represented as least significant bit (LSB) and most significant bit (MSB) respectively and this binary number is conventionally written as bN-1bN-2 . b0. It is to be noted that such a representation quantizes the analog sample into 2N levels In the figure decision points occur at 1.25 V, 2.50 V,., and 8.75 V The analog quantization size Q is defined as the full scale range of the A/D converter divided by the number of output states: Q = (Vmax Vmin) / N. It is a measure of the analog change that can be resolved by the converter. For this example, the analog quantization size is 10 V/ 8 = 1.25 V. This means that the amplitude of the digitized signal will have an error of at most 1.25 V. Sometimes resolution is used to refer to the analog quantization size
S. Kal, IIT-Kharagpur
The signal S(t) is regularly sampled at times indicated by the dots on the waveform. The anticipated peak-to-peak range R is 7 V extending from 3.5 to +3.5 V
S. Kal, IIT-Kharagpur
10
11
The control unit contains the logic circuitry for generating the proper sequence of operation in response to start command, which initiates the conversion process. At a rate determined by the clock, the control unit continually modifies the binary number that is stored in the register
S. Kal, IIT-Kharagpur
12
The binary number in the register is converted to an analog voltage, VAD, by the DAC. The op-amp comparator has two analog inputs and a digital output that switches states, depending on which analog input is greater. The comparator compares VAD with the analog input VA. As long as VAD< VA, the comparator output stays high. When VAD exceeds VA by at least an amount = VT (threshold voltage), the comparator output goes LOW and stops the process of modifying the register number. At this point, VAD is a close approximation of VA The digital number in the register, which is the digital equivalent of VAD, is also the approximate digital equivalent of VA, within the resolution and accuracy of the system The control logic activates the end-of-conversion signal, EOC, When the conversion is complete
S. Kal, IIT-Kharagpur
13
14
15
Basic block diagram of successive approximation converter (SAC) It uses a DAC in a feedback loop and successive approximation
register to provide the input to the DAC
16
The digital inputs Q3, Q2, Q1, Q0 are usually derived from the register of a digital system. For each of 24 = 16 input binary numbers, the D/A converter output voltage is a unique value. This value could be same as decimal equivalent of binary number or there could have been other proportionality factor
S. Kal, IIT-Kharagpur
17
18
19
20
The inputs Q0 (LSB), Q1, Q2, Q3 (MSB) are binary inputs which are assumed to have values either 0 (logic 0) or say 5 V (logic 1). The operational amplifier produces the weighted sum of these input voltages. The input resistors are binarily weighted, i.e, starting with MSB resistor, the resistor value increases by a factor of 2.
S. Kal, IIT-Kharagpur
21
In a binary-weighted resistor D/A converter circuit, VOUT = - [(Rf / R) VQ3 + (Rf / 2R) VQ2 + (Rf / 4R) VQ1 + (Rf / 8R) VQ0 = Rf / R [ VQ3 + ( ) VQ2 + ( ) VQ1 + ( 1/8 ) VQ0 ] or, VOUT = - [ VQ3 + ( ) VQ2 + ( ) VQ1 + ( 1/8 ) VQ0 ] ( for Rf = R = 1 k;) The summing amplifier passes the voltage at Q3 input without attenuation. But the inputs at Q2, Q1, and Q0 will be attenuated by , and 1/8 respectively. Thus the summing amplifier output is an analog voltage which represents a weighted sum of the digital inputs The output is evaluated for any input condition by setting the appropriate inputs to either 0 (logic 0) or 5 V (logic 1). For example, if the digital input is 0001, then VQ3 = VQ2 = VQ1 = 0 V and VQ0 = 5 V. Thus, VOUT = 0.625 V, which corresponds to LSB
S. Kal, IIT-Kharagpur
22
23
24
2.
25
26