Professional Documents
Culture Documents
ADC and DAC - Edited
ADC and DAC - Edited
1
Analog Signals every where
Examples of A/D
• Microphones - takes your voice varying pressure waves in the air and
convert them into varying electrical signals
• Thermocouple – temperature measuring device converts thermal energy
to electric energy
• Tachometer – Converts rpm to electrical voltage
• Piezo-electric Accelerometer – Converts acceleration to an electrical
signal
• Most analogue transducers produce electrical signals and the signal
needs to be converted to digital form to interface the device/signal to a
Microprocessor (μP: 8085/8086), microcontroller (μC:8051), Arduino,
PIC, Raspberry-Pi , etc.
Need to Sample an analog Most signals are
signal analog
Then convert to digital by
A/D converter
Sample and Hold Circuit
Figure 9.36 The process of periodically sampling an analog signal. (a) Sample-and-hold (S/H) circuit.
The switch closes for a small part ( seconds) of every clock period (T). (b) Input signal waveform. (c)
Sampling signal (control signal for the switch). (d) Output signal (to be fed to A/D converter). 3
A/D converter and D/A Converters
Analog to Digital Digital to Analog
4
A/D converter
Converts analog signals into binary words
D/A Conversion
Normal Output from digital domain is staircase
Filtered to produce smooth Analog output
Figure 9.38 The analog samples at the output of a D/A converter are usually fed to a sample-and-hold
circuit to obtain the staircase waveform shown. This waveform can then be filtered to obtain the smooth
waveform, shown in color. The time delay usually introduced by the filter is not shown. 6
Conversion accuracy: eg 2-bits
Blue line ?
• Analog is continuous
• Limited by number
of bits
Red ?
7
3-bit conversion example
Quantization levels
Eg 5V divided into 8
levels – each 0.625
Each binary representation is a “range”
8
D/A conversion implementation
Weighted Summing Circuit
in = ?
i =?
Figure 9.39 An N-bit D/A converter using a binary-weighted resistive ladder network.
10
Analog Digital Conversion
2-Step Process:
– Flash ADC
– Successive Approximation ADC
Analog to Digital Converter
Simple, Cheap but slow : (SAR)
Increment counter D/A compare
A
N
A D
L I
O G
G I
T
A
L
16
PIC microcontroller A/D
10-bit resolution 8 Analog channels
controlled by
program. registers
If 0-5V range
What is pic resolution
What is 3.65V
In digital domain ?
17
Flash ADC
Advantages Disadvantages
• Simplest in terms of
operational theory • Lower resolution
• Expensive
• Most efficient in terms of • For each additional output
speed, very fast bit, the number of
• limited only in terms of comparators is doubled
comparator and gate
• i.e. for 8 bits, 256
propagation delays
comparators needed
A / D Converter
– CMOS
Implementation
Charge-redistribution
A/D
FYI
Figure 9.46 Charge-redistribution A/D converter suitable for CMOS implementation: (a) sample phase, (b) hold
phase, and (c) charge-redistribution phase.
22