Adc Dac
Adc Dac
Adc Dac
The R-2R ladder DAC is the most popular digital to analog converter.
The resolution of DAC is the defined as the smallest change that occur in the analog
output as a result of the change in the digital input.
The disadvantage of weighted resistor DAC is that number of different value resistors
are required for each bit position of the digital input.
Types of ADC’s are:
(a) Flash-type ADC (b) Single-slope ADC (c) Dual-slope ADC (d) Continuous
counter type ADC (e) Successive-approximation type ADC.
(a) A DAC that can provide number of different analog output values is called resolution.
Resolution .
(b) A DAC is which the ratio of change in output voltage resulting from a change of LSB (i.e. 1
least significant bit) at the digital inputs is known as resolution.
2. Accuracy: It is defined as the difference between the actual analog output and the
expected analog output when a given digital input is applied. It is expressed in percentage.
In ideal case, the accuracy of DAC should be, at worst, of its LSB.
3. Conversion Time or Setting Time: It is the time required for conversion of analog signal
into its digital equivalent. It is dependent on amplifiers output and switches response time.
4. Stability: When all the parameters such as gain, linearity error, monotonicity and offset
must be specified over the power supply ranges and full temperature then these
parameters represent the stability of the converter.
5. Monotonicity: If a converter does not miss any step backward during its entire range
stepped by a counter then it is said to have a counter having good monotonicity.
Q -2. An 4 bit DIA converter has an output range of 0 to 1.5 V. Define its resolution.
1. Resolution:
Thus the output voltage can have 16 different values including zero.
2. Resolution:
Ans. Given
Q 4. Following fig. shows the D1A converter with op-amp. Calculate the output if the input
digital signal is 1110. Assume 1 binary = +5V.
B3 B2 B1 B0 1110
Let I1, I2 and I3 be the currents flowing through the respective resistors The value of
currents are:
As, the op-amp has a very high input impedance. Thus, the currents I0 to I3 flow through 1K
ohm resistance.
Ans.
So, it depends on full scale output voltage ‘V0Fs’ and the number of bits used in DAC
i.e. ‘n’.
Q 7. Which is the fastest ADC and why?
Ans. Flash type ADC is the fastest ADC. Its main advantage is that its conversion of
analog to digital taken place simultaneously and not sequentially. Typically the conversion
time of flash type ADC is l00ns or less: Hence it is the fastest ADC.
Ans. There are basic three parameters which describe the quality of performance of D/A
converter.
1. Resolution : It is the smallest possible change in the analog output voltage. Resolution
should be as high as possible.
2. Accuracy: It indicates how close the analog output voltage is to its theoretical value it is
the deviation of actual output from the theoretical value.
3. Linearity : The relation between the digital input and analog output should be linear.
Q 9. Determine the resolution of the output from a DAC that has a 12-bit input.
Resolution =
Ans. Various types of A/D converters use different principles of operation for conversion.
1. Flash type or parallel type A/D converter. 2. Counter type A/D converter.
3. Successive Approximation A/D converter. 4. Dual slope A/D. 5. Single slope A/D.
Q 11. On what basis do we select a particular type of A/D converter, for use?
Ans. There are various parameters on basis of which we select a particular type of A/D
converter like.
1 Conversion time: Time taken to convert a analog signal into digital It must be less1
2 Speed of operation: The speed of operation also decides the type of A/D converter for
particular application It is decided with the help of clock of frequency
3 Cost: Cost must be according to budget of application Cost depends upon number of
comparators used
Ans. The digital representation of a signal makes storage, processing simpler and its
transmission is much easier. Once the transmission and processing etc is done the signal we
need should be in analog form. To convert the digital signal to its analog form Digital to
analog conversion is required.
Q 13 What is the advantage of the R-2R ladder DAC over the weighted resistor type DAC?
1. R/2R ladder DAC need only two value of resistors whereas in weighted resistor DAC
several resistors are required having different values
2. Due to small resistance spread, the R/2R ladder DAC can be fabricated monolithically with
high accuracy and stability In weighted type, it is difficult to achieve and maintain accuracy
and resolution
3. The number of bits can be increased in R/2R ladder DAC by adding more sections of same
R/2R values whereas it is not possible in the weighted type DAC with same value resistors.
Q 14. Draw the circuit of a counter type AID converter and explain its operation.
Ans. There are various types of A/D converter. One of the mostly used is counter method.
The block diagram is as:
Initially “start’ signal is send to Gate and control box Clock pulses are also applied Two input
analog input voltage and Ref voltage are given to comparator. If VA> VR, then comparator
goes high and gate opens, counter starts counting until analog input voltage is greater than
Ref voltage. After that signal is amplified by level amp and given to binary ladder. Binary
ladder provides digital output. Counter may count in upward or downward direction.
Q 15. With the help of a neat diagram explain parallel A/D converter.
Ans. Parallel A/D is used is much more due to its high speed. The only disadvantage is that
its hardware (no. of comparators) increase with the no. of bits. Va is analog, voltage and
VR is reference’ voltage.
compared simultaneously with the reference voltages by using comparators A 7-bit output
obtained from the comparators which is stored in latches This 7-bit digital signal is convert
to a 3-bit output by using a decoder circuit The comparator outputs and the 3-bit digit
output for each interval of the analog voltage are given in Table (A)
The principle of parallel-comparator AID conversion is the simplest in concept and fasts Its
main disadvantages are rapid increase in the number of comparators with the number bits [
comparators are required for an N-bit converter] and the corresponding
complications of the decoder circuit
Table (A) Comparator outputs and digital output of parallel-comparator AID converter
Ans. Successive approximation is one of the most widely used popular method due its
efficiency The block diagram of SAR ADC s as shown:
Working: Initially, let us set the MSB bit of SAR register i.e. d1 = 1. It is applied to 4-bit D to A
converter i.e. as 1000. The D/A converter will generate its analog value and send to control
logic The output of control logic is VR. Now at the comparator, there are two inputs
VR (Reference voltage) and VA (Input analog).
The same procedure is repeated for all bits i e for d2, d3,…. dn, and output may be taken in
serial or parallel manner.
Advantage: The conversion time is fixed as it does not depend upon amplitude of analog
input.
Q.18 An 8-bit successive approximation converter (SAC) has a resolution of 15 mV What
will its, digital output be for an analog input of 2.65 V ?
Resolution = 15 mV
Now 176 would produce 2.64 V and 177 would produce 2.65 V. Hence VA = 2.65V The digital
result will be (176)10 = (10110000)2
Q 19 Define linearity, settling time, sensitivity and accuracy of A/D and D/A converters.
i. Linearity: The linearity of the converter specifies the accuracy with which the ideal
performance is followed Output of DIA converter must be each step up (down) in the digital
input so as to cause an increase (decrease) in the analog output The linearity should be at
(ii) Setting Time: Whenever a digital input is applied to D/A converter, sometimes output
sets to a value within some specific limit of the final value The limit range is
LSB or less. This parameter tells the speed of D/A converter and t can be calculated by
use o switches, amplifier, resistors etc. in the device.
i. Accuracy: It is a measure of the difference between actual output and expected output. It is
given as a percentage of the maximum output voltage. If the maximum output voltage i.e.
In an 8-bit converter LSB is or 0.39% of full scale. The accuracy should be better
than 0.2%.
(iv) Sensitivity : Due to change in temperature the output of D/A converter should not
change. But practically the value of resistances and operational amplifier parameters change
with variation in temperature as analog output is a function of temperature.
For AID converters
(i) Linearity: Linearity is basically a ‘best straight line’. Linearity of a converter directly
determines the relative accuracy of the converter. It is the difference of errors betweens the
nominal and actual ratios to the full scale analog value corresponding to a
given digital input and independent of full scale calibration. The linearity error should be less
than
(ii) Conversion Time or Setting Time : It is the -time refers to the time requires for a
complete measurement by analog to digital converter.
OR
It is the time required for conversion of analog signal into its digital equivalent. It is
dependent on the amplifiers output and switches response time.
(iii) Accuracy : The accuracy of a given ADC i.e. analog to digital converter determines the
number of bits which can be usefully provided.
The accuracy of an ADC consists of quantization error system noise etc. Typical values are
0.02% of the full scale reading.
(iv) Sensitivity : Due to change in temperature the output of AID converter should not
change. But the value of resistances and operational amplifier change with change in
temperature.
Q 20. What is a voltage to frequency converter? How is it used for designing AID
converter?
It is as shown in
Here the input analog voltage is integrated and fed to a comparator. To the comparator, a
reference voltage Vref is applied. Whenever input voltage exceeds the comparator
reference voltage the comparator changes the state. This resets the integrator and the
process repeats itself. The integration cycles are counted in a counter for fixed time
duration. The output of counter gives the desired digital output.
If the integrator is realized by an inverting amplifier and has time constant then the output
of integrator at time ‘t’ is given by:
If the Vref is the comparator reference voltage, then the time t = T and is given by:
Q 21. Describe the working of a successive approximation AID converter with the help of a
suitable diagram and compare its performance in terms of speed, accuracy and resolution
with other ADCs.
Ans. Successive Approximation A/D Converter: It is the most widely used A/D converter. It
has more complex circuitry than the digital ramp A/D converter but it has much shorter
conversion time. For n-bit A/D converter n-successive steps are required for completing the
approximation process.
1. Comparator -
3. Control logic
The control logic is used to set or reset the flip-flops. The O/P of there flip-flops are given to
level amplifiers and then to D/A converter which is a binary ladder network. It gives digital
O/P’s as well as the analog reference voltage.
Initially the control logic resets all the flip-flops. There are three basic conditions:
1. If i.e. reference voltage from D/A converter is. less than the input analog voltage
then MSB (most significant bit) is set to 1 by control logic.
2. . If then MSB is reset to (zero) ‘0’ and next bit is set to ‘1’.
3. If then the control logic disables the clock to flip flops and we can get digital
Q 22 Draw and explain the basic block diagram of (i) voltage of frequency conversion and
(ii) voltage of time conversion
The output of the voltage to frequency converter is applied at the clock input of the
counter.
Let Va be the analog input given to the integrator at time t = 0. The output Vo is given by:
From (1) it is clear that the output of integrator decreases as it increases As long as Vo> —
VR, the output Vd of comparator will be low i e ‘0’ At time t = T1 Vo will become equal to -
VR and Vd will become high i e ‘1’ Vd is given to the reset logic which closes the switch for
discharging of capacitor in integrator Thus, Vo again return to ‘0’ The capacitor again
discharges in time T2 when T2 <<T1.
When the increasing value of Vo becomes jut greater than —VR, again Vd gives low value
Hence pulse width of Vd is very small. The reset logic closes the switch for sufficient time to
discharge the capacitor completely. Following fig. shows the variation of Vd and Vo w.r.t.
time ‘t’. The Vd output from voltage to frequency converter is given as the clock input to the
counter provided enable i.e.
The block diagram of voltage of time A/D converter is shown above in fig.
Va is given to the comparator and —VR is given to the integrator. If VEN = 1 switch is open
and if VEN = 0 switch is closed in the inegrator circuit.
Let VEN = 1, Thus, switch is open and the output of the integrator will be:
Here, Vo is increasing with time. When Vo <Vs, the output of comparator goes high i.e. thus
circuit is given to the counter. The counter counts at each circuit pulse. When, Vo = Va,
Vd becomes low, thus output of AND gate goes low. No circuit pulse to counter stops
counter bps and the final value is stored in the counter which is the digital equivalent of Va.
When VEN = 0, switch is closed in the integrator, and the capacitor is discharge until Vo
reaches ‘0’.
For t = T and Vo = Va
Ans Binary ladder D/A converter In a binary ladder D/A converter only two valued
resistance R and 2R are used as shown in diagram
The OP amp is an inverting amplifier By solving resistance N/W in parallel and series, finally
voltage at node B is.
Q 24. How many bits are required for a DAC, so that Its full scale output is 12.6 V and
resolution 20 mV?
Ans.
Ans. The dual slop A/D converter provide very much accuracy and so mostly used.
An analog input voltage is applied to Ramp Generator. The output of Ramp Generator
app1ied to comparator. The output of comparator is given to ‘AND’ gate. The second output
‘AND’ gate is clock pulse. When input is high for AND gate clock pulse will be given to m-r.
Counter is initially reset by control logic. Now counter counts up and binary output in form
is provided. When counter stops, switch control again control the whole function.
Flip-flop
Flip-flop is a sequential circuit or device which is used to store single bit of information
or data i e either ‘0’ or ‘1 Single flip-flop stores single bit at a time
D flip flop is also called as transparent latch as its output follows the input when the
clock is high
J K flip flop is the most widely used of all flip flops
For SR flip-flop
Bidirectional shift register is used to shift data from left to right or right to left
Universal shift register performs similar function as that of bidirection shift register in
addition to it data can be shifted in and out in serial form or in parallel form.
Counter is a device used to count clock pulses or number of events
Counter types are:
Asynchronous Counters
Synchronous Counters
Asynchronous counters a those in which clock is not simultaneous e output of 1st flip
flop acts as clock to the next and so on
Synchronous counters are those in which clock is simultaneous i e common to all the
flip flops
Modulus counters are those which passes through number of states before returning to
the starting state
A twisted ring counter is known as Johnson counter
Monostable multivibrator has only one stable state It is also called as one-shot
multivibrator.
Astable multivibrator has no stable states It is called as free running multivibrator
A T flip-flop is designed by combining both the inputs of Gate 1 and 2 together. Thus, when J
= K = 0, Q have same previous state i.e. hold state or no change state. When J = K = l, Q
have toggle state i.e. invert the previous state.
For S: For R:
Implementation:
Q 3. Give applications of J-K flip-flops.
Ans.
Q 6. What is a Glitch?
Ans. Glitch is a short duration pulse or spike that appears in the outputs of a counter with
MOD number
Ans. To count ‘n’ clock pulses ‘m’ flip-flops are required, where,
Ans. D flip-flops are delay flip flops and are extensively used for temporary storage of data
in registers. Hence, registers make use of D flip-flops.
T flip-flops are toggle flip-flops and are used in counters. Hence, counter designing make
use of T flip-flops.
Ans. It is as shown:
F1 and F2 are the options for the connections of passive components according to the types
of multivibrator to design.
For example
Q 10. For the given state diagram, draw the state reduction diagram.
Stats Diagram:
Ans. State table is as shown:
Ans. Whenever there is no problem of lock out then the counter is self-starting type. So, if
any time the counter goes into an invalid state, it comes out and goes into a valid state after
application of one clock pulse.
Ans. The edge triggered D flip-flop uses an edge-detector circuits so that the output will
respond to D input only when the active transition of clock takes place. It is as shown in fig.
From fig. when enable is ‘1’, the D input will given a ‘0’ at either the or inputs of
NAND latch. Thus, 0 becomes same as D. Thus, when enable is ‘1’ the output Q will look
exactly like D. Hence, the D latch is said to be transparent latch.
Q 13. A presettable counter has eight flip-flops. If the preset number is 125, what is the
modulus?
Ans.
Ans.
Q 15. The clock frequency is 2MHz. How long will it take to serial load the eight shift
register?
Ans.
n=8
Ans. Flip-flop : Flip-flop is a sequential circuit which is used to store single bit of
information at a time i.e. either ‘1’ or ‘0’ at a time. It has two stable output states. It can stay
in one of the two stable states unless state is changed by applying external inputs. Thus, it
as a basic memory element for storage of data in binary form.
2. J-K flip-flop
4. T-type flip-flop
Ans. Multivibrators : Most of the digital circuits or systems need some kind of a timing
waveform for example, all clocked sequential system required a source of trigger pulses. A
timing circuit which produces a rectangular waveforms are referred to as multivibrators.
There are different types of multivibrators such as:
1. Astable Multivibrator
2. Monostable Multivibrator
3. Bistable Multivibrator.
Ans. Shift register : A register capable of shifting its binary information either from
right to left or left to right is known as shift register. It consists of flip-flops connected is
cascade. All flip-flops receive a common clock pulse which causes the shift from one stage to
the next stage.
Bi-directional shift register and Universal shift registers are also used for different
applications.
Ans. Universal shift register performs similar operation and function as that of bidirectional
shift register i.e. it can shift data from left to right or right to left, in addition to it data can be
shifted in and out and in serial as well as in parallel form.
Q 20. Draw a logic symbol for a D-flip-flop and compare with RS flip-flop.
Ans.
In case of RS two inputs are there hence four possible combined are used. But in case of D
flip-flop it has only one input so and two combinations are used. Also, in D flip-flop whatever
we want to store will be put as input. If we want to store ‘1’. 1 is the input and if ‘0’ is input,
‘0’ will be stored in D flip-flop.
Ans. Buffer registers are also called as storage registers. They are primarily used for
temporary storage, of binary information or data. They provide place to hold data until it is
processed. That is why they are known as buffer registers.
3. It is used for data conversion in computers i.e. serial to parallel, parallel to serial etc.
4. It is used for time delays i.e. serial in serial out shift register are used for this purpose.
Q 24 Give the truth-table for each flip-flop type: (a) J-K ; (b) D ; and (c) T
2. D Flip-flop:
3. T Flip-flop:
Toggle means ‘0’ changes to ‘1 and ‘1’ changes to ‘0’ with the passage of each clock
Q 25 Explain why there may be a race condition in a shift register.
Ans. There is no race condition in Shift register as it make use of D flip flop, R S flip flop as D
and J K flip flop So the condition of J = K = 1 never comes.
Ans. Ripple Counter- Ripple counters are also known as asynchronous counters. It is as
shown in fig for two bits
For ripple counter input clock is given to first flip-flop and the output of first flip-flop acts as
a clock to next flip-flop and so on
Ans.
Ans. The mod of 6 bit ring counter is given by 2 where n = number of bits.
Q 29. Give expression for maximum frequency of operation of n-bit Asynchronous and
synchronous counters.
Ans.
Max. frequency of operation for asynchorous counter
It is same for synchronous counter unless no. of flip-flop, where the maximum frequency of
synchronous counter is
Ans.
Q 31. Draw logic circuit diagram for 3-bit synchronous up-down counter with clear input,
start input and ‘done’ output. The counter should produce ‘done’ output after completion
of counter in either direction.
Ans. Master slave J-K flip-flop is preferred where we want to avoid multiple toggling and
race around conduction. In this flip-flop, master F/F is positive edge triggered and slave flip-
flop is negative edge triggered. The slave ftp-flop followed the master flip-flop.
Q 34. Draw the logic circuits and the excitation tables for the T, JK flip-flops.
Ans.
Ans.
Q 36. Describe the difference between a gated S-R latch and an edge-triggered S-R flip
flop.
Ans. Gated S-R Flip-Flop : A gate S-A Flop/flop requires an enable (E) input. When enable is
high, the output changes according to the inputs S and R. However when enable is
ineffective, no change of state take place. Clock signal may also act as a enable.
Edge Triggered S-R Flip-flop: In edge-triggered S-R flip-flop, the change of state in flip-flop
takes place only when edge (either +ve or -ve) of clock pulse takes place.
Q 37. What is the difference between level and edge triggering? Explain the working of
master slave J-K flip flop.
Ans.
Master slave JK flip-flop : The master slave flip-flop may be designed using R-S, D and JK
flip-flops. Following figure shows the functional block diagram of master slave JK flip- flop:
Case 1: When positive clock pulse goes on leading edge is applied, the CLKm is 1 and CLKs is
0, then data transferred to Qm is held upto CLK = 1
Case 2: When the clock pulse goes negative, trailing edge is applied, the CLKm = 0 and CLKs
= 1, then Qm and will be transferred to Q = and at that duration the inputs at J and
K should not change This is overcome by the use of data lockout.
Internal structures of master slave J-K flip-flop, Truth table is as shown in fig
Q 38. Draw a master-slave J-K flip-flop system. Explain its operation and show that the
race-around condition is eliminated.
Ans.
A master-slave J-K flip-flop is constructed from two flip-flops. One flip-flop acts as a master
and the other as a slave and the overall circuit is thus, called as master-slave flip-flop. It
make use of J-K master flip-flop and S-A slave flip-flop. The master is positive edge triggered
and slave is negative edge triggered. Therefore, master responds to J-K inputs before the
slave. V
If J = 1 and K = 0, the master sets on the positive clock edge. The high output of the master
drives the J input of the slave, so when the negative clock edge arrives, the slave sets,
copying the action of the master.
If J = 0 and K = 1, the master resets on the positive clock edge. The high output of master
i.e. goes to R input of the slave. Therefore, slave resets on arrival of negative clock
edge.
If J = K = 1 for master, it toggles on positive clock edge and the slave them toggles on the
negative clock edge.
When J = K = 1
Let clock = 1 then master is active and slave is in active Therefore, output of master
When clock 0 Master becomes in active and slave is active Therefore, output of the
slave will toggle These changed outputs are again returned back to the master inputs as
feedback is connected in fig
But here clock is ‘0’, the master is still in active So it does not respond to these changed
outputs
This ‘voids multiple toggling which is responsible for Race Around Condition Hence
Ans. A universal shift register is one which can function in any of the SISO SIPO PISO or PIPO
modes of operation To operate the register universally it contains serial input serial output,
parallel inputs, parallel outputs and must be able to serially shift data to the right or to the
left, hold the data or to reset Thus, it has bidirectional property also It is a 74194 IC Its
internal structure is as shown in figure.