Analog_to_Digital_A_D_Converter
Analog_to_Digital_A_D_Converter
Analog_to_Digital_A_D_Converter
• Sampling Precision, N – controls the number of different gradations (quantization levels) for
the sampling process
According to the sampling precision, the y-axis is divided into ten intervals (0-9). And according to
the sampling frequency, the A/D converter samples the analog signals once per one-thousandth of a
second. The A/D Converter then stores the analog signals to the closest number that it can find on the
y-axis. The chosen number is indicated on the x-axis of the above figure. According to the digitized
data (the number on the x-axis of the above figure), we can plot the following graph showing what the
microprocessor is actually reading.
As you can see, we have lost quite a bit of the details of the original wave. This is the sampling error.
In order to reduce the sampling error, we must increase the sampling rate, fs, and the sampling
precision, N. So, if we improve the sampling rate, fs, and the sampling precision, N, by a factor of
two, we will get the following graph.
And, if we increase the sampling rate and the sampling precision by a factor of four, we will get the
following digitized data.
Therefore, in order to digitize the analog data accurately, we need to sample the analog signal as fast as
possible with an A/D that has large number of bits.
Use of A/D and D/A in Closed Loop Control
Input Output
o Controller Actuator Plant Sensor
Feedback
A/ D Microcomputer D/ A
Analogue to Digital to
Digital Analogue
Converter Converter
+ 5V 2 12 212 + 5V
0V 0 0 −0V
+ 5V → 2 12 − 1 = 4095 → +5 V
→ 4000 → 4 . 8828 V
4095
→ → 2 . 4414 V
4 . 8828 V 4000
→ 100 → 0 . 1221 V
1000
0V → 0 → 0V
0 . 1221 V 100
0
Voltage
Analog
Digitized
Data
Time
Sampling Theorem:
A signal must be sampled at a rate at least two times the maximum frequency component occurring in
the signal.
FS > 2 F max
SamplingRate
∆T =
1
(Time between two samples)
FS
The sampling precision is characterized by the number of the bits in the A/D converter. In other words
the number of bits is used to define the quality of an A/D converter (the precision of the A/D
converter). The number of bits, n, is related with the number of different gradations, N, by the
following equation:
0
1
2
3
N
4
⋅
⋅
⋅
N − 1
Examples:
It can be seen that for a 4-bit a/D converter, the precision of the A/D converter is 1/16 of the full scale
of the analog signal. And for a 10-bit A/D converter the precision of the A/D converter is 1/1024 of
the full scale of the analog signal. 2407 has a 10-bit converter.
Analogue to Digital Converter
Analogue
input S&H Successive Latch
Approximation
register Digital Output
comparator
D/A
Full Scale
(FS)
1 1 1 1 1
+ FS + + FS
4 8 16
1
4 8
FS
2
1
FS
4
Input Signal 0 1 1 0
MSB LSB
3 2 1 0
Result: [0110] or 6