Digital-Circuits Anand-Kumar
Digital-Circuits Anand-Kumar
DIGITAL CIRCUITS
FOURTH EDITION
A. Anand Kumar
Principal
K.L. University College of Engineering
K.L. University
Green Fields, Vaddeswaram
Guntur District
Andhra Pradesh
Delhi-110092
2016
xx CONTENTS
EXAMPLE 17.14 Determine the maximum conversion time that an ADC can have, if it is
used to convert signals in the range of 1 kHz to 50 kHz.
Solution
Since the highest input frequency is 50 kHz, conversions should be performed at the rate of
2 ¥ 50 ¥ 103 = 100 ¥ 103 conversions/s. The maximum allowable conversion time is, therefore,
equal to 1/(100 ¥ 103) = 10 ms.
EXAMPLE 17.15 An ADC has a total conversion time of 200 ms. What is the highest
frequency that its analog input should be allowed to contain?
Solution
The highest frequency that the analog signal can contain is
1 1
= = 2.5 kHz
2 ¥ conversion time 2 ¥ 200 ms
requires 7(= 23 – 1) comparators. A reference voltage EREF is connected to a voltage divider that
divides it into seven equal increment levels. Each level is compared to the analog input by a
voltage comparator. For any given analog input, one comparator and all those below it will have a
HIGH output. All comparator outputs are connected to a priority encoder, which produces a digital
output corresponding to the input having the highest priority, which in this case is the one that
represents the largest input. Thus, the digital output represents the voltage that is closest in value
to the analog input.
The voltage applied to the inverting terminal of the uppermost comparator in Figure 17.19 is
(by voltage divider action),
Ê 7R ˆ 7
ÁË 7R + R ˜¯ ¥ EREF = 8 ¥ EREF
Similarly, the voltage applied to the inverting terminal of the second comparator is
Ê 6R ˆ 6
ÁË 7R + R ˜¯ ¥ EREF = 8 ¥ EREF
1
and so forth. The increment between voltages is ¥ EREF.
8
The flash converter uses no clock signal, because there is no timing or sequencing period.
The conversion takes place continuously. The only delays in the conversion are in the comparators
and the priority encoders.
Figure 17.20 shows the block diagram of a modified flash A/D converter. To perform an 8-
bit conversion, it requires two 4-bit flash converters. So, an 8-bit conversion can be done by using
30[= 2 ¥ (24 – 1)] comparators instead of 255(= 28 – 1) comparators. One 4-bit flash converter is
used to produce the four most significant bits (MSBs). Those four bits are converted back to an
analog voltage by a D/A converter and this voltage is subtracted from the analog input. The
difference between the analog input and the analog voltage corresponding to the four most significant
bits, is an analog voltage corresponding to the four least significant bits (LSBs). Therefore, that
voltage is converted to the four least significant bits by another 4-bit flash converter.
4 MSBs
4-bit flash
ADC
4-bit
Latches 8-bit digital
DAC
output
4 LSBs
– 4-bit flash
Analog + Analog ADC
input subtractor
Figure 17.20 Modified flash ADC.
EXAMPLE 17.16 Determine the digital output of a 3-bit simultaneous A/D converter for
the analog input signal and the sampling pulses (encoder enable) shown in Figure 17.21.
VREF = + 8 V.
932 FUNDAMENTALS OF DIGITAL CIRCUITS
Solution
The resulting A/D output sequence is listed as follows and shown in Figure 17.22 in relation
to the sampling pulses.
000, 010, 101, 110, 110, 100, 010, 000, 000, 011, 101, 110.
Output
register
MSB LSB
... Binary output
DAC
VAX
The system enables the MSB first, then the next significant bit, and so on. After all the bits of
the DAC have been tried, the conversion cycle is complete. The processing of each bit takes one
clock cycle; so, the total conversion time for an N-bit SA-type ADC will be N clock cycles. That is,
tc for SAC = (N ¥ 1) clock cycles
The conversion time will be the same regardless of the value of VA. This is because the
control logic has to process each bit to see whether a 1 is needed or not.
The method is best explained by an example. Let us assume that the output of the DAC
ranges from 0 V to 15 V as its binary input ranges from 0000 to 1111, with 0000 producing 0 V,
and 0001 producing 1 V, and so on. Suppose that the unknown analog input voltage VA is 10.3 V.
On the first clock pulse, the output register is loaded with 1000, which is converted by the DAC to
8 V. The voltage comparator determines that 8 V is less than the analog input (10.3 V); so, the
control logic retains that bit. On the next clock pulse, the control circuitry causes the output register
to be loaded with 1100. The output of the DAC is now 12 V, which the comparator determines as
greater than the analog input. Therefore, the comparator output goes LOW. The control logic
clears that bit; so, the output goes back to 1000. On the next clock pulse, the control circuitry
causes the output register to be loaded with 1010. The output of the DAC is now 10 V, which the
comparator determines as less than the analog input. Thus, on the next clock pulse, the control
ANALOG-TO-DIGITAL AND DIGITAL-TO-ANALOG CONVERTERS 935
logic causes the output register to be loaded with 1011. The output of the DAC is now 11 V, which
the comparator determines as greater than the analog input; so, the control logic clears that bit.
Now the output of the ADC is 1010 which is the nearest integer value to the input (10.3 V).
At this point, all of the register bits have been processed, the conversion is complete and the
control logic activates its EOC output to signal that the digital equivalent of VA is now in the
output register.
EXAMPLE 17.17 Compare the maximum conversion periods of an 8-bit digital ramp
ADC and an 8-bit successive approximation ADC if both utilize a 1 MHz clock frequency.
Solution
For the digital-ramp converter, the maximum conversion time is
(2N – 1) ¥ (1 clock cycle) = 255 ¥ 1 ms = 255 ms
For an 8-bit successive-approximation converter, the conversion time is always 8 clock
periods, i.e. 8 ¥ 1 ms = 8 ms.
Thus, the successive-approximation conversion is about 30 times faster than the digital-
ramp conversion.
EXAMPLE 17.18 An 8-bit SAC has a resolution of 30 mV. What will its digital output be
for an analog input of 2.86 V?
Solution
Since, 2.86 V/30 mV = 95.3, the step 95 would produce 2.85 V and step 96 would produce
2.88 V. The SAC always produces a final output, that is, at the step below the analog input.
Therefore, for the case of VA = 2.86 V, the digital result would be 9510 = 010111112.
CLK IN: It is used for the external clock input, or for the capacitor connection when the internal
clock is used.