Presentation is loading. Please wait.

Presentation is loading. Please wait.

Conversation between Analogue and Digital System

Similar presentations


Presentation on theme: "Conversation between Analogue and Digital System"— Presentation transcript:

1 Conversation between Analogue and Digital System
Analogue to Digital Converter Digital to Analogue Converter

2 Introduction Analog to digital converter (ADC) and digital to analog converter (DAC) are used to interface a computer to the analog world so that the computer can monitor and control a physical variable.

3 Analog – to – Digital Conversion
Takes an analog input voltage and after a certain amount of time produces a digital output code that represents the analog input. ADC process is generally more complex than DAC.

4 Sampling Most input signals to an electronic system start out as analog signals. For processing, the signal is normally converted to a digital signal by sampling the input. Before sampling, the analog input must be filtered with a low-pass anti-aliasing filter. The filter eliminates frequencies that exceed a certain limit that is determined by the sampling rate.

5 Stated as an equation, fsample > 2fa(max)
To understand the need for an anti-aliasing filter, you need to understand the sampling theorem which essentially states: In order to recover a signal, the sampling rate must be greater than twice the highest frequency in the signal. Stated as an equation, fsample > 2fa(max) where fsample = sampling frequency fa(max) = highest harmonic in the analog signal If the signal is sampled less than this, the recovery process will produce frequencies that are entirely different than in the original signal. These “masquerading” signals are called aliases.

6 Quantization – is a process of converting an analog value to a code
Quantization – is a process of converting an analog value to a code. During the quantization, the ADC converts each sampled value of analog signal to a binary code. The more bits that are used to represent a sampled value, the more accurate is the representation. Fig 2

7 Sample interval Quantization level Code 1 00 2 01 3 10 4 5 6 7 8 9 11 12 13

8 The reconstructed waveform in Figure 2 using four quantization levels (2 bits). The original analog waveform is shown in light gray for reference.

9

10 Operational amplified – op-amp is a linear amplifier which has two inputs (inverting and noninverting) and one output.

11 Flash Analog to Digital Converter
The flash method utilizes special high speed comparators that compare reference voltages with the analog input voltage. When the input voltage exceeds the reference voltage for a given comparator, a HIGH is generated. 2n-1 comparators are required to convert n – bit binary code. Advantage: it provides a fast conversion time Disadvantage: A large number of comparator is needed

12 Flash Analog to Digital Converter
Fig 3

13 Determine the binary code output of the 3-bit flash ADC in Fig 3 for the input signal in Fig 4 and the encoder enable pulses shown. For this example, the Vref = +8V.

14

15 Dual Slope Analog to Digital Converter
Commonly used in digital voltmeters and other types of measurement instruments.

16 Successive Approximation Analog to Digital Converter

17 Digital – to – Analog Converter (DAC)
Process of taking a value represented in digital code (such as straight binary or BCD) and converting it to a voltage or current that is proportional to the digital value. A positive half-wave from 0-10 V is shown in blue. The sample-and-hold circuit produces the staircase representation shown in red. 0 V 10 V

18 Digital-to-Analog Conversion Methods
Binary-weighted-input DAC: The binary-weighted-input DAC is a basic DAC in which the input current in each resistor is proportional to the column weight in the binary numbering system. It requires very accurate resistors and identical HIGH level voltages for accuracy. LSB 8R Rf D0 The MSB is represented by the largest current, so it has the smallest resistor. To simplify analysis, assume all current goes through Rf and none into the op-amp. 4R D1 2R Vout D2 Analog output R D3 MSB

19 Example 1 Example Solution Digital-to-Analog Conversion Methods
A certain binary-weighted-input DAC has a binary input of If a HIGH = +3.0 V and a LOW = 0 V, what is Vout? 120 kW Rf +3.0 V 60 kW 10 kW 0 V 30 kW Vout +3.0 V 15 kW +3.0 V Solution Vout = Iout Rf = (−0.325 mA)(10 kW) = −3.25 V

20

21

22

23 Digital-to-Analog Conversion Methods
R-2R ladder: The R-2R ladder requires only two values of resistors. By calculating a Thevenin equivalent circuit for each input, you can show that the output is proportional to the binary weight of inputs that are HIGH. Each input that is HIGH contributes to the output: where VS = input HIGH level voltage n = number of bits i = bit number Inputs D0 D1 D2 D3 For accuracy, the resistors must be precise ratios, which is easily done in integrated circuits. R1 R3 R5 R7 Rf = 2R 2R 2R 2R 2R R2 R4 R6 R8 2R R R R Vout

24 Example 2 Example Solution Digital-to-Analog Conversion Methods
An R-2R ladder has a binary input of If a HIGH = +5.0 V and a LOW = 0 V, what is Vout? Example D0 D1 D2 D3 +5.0 V +5.0 V 0 V +5.0 V R1 R3 R5 R7 Rf = 50 kW 50 kW 50 kW 50 kW 50 kW R2 R4 R6 R8 50 kW 25 kW 25 kW 25 kW Vout Solution Apply to all inputs that are HIGH, then sum the results. Applying superposition, Vout = −3.44 V

25 Summary Question Answer Resolution and Accuracy of DACs
The R-2R ladder is relatively easy to manufacturer and is available in IC packages. DACs based on the R-2R network are available in 8, 10, and 12-bit versions. The resolution is an important specification, defined as the reciprocal of the number of steps in the output. What is the resolution of the BCN31 R-2R ladder network, which has 8-bits? Question Answer Number of steps: 28 – 1 = 255 % Resolution: 1/255 = 0.39%

26 Performance characteristics of a DAC
Resolution – the resolution of DAC is the reciprocal of the number of discrete steps in the output. For example: a 4-bit DAC has a resolution of one part in Expressed as a percentage, (1/15)*100 = 6.67%. Offset Error – ideally, the output of a DAC will be zero volts when the binary input is all 0s. In practice however, there will be a small output voltage for this kind od situation. Accuracy – accuracy is derived from a comparison if the actual output if a DAC with the expected output. It is expressed as a percentage of a full scale or maximum, output voltage. For example: if a converter has a full scale output of 10V and the accuracy ±0.1%, then the maximum error for any output voltage is (10V) (0.001) = 10 mV.


Download ppt "Conversation between Analogue and Digital System"

Similar presentations


Ads by Google