analog to digital converters (adcs) & digital to analog converters (dacs)

18
ANALOG TO DIGITAL CONVERTERS (ADCS) & DIGITAL TO ANALOG CONVERTERS (DACS)

Upload: clayton-browning

Post on 01-Jan-2016

152 views

Category:

Documents


14 download

DESCRIPTION

Analog to Digital Converters (ADCs) & Digital to Analog Converters (DACs). Analog to Digital Conversion (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. - PowerPoint PPT Presentation

TRANSCRIPT

ANALOG TO DIGITAL CONVERTERS (ADCS)

& DIGITAL TO ANALOG

CONVERTERS (DACS)

ANALOG TO DIGITAL CONVERSION (ADC)

Analog to Digital Conversion is the

process by which analog signals areconverted to their digitized forms.

ADC occurs via three steps: - Sampling. - Quantization. - Encoding.

THE IDEA OF SAMPLING 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).

QUANTIZATION 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.

QUANTIZATION ERROR The difference between the actual analog value

and quantized digital value.

ENCODING 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.

IDEAL 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.

TYPES OF ADCS 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.

ADC0804 ANALOG TO DIGITAL CONVERTER

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 .

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.

THE BLOCK DIAGRAM OF SAR ADC AND ITS FLOW CHART

Example:Vref=5V, Vs=3.127V, 4-bits.(b1b2b3b4)

1. Set b1=1 all b2b3b4=000 >> 1000Vdac=8*5/(2^4)=2.5V(Vdac=2.5)>(Vs=3.127) No!!b1=1

2. Set b2=1 all b3b4=00 >> 1100Vdac=12*5/(2^4)=3.75V(Vdac=3.75)>(Vs=3.127) Yesb2=0

3. Set b3=1 b4=0 >> 1010Vdac=10*5/(2^4)=3.125V(Vdac=3.125)>(Vs=3.127) No!!b3=1

4. Set b4=1 >>1011Vdac=11*5/(2^4)=3.4375V(Vdac=3.4375)>(Vs=3.127) Yesb4=0

Final Result=1010

DIGITAL TO ANALOG CONVERSION ( 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.

TYPES OF DACS 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.

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.

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.

THE GENERAL PURPOSE ( 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.

BIPOLAR/ UNIPOLAR DACS

For unipolar DACs, the output voltage is given by:

For bipolar DACs, the output voltage is given by: