Download presentation

Presentation is loading. Please wait.

Published byIliana Shepley Modified about 1 year ago

1
A NALOG TO D IGITAL C ONVERTERS (ADC S ) & D IGITAL TO A NALOG C ONVERTERS (DAC S )

2
A NALOG TO D IGITAL C ONVERSION (ADC) Analog to Digital Conversion is the process by which analog signals are converted to their digitized forms. ADC occurs via three steps: - Sampling. - Quantization. - Encoding.

3
T HE IDEA OF S AMPLING The analog signal is sampled at regular intervals of time. The sampling rate must be at least twice the highest frequency of the signal ( Nyquist Criterion ).

4
Q UANTIZATION Quantization is defined as the process of converting the continuous sample amplitude into a discrete amplitude. Thus by then, the signal will be discrete in both; time and amplitude.

5
Q UANTIZATION E RROR The difference between the actual analog value and quantized digital value.

6
E NCODING Encoding is the process which assigns ones and zeros (stream of bits) for every quantization level. The number of bits assigned for each level ( n ) depends on the levels’ number ( L ) ; such that L= 2^n.

7
I DEAL ADC Q = Δ=quantization step = full scale / levels’ number. In an ideal analog-to-digital converter, the quantization error is uniformly distributed between –Δ/2 and Δ/2. The resolution of the ADC is the smallest detectable change in voltage.

8
T YPES O F ADC S There are many types of ADCs such as: 1. Direct Conversion ADC. 2. Successive Approximation Register (SAR) ADC. 3. Integrating ADCs: Single slope, dual slope, and ramp ADC. 4. Sigma-Delta ADC (over sampled ADC). 5. ADC0804 Analog to Digital Converter. In our experiment ADC0804, and the SAR ADC are explained.

9
ADC0804 A NALOG TO D IGITAL C ONVERTER ADC0804 is a 20-pin IC with an 8-bit resolution. The analog input voltage range is from 0 V to 5 V, with 15 mW power consumption and 100 us conversion time.

10
SAR ADC It is one of the popular ADCs for 8-16 bits. It has moderate conversion speeds ; the conversion time is around 1 Us. It doesn’t consume a lot of power and its cost is low in comparison with the other types. On the other hand, it requires a sample and hold circuit and it can have missing output codes.

11
T HE B LOCK DIAGRAM OF SAR ADC AND ITS FLOW CHART

12
D ESCRIPTION OF OPERATION A successive approximation ADC works by using a digital to analog converter (DAC) and a comparator to perform a binary search to ﬁnd the input voltage. A sample and hold circuit (S&H) is used to sample the analog input voltage and hold (i.e. keep a non-changing copy) the sampled value whilst the binary search is performed. The binary search starts with the most signiﬁcant bit (MSB) and works towards the least signiﬁcant bit (LSB). For a 8-bit output resolution, 8 comparisons are needed in the binary search, taking a least 8 clock cycles. The sample and hold circuit samples the analog input on a rising edge of the sample signal. The comparator output is a logic 1 if the sampled analog voltage is greater than the output of the DAC, 0 otherwise.

13
Example: Vref=5V, Vs=3.127V, 4-bits.(b1b2b3b4) 1.Set b1=1 all b2b3b4=000 >> 1000 Vdac=8*5/(2^4)=2.5V (Vdac=2.5)>(Vs=3.127) No!! b1=1 2. Set b2=1 all b3b4=00 >> 1100 Vdac=12*5/(2^4)=3.75V (Vdac=3.75)>(Vs=3.127) Yes b2=0 3. Set b3=1 b4=0 >> 1010 Vdac=10*5/(2^4)=3.125V (Vdac=3.125)>(Vs=3.127) No!! b3=1 4. Set b4=1 >>1011 Vdac=11*5/(2^4)=3.4375V (Vdac=3.4375)>(Vs=3.127) Yes b4=0 Final Result=1010

14
D IGITAL T O A NALOG C ONVERSION ( DAC) Digital to analog converter (DAC) is the device which converts digital signals to analog ones. Most of the DACs consist of a network of resistors and analog switches. The switches control the currents or voltages that are derived from a particular reference voltage and provide analog output current.

15
T YPES O F DAC S There are many types of DACs such as: 1. Weighted resistor DAC. 2. R-2R DAC. 3. General purpose DAC ( DAC 0800). 4. Frequency to voltage converter. 5. Pulse width modulation. In our experiment, R-2R DAC and the general purpose DAC are explained.

16
R-2R DAC The Block diagram of R-2R DAC is as shown below: The analog output is given by the following equation: The highest resistance value is only 2R and thus requires an area inside the IC less 8 times than that of the weighted resistor DAC which highest resistance is 16R.

17
The DAC analog output is represented by current. This current is the ratio of the input code to the full scale voltage (Vref) as given in the following equation: So, an operational amplifier is needed to convert the current to voltage level.

18
T HE G ENERAL P URPOSE ( DAC 0800) The block diagram of DAC 0800 is as shown below: It’s clear that it’s a 8-bit DAC with 16 pins IC. The conversion time is around 100ns.

19
B IPOLAR / U NIPOLAR DAC S For unipolar DACs, the output voltage is given by: For bipolar DACs, the output voltage is given by:

Similar presentations

© 2017 SlidePlayer.com Inc.

All rights reserved.

Ads by Google