Lecture-4 - ADC
Lecture-4 - ADC
Lecture-4 - ADC
1
LECTURE OVERVIEW
INTRODUCTION
ADC
DAC
MULTIPLEXER
2
1:- INTRODUCTION
• Signals are time-varying “quantities” which convey some sort of
information.
• Signals are passed between devices in order to send and receive
information, which might be video, audio, or some sort of encoded
data.
• Usually the signals are transmitted through wires, but they could
also pass through the air via radio frequency (RF) waves.
• Audio signals, for example might be transferred between your
computer’s audio card and speakers, while data signals might be
passed through the air between a tablet and a Wi-Fi router.
3
Analog Signal
Continuous-time signals
It is 'continuous' in that it is present at all times
Continuous does not mean that it goes on for ever
X(t)
t
4
Analog signals
Digital signals
Digital signals have a finite set of possible values.
Most commonly digital signals will be one of two
values – like either 0V or 5V.
Timing graphs of these signals look like square waves.
Discrete-time signals
Are defined at particular or discrete instants only- they are
usually sampled signals.
5
Digital signals cont.…
X(t)
t
Digital signals
6
2:- Analog to digital conversion(ADC)
• Application of ADC
7
2.1. What is ADC ?
9
2.3. Application of ADC
10
2.4. Conversion process
3 steps:
Sampling and Holding
Quantification
Coding
11
Conversion process: Sampling
Sampling is the process of taking a sufficient number of discrete values at points
Sampling converts an analog signal into a series of impulses, each representing the
x(t)
Ts xs(t)
x(t) xs(t=k*Ts)
t 12
Ts
Cont…
A clock supplies regular time signal pulses to the ADC and every time it
A sample and hold unit is used to hold each sampled value until the next pulse
occurs.
It is used b/se the ADC requires a finite amount of time, termed conversion
13
Cont…
The electronic switch, S, is closed,
causing the capacitor to charge to the
current value of the input voltage.
After a brief time interval the switch is
reopened, so keeping the sampled
voltage across the capacitor constant
while the ADC carries out its
conversion...
Sample= When switch is closed
Hold = When switch is open
14
Conversion process: Quantification
15
Conversion process: Quantification
Resolution: The smallest change in analog signal that will result in a
change in the digital output.
Vr V full scale
V 2 R n
2 2
Vr = Reference voltage range
n = Number of bits in digital output.
2n = Number of states.
∆V = Resolution
xs(t)
xq(t)
ΔV
Vr
t 16
Ts
Example-1
A sensor gives a maximum analog output of 5V. What word length is
required for an analog-to-digital converter if there is to be a resolution of
10mV.
Q ΔVr
2
1
0
t
Ts
18
ANALOGUE TO DIGITAL CONVERSION
19
20
i. Before we proceed to the process of ADC we must
understand some basic parameters.
Decimal Code Binary Code
1. Binary system 0 0000
1 0001
Based on two symbols or states 0 and 1(binary digits
2 0010
or bits). 3 0011
21
2. Accuracy of A/D Conversion
22
Accuracy
xq(t)
t
Ts
t t
Ts 23
3. Sampling Theorem
24
Cont..
A signal will not usually have a single frequency but will consist of a
A low pass filter has the job of removing signal frequencies greater
than fs/2, where fs is the sampling frequency. This is the role of the
anti-aliasing filter.
25
Types of ADCs
There are two types
Indirect type
Direct type
Flash ADC
Sigma-delta ADC
26
2.4.1 Flash ADC
Fundamental Components (For N bit Flash A/D)
2N-1 Comparators
2N Resistors
Control Logic
27
Flash ADC
Provides a fast conversion time because of the “Parallel A/D”
process
Uses a series of comparators
VIN If Output
+ VOUT VIN > VREF High
VREF -
VIN < VREF Low
28
How does it work
Uses the 2N resistors to form a ladder voltage divider, which
divides the reference voltage into 2N equal intervals.
Uses the 2N-1 comparators to determine in which of these 2N
voltage intervals the input voltage Vin lies.
The Combinational logic then translates the information
provided by the output of the comparators.
This ADC does not require a clock so the conversion time is
essentially set by the settling time of the comparators and the
propagation time of the combinational logic.
29
2.4.2. Successive Approximation
• A regular sequence of pulses is generated by a clock and is registered in binary
manner
• Voltage rises in steps and will be converted to analogue signal using DAC
• Will be compared with analogue input signal from sensor
• If voltage from clock passes voltage from input, gate closes
• The output from the counter at that time is then a digital representation of the
analogue voltage.
30
Sets MSB
Converts MSB to analog using DAC
Compares guess to input
Set bit
Test next bit
31
Successive Approximation
Advantages Disadvantages
32
Example
33
Cont…
34
Cont…
35
Cont…
36
ADC Types Comparison
0 5 10 15 20 25
Resolution (Bits)
INTRODUCTION
• A digital-to-analog converter (DAC or D-to-A) is a device for converting
a digital (usually binary) code to an analog signal (current, voltage or
charges).
• Digital-to-Analog Converters are the interface between the abstract digital
world and the analog real life.
• Simple switches, a network of resistors, current sources or capacitors may
implement this conversion.
38
39
Cont..
This converts the processed digital value back to an equivalent
analogue voltage.
Output is an analogue signal that represents the weighted sum
of the non-zero bits represented by the word.
Input: Binary word
40
Types of Digital to Analogue Converters
1.Weighted-resistor Network
Uses a summing amplifier
Electronic switches respond to binary 1
41
Cont.
Rf=
MSB
LSB
V1 V2 V3 Vn
Vout IRf Rf n -1
R 2R 4R 2 R
n=1, 2,3…… 42
Binary Weighted Resistor cont..
If Rf=R/2
V1 V2 V3 Vn
Vout IRf n
2 4 8 2
For example, a 4-Bit converter yields
1 1 1 1
Vout Vref b3 b2 b1 b0
2 4 8 16
43
Example
44
2.R-2R ladder Network
It is a resistor ladder network connected to an inverting summer op-amp
circuit
It requires only two precision resistance values (R and 2R) and resolves the
problems of the binary-weighted resistor network
Output voltage is generated by switching sections of the ladder to either Vs or
0V according to whether there is a 1 or 0 in the digital input.
4 Bit Converter
45
R-2R Ladder cont.…
• Each bit corresponds to a switch:
• If the bit is high, the corresponding switch is connected to the inverting input of the op-
amp.
• If the bit is low, the corresponding switch is connected to ground.
Vref
Bit: 0 0 0 0
Vout
4-Bit Converter
46
R-2R Ladder
Vref V1 V2 V3 V3
Ideal Op-amp
2R 2R
Req
2 R 2 R
R
2 R 2 R
47
R-2R Ladder
Vref V1 V2 V3 V2 V3
R R
R 1
V3 2
V V2
RR 2
I
Likewise,
1
V2 V1
2
Vout 1
V1 Vref
2
Vout IR
48
R-2R Ladder
Results:
Vref V1 V2 V3 1 1 1
V3 Vref , V2 Vref , V1 Vref
8 4 2
1 1 1 1
Vout Vref b3 b2 b1 b0
2 4 8 16
n
1
Vout Vref bn i i
i 1 2
50
51
52
53
54
55
Multiplexer
m control signals
• i.e. it accepts several data inputs and allows only one of them AT A TIME to get
through to the output
2m = n
So we can have
2:1 MUX ;with 1 control line
4:1 MUX ;with 2 control line
8:1 MUX ;with 3 control line
16:1 MUX ;with 4 control line
58
2:1 Multiplexer Circuit Diag.
Inputs
• Here the 2: 1 MUX has two I/P lines D0 and D1 Output
S0
and one select (control) line S0
0 D0
• When S0 =0 then output= D0
1 D1
• When S0 =1 then output= D1
59
Demultiplexer
m control signals
• Also called as Data distributor.
• Demultiplex means one to Many.
• i.e. it accepts one data input and steer the input signal to one of the output line.
• The circuit has one i/p signal, m control signals & n o/p signals
60
Demultiplexer is exactly reverse of multiplexer.
by
2m = n
where m = no. of control lines, n = no. of output lines
So we can have
61
1:2 Demultiplexer
Circuit Diagram.
• Here the 1:2 DEMUX has 2 O/P lines Y0 and Y1 and one select (control) line S0
62
Quze-2
A 4-bit successive-approximation is used in ADC. If the input voltage is 5.5v
and the DAC has Vout =8v for 23 bit (MSB) and Vout =1v for 20 bit(LSB). What
Vin
64