Académique Documents
Professionnel Documents
Culture Documents
1
A/D and D/A Converters: Introduction
These are the means by which a signal can be converted from analog to digital
or from digital to analog as necessary.
A/D and D/A conversion are common in sensing systems since most sensors
and actuators are analog devices and most controllers are digital.
There are certain types of D/A and A/D that are trivially simple.
2
Threshold Digitization
In many cases, an analog signal represents simple data such as the presence
of something.
For example, we have seen that there are magnetic pick up circuits in turbine
flowmeters that produce output to count the number of rotations of the rotor.
The signal obtained is quite small and looks more or less sinusoidal with the
peaks representing sweeping of the magnet past the pick-up circuit.
3
Threshold Digitization
Output from magnetic pick-up circuit varies from 100 mV to 150 mV (for
example). This signal can be fed into a comparator as shown in the figure
The output is zero until the voltage on the (+) input rises above the threshold.
When the input dips below 0.13V the output goes back to zero.
Counting the pulses in a given time can give the speed of rotation of the rotor or
other data (e.g. flow rate)
4
Analog to Digital Conversion
5
Why the conversion:
6
Where do we use an ADC?
7
Steps in A/D Conversion:
Analog Digital
Sampling Quantization Encoding
signal signal
ADC
The intervals, ts, must be carefully chosen to ensure an accurate representation of the
original analogue signal
9
To discuss the problem of losing information in the sampling process, it is necessary to
recall Shannon’s information theorem and Nyquist’s criteria.
• The signal bandwidth may extend from d.c. to fa or from f1 to f2, where fa = f2 − f1
10
Aliasing:
Figure: the signal of bandwidth w (a) and its replication after sampling (b)
The signals in the above figure were sampled with the frequency fs >2w. it is possible
to remove the other signals of the frequency f > w with a filter.
If fs <2w, the replicated signal bands interfere mutually and a distorted signals appear
at the output. This effect is called aliasing.
11
Anti-aliasing filter:
12
STEP 2: Quantization
Quantization is breaking down the values of the sampled signal into a set of finite
number of quantized values
Output States Discrete Voltage Ranges
(V)
Example: 0 0.00-1.25
We have 0-10V signals. 1 1.25-2.50
Separate them into a set 2 2.50-3.75
of discrete states with
1.25V increments. (How 3 3.75-5.00
14
STEP 3: Encoding
Here a unique digital number/word is assigned to each
of the quantized states
Output Discrete Voltage Ranges (V) Binary code
States
0 0.00-1.25 000
1 1.25-2.50 001
2 2.50-3.75 010
3 3.75-5.00 011
4 5.00-6.25 100
5 6.25-7.50 101
6 7.50-8.75 110
7 8.75-10.0 111
15
Transfer characteristics and Quantization Error:
A range of input produces the same output. So some error is introduced into the signal during
the quantization process, which is called quantization error/noise.
(a) (b)
From Fig (a) we can see that the quantization error is varying between 0 and q
Value.
Usually the characteristic of the quantization is shifted by the q/2 value thus the
error of quantization is varying between –q/2 and +q/2 (Fig. b). 16
q
Voltage Quantized Binary Analog Error range Voltage Quantized Binary Analog Error range
Ranges state code equivalent Ranges state code equivalent
17