Interfacing With Analog Devices Week 12v2
Interfacing With Analog Devices Week 12v2
10
Quantization
11
12
14
The flash method utilizes comparators that compare reference voltages with
the analog input voltage. When the input voltage exceeds the reference voltage
for a given comparator, a HIGH is generated.
The reference voltage for each comparator is set by the resistive voltagedivider circuit. The output of each comparator is connected to an input of the
8-input priority encoder.
The encoder is enabled by a pulse on the EN input, and a 3-bit code
representing the value of the input appears on the encoders outputs. The
binary code is determined by the highest order input having a HIGH level.
Assume the step size of 1 V. The voltage divider sets up reference levels for
each comparator so that there are 3 levels corresponding to 1V, 2V, 3V, 4V, 5V,
6V and 7V. The analog input is connected to other input of each comparator.
With analog input <1V, all the seven comparator outputs will be LOW.
Suppose the analog input is between 2V and 3V, outputs C1 and C2 will be
HIGH. The priority encoder will respond to HIGH on C2, and will produce a
binary output of 010.
15
16
17
18
19
21
22
23
operation
The input bits of the DAC are enabled one at a time starting with the
MSB
As each bit is enabled the comparator produces an output that indicate
whether the input signal voltage is greater or lesser than the output of
DAC.
If the DAC output is greater than the input signal ,the comparators
output is LOW, causing the bit in the register to reset.
If the DAC output is less than the input signal, the bit 1 is retained in
the register.
The system does this with the MSB first, then the next right bit of
MSB, then the next and so on.
After all the bits in the DAC are tried , the conversion cycle is
complete.
24
25
26
Step 1:
23 bit (MSB) = 1
The output of the DAC is 8 V.
Since this is greater than the input of 5.1 V, the output of
the comparator is LOW, causing the MSB in the Successive
Approximation Register (SAR) to be reset to a 0
Step 2:
22 bit =1
The output of the DAC is 4 V.
Since this is less than the input of 5.1 V, the output of the
comparator switches to HIGH, causing this bit retained in
SAR.
27
Step 3:
21 bit = 1
The output of the DAC is 6 V.
Since this is greater than the input of 5.1 V, the output of the comparator
switches to LOW, causing this bit to be reset to 0.
Step 4:
20 bit =1
The output of the DAC is 5 V.
Since this is less than the input of 5.1 V, the output of the comparator switches
to HIGH, causing this bit retained in SAR.
After 4 steps, conversion cycle is completed. Binary code in the register is
0101, which is approximately the binary value of the input of 5.1 V.
28
29
30
31
33
34
The other resistors are multiples of R (R, 2R, 4R and 8R) and
correspond to the binary weights of 22 , 21 , 20 .
36
37
Assume that D3 input is high (+5 v) and the others are low(0
V) .This condition represents the binary number 1000.
Essentially no current goes through the 2R equivalent
resistors because the inverting input is at virtual ground .
Thus all the current (I= 5V/2R) through R 7 also goes through
Rf and the output voltage is -5V.The op-amp keeps the
inverting input near 0V because of negative feedback. Thus
all current goes through Rf rather than into the inverting
input.
38
39
40
42
43
44