0 ratings0% found this document useful (0 votes) 615 views28 pagesModule 5
Class Notes of Analog and Digital Electronics (15CS 32) Course of VTU for Module 5.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here.
Available Formats
Download as PDF or read online on Scribd
ANALOG AND DIGITAL ELECTRONICS
MODULE —5
COUNTERS & D/A CONVERSION AND A/D CONVERSION
DECADE COUNTERS:
A Mod-5 Counter:
A three flip-flop counter has a natural count of 8. The following counter is constructed such that, it will
skip over three counts, and gives a mod-5 counter.
AY Count
o 0
1
0 2
1 3
0 4
o 0
repeats
Mod -§
BC
Mod-5 Binary Counter
A Mod-10 Counter (5 x 2, Mod-10 Counter):
‘A5x2, mode10 counter is shown inthe following Fig.
DCT] A] Count
ofolsoso 0
ofofofi 1
ee
opp 3
el
~~~~-MAHESH PRASANNA K,, VCET, PUTTUR,ANALOG AND DIGITAL ELECTRONICS
‘A Mod-6 Counter (2 x3, Mod-6 Counter):
A 2x3, mod-6 counter is shown in the following Fig.
MAHESH PRASANNA K., VCET, PUTTUR@ ANALOG AND,DIGITAL E. esp sy lk
ata ae FF a ; >
Fe ee |
c
DP
‘The 7490A: The 54/7490A is a TTL MSI decade counter. Its logic diagram, pin-out, and truth table are
given in the following Fig,
a
‘Dual-tn-Line Package
zpD+— MR ne 4 op Oo oe
eee eee oD 8
‘ &
jf te Sa
AR
Reset/Count Function Table
[Resa puts puts]
ROU _ROZ) RA RHA [A Ac Os Ge
PT
HOH K ULfeueL
x x H KIRK LL A
eee OE EH COUNT
Cee eet, counT
Lee eee couNT
Meee eee eee couNT
ale = Hh Ure = Los Uae X Dart Ca
Note 2: Oupur Oseonace top Br BCD cur.
ole 3: Cuput Os iscomecm ste rout Ar bginaryourt
MAHESH PRASANNA K., CET, PUTTURANALOG AND DIGITAL ELECTRONICS
Count TW [VW | BW] | Count [QW [Oe |G [a
0 TELL ye a {e]Cyeye
T [LyLfe T LPL ye ya
2 [E}L[H z [E[Lpaye
3 [LPL ye 3 [LC] eyes
4 |t/yHl/cf{e a }cfaf[r]yc]
Ss |LTH/L|A 8 HILT L 6
6 LJH] HTL 9 H/L/LTH
7 L)H/ AIH 10 H/]L/ HTL
8 HUY LIL] U it HY U]HTH
9 HULL | a 12 HYJAL
‘Output Q, connected to input B L ‘Output Qp connected to input A’
PRESETTABLE COUNTERS:
Self Study.
COUNTER DESIGN AS A SYNTHESIS PROBLEM:
Here, we consider counter as a state machine and 4is
= cownter design steps:
1. Draw the stare diagram for the problem
Construct the truth table
Construct the transition table
Write excitation table (by using characteristic table and state di
used in design’
BEY
fam of flip-flop) for flip-flop
5. Construct state table by using transition table and excitation table
6. Draw the K-map and solve for logic equation; and finally, draw the logie diagram.
Problem: Design a mod-3 counter as a synthesis problem using JK flipsflop,
coe
(60) Clock Count |B] A
(12) @) za
MANESH PRASANNA K., VCET, PUTTURANAL ICS
ition Table:
Present State | Next State T]K] Qui] Action
BTA /BIA T/O] @ | No Change
T7010 oft] 0 | RESET
oy; i {ito Tho] 1 | Ser
rT] o0/;olo T/T] & | Tousie
/*Characteristic Table of JK Flip-Flop*7
4. Excitation Table for JK Flip-Flop: i
Flip-Flop Output | Flip-Flop Input
SK
dn nit J K
7 “ 0 x 0 -
IO
0 7 Tx 7)
oa
d
On
fi T x | 0
/*Sate Diagram for KJ Flip-Flop*/
5. State Table:
Present State | Newt State | Flip-Flop Inputs
By) AS Ja] Kapaa] Sa]
oe]? {7 folxtitx
TTT 71] OTT xIxl
TPO ;OTC {xls lolx
I 1 XTX) XTX] xX
Wg Aged
Tp: B Ky =2
Logie Diagram:
~~~. MAHESH PRASANNA K., VCET, PUTTURANALOG AND DIGITAL ELECTRONICS
biém: Design a mod-6 counter as a synthesis problem using JK flip-flop.
Solution:
‘A mod-6 counter will generate 0, 1,2, 3, 4.5, ... states.
State Diagram: (Goo) Truth Table:
Clock Count | CB] a
de)) (er) 0 ofolo
tT [ofolt
: 2 [oltre
cee) G10) sep
+ |ifoyo
Sate Table:
Present State Next State Flip-Flop Inputs
c B A Cc B A Je | Ke | Ja | Ka | Ja | Ka
ojo] tele |i |a\lale 1|x
oT? tt olor toleixl{s|*lxli
ott Telit tole xf olo x
it tetpielo tei xtairix it
"Tee titel [xloeloal xi [x
TT?lTtToelololxl;lpl[«[xlt
1 1 0 x x x x x x x x x
1 i 1 x x x x x x x x x
MAHESH PRASANNA K., VCET, PUTTURLogie Diagram:
NOTE: In the above problem, for the design, i
ally, when the power is switched on, if circuit enters to
fan invalid siate (state 6 or state 7), then Zock-in condition results. The designed counter will not give
proper result. The solution i self correcting mod-6 counter.
Problem: Design a self correcting mod-6 counter as a synthesis problem using JK flip-flop.
Solution:
‘A mod-6 counter will generate 0, 1, 2,3,4,5, ... states.
State Diagram:
Sate Table:
n (1) Truth Table:
(220) Clock Count |C]B [=
(on o Joyo
@oy Tv yovolt
x polio
(029) @D spot
aT pole
Gr spite
Present Siale Went Sale Flip Fiop inputs
~~~. MAHESH PRASANNA K., VCET, PUTTURANALOG AND DIGITAL ELECTRONICS
BY,
a
W
8
we
3 ]
ea ale) -] +
g
- a|x)alx]
s xl x|-]-]
2 ® | a} x] ) 1g
&
ea S-l]7] 8
%
ls xlx} x|x|
< -
O/9/0) &
2 alglala) ®
{| 0
lo ~/9/0/ 0)
< PEP a
Ss
ia lo fo |-|-| Fy
e =e IR
&
x
Logie Diagram:
MAHESH PRASANNA K., VCET, PUTTUR' ANALOG AND DIGITAL ELECTRONICS.
P
TAL CLOCK:
Self'Study, a
COUNTER DESIGN USING HDL: RST
Mod-8 Up Counter:
module Ue C&Lk, RSF HD;
inpup CLR, RST 5
iss Le.A1R; req [aR
BL negedye CLR OP 6, ey edge RSD)
if (RST) B= sd sd
ese B=h+1;
Ifa particular type of flip-flop to be used for the counter; the Verilog code will be as follows:
“node VOTE CP, B, CL¥, RSD; ~
oubpu? 2,8; }) Mpdulp-3 requires BPs,
Hive TA,J&, KP, 4B;
adstgn JD= ~B; a2hgn A= Vhs;
0h gn IB= FB; iin 48= yd);
THEE Ih) (2,TR, PA, CLK, R572) vie TR
TKFF The CB, 72,
endapdie
2 re CB, TH, 1%, RSXD;
PD Pn bc LOO Fk: GF
Mey woe
PERG he Bem
~~ MAHESH P! a PU fs.
i 7CLK Rp
Pept UDC PL
7 ANALOG AND DIGITAL ELECTRONICS
lém: Design a modulo-8 up down counter which counts in upward direction if input MODE = 0, else
~ counts in downward direction. It should also have a parallel load facility; when PL. = 1, a 3-bit number D
0:2)
is asynchronously loaded to the counter. The counter counts at the negative-edge of CLOCK and its
output is represented by Q.
‘Solution: The Verilog HDL code for the problem is given below. We have used a new keyword integer
to hold a value temporarily. This helps us in writing both up and down count in one single statement that
responds to CLOCK within always block.
modyje DPCPL CCLR, Pd, MDE, DB);
infu) CLR, PL, MDE; Dik Prrode) jah
inpu} [2:0] D;
open) L221; re 28: )) Whe we Sm
inheger poe [. WD) ber) or -)
“es (egy aye aR)
2 Les ) updown = 2; Np WDE
else Ypbywy =), j
POP a BD; NY Pras, pool dah,
CPIM cvs an acon i
ABLE, RE!
Converting a digital signal into an equivalent analog signal is accomplished by designing a resistive
‘network that will change each digital digit level into an equivalent binary weighted voltage (or current).
Binary Equivalent Weight:
Consider the truth table ofa 3-bit binary signal. Suppose that, we want to change the eight possible digital
signals ofthis truth table into equivalent znalog voltages.
‘The smallest number represented is 000; fet us make this equal to 0 V. The largest number is 1115
Jetus make this equal to +7 V. This establishes the range of analog signal to be developed,
-MAHESH PRASANNA K., VCET, PUTTURANALOG AND DIGITAL ELECTI
Berween 000 and 111, there are seven discrete levels. ‘Therefore, divide the analog signal into
seven levels,
Fz ‘The smallest incremental change in the digital signal is represented by (the LSB),
010] 0] 2°. Hence, a | in 2° position will cause a change of +7 * (1/7)=+1 V, at the output.
T]O]T] Similarly, 21 in2! position will cause a change of +7 * (2/7) = #2.V, atthe output; and
TTT] O | a! in2 position will cause a change of +7 * (4/7)= +4 V, atthe output.
TTT] 1] The process can be continued; and itis seen that each successive bit will have a value twice
TT To" that of the preceding bit. The binary equivalent weight of LSB is 1/7, next LSB is 2/7 and
TTO TT MSB (in a3-bit system) is 4/7. The sum of the weights must be equal to 1 (1/7 +2/7 + 4/7
TT] 0] =1). Hence, in general; LSB weight = +=
mo
‘The remaining weights are found by multiplying by 2, 4, 8, and so on.
Problem: Find the binary equivalent weight of each bit in a 3- bit system and 4-bit system,
‘Solution:
Weight] ] Bit | Weight | In a 3-bit system, the LSB has a weight of 1/2? ~ 1) = 1/7. The
2 [1/15] second LSB has a weight of 2 * 1/7 = 2/7. The MSB has a weight of
3] as | 4% 1/7=4/7. Thus, the sum is 1/7 + 2/7 + 4/7 = 7/7
3°) as] ima 4-bit system, tie LSB fas a weighe oF 12" =
FT gis] The second LSB has a weight of 2 * 1/15 = 2/15. The third LSB has
Sum) 777 | FSS TSTS | a weight of 4 * 1/15 = 4/15, The MSB has a weight of 8 * 1/15 =
8/15. Thus, the sum is 1/15-+2/15 + 4/154 8/15 = 15/151.
Resistive Divider: A resistive divider has three digital inputs and one analog out, as shown in the
following Fig. Assume that, the digital input levels are 0 = OV and 1 = +7 V. Based on this analog range;
the output analog voltage forall the discrete digital inputs are listed below.
Digital Inputs | Analog Output
a) OV
ofolt av
v;ilo av
ofift BV
T)O]o AV
T)o|T wv
Thi ]o 76
Thift FIVANALOG AND CS
Vy
resistive divider must do two things in order to change the digital input into an equivalent analog.
output voltages:
1. ‘The 2° bit must be changed to +1 VC, and the 2
be changed to+4 V.
2. These three voltages representing the digital bits must be summed together to form the analog
‘output voltage.
jt must be changed to +2 V, and the 2° bit must
‘A resistive divider that performs these three functions is shown in the following Fig. Resistor Ro, Rs, and
Ry from the divider network. Resistance Ry. represents the load.
Assume that the digital input signal is OO1 is applied to this network. For the digital input 001, the
Vy= thy
equivalent resistive divider circuit is drawn below.
Va
‘The analog output voltage, Va, can be found by Millman's theorem ~ the voltage appearing at any node
in a resistive network is equal to the summation of the currents entering the node divided by the
Bay Yay Hay,
summation of the conductances connected to the node; ie.
Applying Millman’s theorem to the above network, we obtain;
4 w7
v= Bt Rat A Mio
at RAT RA Rt Ry
7 MAHESH PRASANNA K., CET, PUTTURANALOG AND DIGITAL ELECTRONICS
the output V, can be found for any digital input signal by using the following modified form of
Waa ats wD yah ty EE
a en
Where, Voy Vir Vis Vas «+» Vee are the digital input voltage levels (0 or V) and the 1 is the number of
Millman’s theorem:
input bits.
Problem: For a 5-bit resistive divider, determine the following: (a) the weight assigned to the LSB; (b)
the weight assigned to the 2" and 3° LSB; (c) the change in output voltage due to a change in the LSB,
the 2% LSB, and the 3" LSB; (d) the output voltage for a digital input of 10101, Assume 0 = 0 V and | =
+10 ¥.
Solution:
(2) For a Scbit resistive divider, the LSB weight is: /@°—1)= 31.
(b) The 2"! LSB weight is: 2* 1(2°— 1) = 2/31. The 3° LSB weight is: 4 * 112° —1) = 4/31
(© The LSB causes a change in the output voltage of 10/31 V. The 2™ LSB causes a change in the
output voltage of 20/31 V. The 3°*LSB causes a change in the output voltage of 40/31 V.
30+294 02 24+ 196224 0+ 244 10624
ep
=[10(1 +4 + 1OY31 = 210/31 = 46.770
(@) The output voltage for the digital input of 10101 is: Vq =
Drawbacks:
1. Each resistor in the network has a different value, Since these dividers are usually constructed by
using precision resistors, the added expense becomes unattractive,
2. The resistor used for the MSB is required to handle a much greater current that that used for LSB
resistor. For example, in 10-bit system, the current through MSB resistor is approximately 500
times as large as the current through the LSB resistor,
For these reasons, another type of resistive network, called a ladder, has been developed.
BINARY LADDER:
‘A binary ladder is a resistive network, winose output voltage is @ properly weighted sum of the digital
inputs. Such a ladder, designed for 4bits, is shown in the following Fig It is constructed of resistors that
have only two values: Rand 2R. a2 2 QeANALOG AND DIGITAL ELECTRONICS,
‘ground, Beginning at node A, the total resistance looking into the terminating resistor is 2R, The total
resistance looking out towards 2° input is also 2R. These two resistors can be combined to form an
‘equivalent resistor of value R as shown in Fig (a) below.
Va
2 a B x D
= Fig (@)
Now, moving to node B, we see tat the toll resistance looking into the branch toward node A is 2R, as
is the total resistance looking out toward the 2' input. These resistors can be combined to simplify the
network, as shown in Fig (b) below.
oe pa? 2
Cc
= Fig(b) = Figo) é
In the similar fashion, in the network shown in Fig (b); the resistance looking back toward node C is 2R,
as is the resistance looking out toward the 2 input. Hence, network in Fig (B) can be simplified as
network shown in Fig (c)
From this equivalent circuit (Fig (c)); itis clear that, the resistance looking back toward node C is
2R, as is the resistance looking out toward the 2° input.
We ean conclude that, the total resistanee looking from any node back toward the terminating
resistor or out toward the digital input is 2R.
Now, assume that; the digital input is 1000. With this input signal, the binary ladder can be drawn
as shown in Fig (d) below. Since there are no voltage sources tothe left of node D, the entire network to
the lef of node D can be replaced by a resistance of 2R to form the equivalent cireuit shown in Fig (¢)
below. av ty
OR
QR OR
Ya
4m State
Fig) = " @»ANALOG AND DIGITAL ELECTRONICS
is equivalent circuit, it ean be easily seen that the output voltage is: Vy = V*
“Thus, a | in MSB position will provide an output voltage of +V/2,
‘Similarly, it can be shown that, a 1 in second MSB position will provide an output voltage of
4+V/4; a 1 in third MSB position will provide an output voltage of +V/8; and a 1 in LSB position will
provide an outpat voltage of #V/16.
Problem: What are the output voltages caused by each bit in a 5-bit ladder, ifthe input levels are 0 = 0V
and 1 = +10?
Solution: The ouput voliages caused by each bit ina NOTE:
Ssbit ladder are given below: Bit [Binary] Output
First MSB VY, = = 48 = Position | Weight ‘Voltage
Second MSBV, = ina ue ee
a Psp | 14 va
ir ==
Third MSB Yq = “5 3MsB | 18 Vi
Fourh MSBV, = == 22 = +0625 Msp [16 WAG
LSB=Fifth MSB V, = 2 = esp [32 ua
‘Nth MSB us vans
Based on the principle of Superposition;
the total output voltage due to the combination of input digital levels, can be found by simply taking the
sum of the output levels caused by each digital input individually.
Inequation form, the output voltage is given by; we teted
where nis the total number of bits at the input.
vege Vag vans V2 eho
Vy = Meena gate tte
‘where Voy Vis Vas «+ Waa are the digital input voltage levels.
This equation can be simplified
Problem: Find the output voltage from a 5-bit ladder that has a digital Input of 11010. Assume that 0 = 0
Vand i = +10 ¥.
Solution: The output ofa 5-bit ladder forthe digital input 11010 is given by:
(0+284 106 244 04 28+ 106 254 10024 _ [1o(z+s26)) _ 10426
Vy = See ameainonztn roe rPeroens Lacaegtss) — 1086
= = m2 = 40.1257
-MAHESH PRASANNA K., VCET, PUTTUR7 ANALOG AND DIGITAL ELECTRONICS:
ye
The full-scale volge forthe lasers givenby: a= Vt t+ t+ Le
Problem: What is the full-scale output voltage of the 5-bit ladder which has a digital input of 11010?
Solution: he full-scale voltage is simply the sum of the individuel bit voltages; thus
V= 5425+ 1.25 +0.3125 = +9.6875 V
‘The Operational Amplifier (OA) ean be connected to the binary ladder as a unity-gain non-inverting
amplifier.
OR R
Connecting an OA to Binary Ladder
D/A CONVERTERS:
‘The resistive divider or the ladder can be used as the basis for a digital-to-analog (D/A) converter. The
resistive network translates di al to an analog voltage. Additional circuitry is required to complete
the design ofthe DIA converter.
+ There must be a register that can be used to store the digital information, This register could be
any one of the many types discusses
‘+ There must also be level amplifiers between the register and the resistive network to ensure that
the digital signals presented to the network are all ofthe same level and constant,
‘There must be sms fom of gating on the ins of he eit suc hh pops
with the proper information from the digital system. Digie! ype eee
A complete digital-to-analog converter in block diagram
form is shown,
A complete schematic for 4-bit D/A converte is shown in
the following Fig.
MAHESH PRASANNA K., VCET, PUTTURANAL D DIGITAL ELECTRONICS
4-Bit D/A Converter
Each level amplifier have two inputs: one input is the +10 V from the precision voltage source, and the
other is from a Mi
the output of the amplifier is +10 V; and when the input from the flip-flop is low, the output is 0 V.
Out of four flip-flops, the flip-flop on the right represents the MSB, and the flip-flop on the left
represents the LSB. Each flip-flop requires a positive level atthe R or S input to reset or sett
flop. The amplifiers work in such a way that, when the input from a flip-flop is high,
‘The gating scheme for entering information into the register is straightforward. When the READ
igh, and the flip-flop is
set or reset accordingly. Thus, data are entered into the register, each time the READ IN pulse occurs.
IN ine goes high, only one of the two gate outputs connected to each flip-flop i
Multiple Signals: Quite often, itis necessary to decode more than one signal. We have two ways in
which the signals can be decoded.
‘The first method is, simply to use one D/A converter for each signal (as shown in the following
Fig). This has the advantage that, each signal to be decoded is held in its register and the analog output
~~ MAHESH PRASANNA K., VCET, PUTTUR: ANALOG AND DIGITAL ELECTRONICS
age is then held fixed. The di
tal input lines are connected in parallel to each converter. The proper
Digra) i} Lines
‘converter is then selected for decoding, by the select lines,
Decoding a Number of Signals ~ Channel Selection Method
‘The second method involves the use of only one D/A converter and switching its output, This is
multiplexing; and such a system is shown in the following Fig. The disadvantage here is that, the analog
output signal must be held between sampling periods, and the outputs must therefore be equipped with
somple-rsholdamptifers, Sample vied
Digit) Sopp lines
ip Ty? Hines
Decoding a Number of Signals - Multiplex Method
D/A Converter Testing: Two simple, but important tests that can be performed to check the proper
‘operation of the D/A converter are the study-state accuracy test and the monotonicity test
© The study-state accuracy test involves setting a known digital number in the input register,
‘measuring the analog output with an accurate meter, and comparing with the theoretical value,
e
7 MAHESH PRASANNA K., VCET, PUTTURANALOG AND DIGITAL ELECTRONICS
‘Monotonicity test means, checking that the output voltage increases regularly as the input di
signal increases. This can be accomplished by
ing a counter as the digital input signal and
observing the analog output voltage on an oscilloscope. For proper monotonicity, the output
‘waveform should be a perfect staircase waveform (as shown below). The steps of the staircase
waveform must be equally spaced and of the exact'same amplitude. Missing steps, steps of
volioge als
-~s-s-978
RB aetiuae- x
S & gow aar
‘Monotonicity Test: Correct Output & Irregular Output Voltage Waveform
Available D/A Converters: D/A converters with 6, 8, 10, 12-, 16-bit resolution are available. An
inexpensive and very popular D/A converter is the DACO808 — an 8-bit D/A converter, available from
National Semiconductors. In the following Fig, a DACO8O8 is connected to provide a full-scale output
voltage of VO=+10 V, when all 8 digital inputs are Is. Ifthe eight digital inputs are all Os, the output
voltage will be 0 V. Vee = Y5V
PSB A,
Pe
As
BEC
Beet -MAHESH PRASANNA K., VCET, PUTTUR >|
7 ANALOG AND DIGITAL ELECTRONICS
DC power supply voltages are required for the DACO808: Vec = +15 V and Ver = -15 V. The 0.1
UF capacitor is to prevent unwanted circuit oscillations, and to isolate any vi Vee. Pin 2 is
ground and pin 15 is also referenced to ground through a resistor.
‘The output of the DYA converter on pin 4 has a very limited voltage range (+0.5 to -0.6 V). This pin is
designed to provide an output current, lp. The minimum current i
0.0 mA, and the maximum current is
lee This reference current is established with the resistor at pin 14 and the reference voltage as;
beep gg --@
‘The D/A converter output current Ip is given as;
(AL AZ AB AB
tom her (St Gt Ge ot Fa)- om ®
where, A, A2,A3,..., AB are the digital input evel (1 or 0.
‘The output voltage is given as; Vo = Iy*R--------- @
Subsuting equations (1) and Q) into ©). we Bet
Vv, (Al | AZ, AB AS
or) (ML, a 48),
= aT t Tt Et ot ae) ®
TER = Recs We get;
(AL AZ_ ABBY
WEE
Suppose, all the digital inputs are all Os; then,
0,0,0, , 0
to Yay(C4 2a Se + <= vote
‘Suppose, all the digital inputs are all 1s; then,
aoe 1 255%
Vo = Veet G+ Gtatet x) Veg &) 1996 * Vey
Problem: For a DAO808, AI is high, A2 is high, AS is high, and A7 is high The other digital inputs are
all 0s, What isthe output voliage Vs?
vear(te te 2451)
os (G43 a2 ne
D/A ACCURACY AND RESOLUTION:
‘Two very important aspects of the D/A converter are the resolution and the accuracy of the conversion,
Solution:
Vo
0 + 0.789 = 7.89
‘The accuracy of the D/A converter is primarily a function of the accuracy of the precision resistors used
in the ladder and the precision of the reference voltage supply used. Accuracy is a measure of how close
the actual output voltage is to the theoretical output value.
MAHESH PRASANNA K., VCET, PUTTUR
i @a, |
y “" ANALOG AND DIGITAL ELECTRONICS
“For example, suppose that the theoretical output voltage for a particular input should be +10 V.
"An accuracy of 10 % means that, the actual output voltage must be somewhere between 49 and +11 V.
Similarly, ifthe actual output voltage were somewhere between +9.9 and +10.1 V, this would be an
accuracy of 1 %.
Resolution defines the smallest increment in voltage that can be distinguished. Resol
jgnal; that i, the smallest increment in
primarily a fun
of the number of bits in the digital input
output voage is determined by the LSB.
For example, in a 4-bit system, using ladder, the LSB has @ weight of. This means that, the
mallet increment nthe output vlage sof the input votage If we assume tha, this 4 sptem has
0
‘output. Thus, the output voltage changes in steps of 1 V.
input voltage levels of +16 V; (since has a weight o
a change in LSB results in a change of 1 V in the
Hence, this converter can by used to represent analog voltages ftom 0 to #15 V in -V
inerements. But, this converter coe used to resolve voltages into increments smaller than 1V. If we
desire to produce +4.2 V, using this converter, he actual output voltage would be +4.0 V. This converter
is not capable of distinguishing voltages finer than 1 V, which is the resolution of the converter.
If we want to represent voltages to a finer resolution, we would have to use a converter with more
input bts. For example, the LSB of a 10-bit converter has a weight of 1/1024. If this converter has a +10
‘V full-scale output, the resolution is approximately, +10 * =~ 10 mV.
Problem: What is the resolution of a 9-bit D/A converter which uses a ladder network? What is the
resolution expressed as a percentage? If the full-scale output voltage of this converter is +5 ¥, what is
resolution in volts?
it D/A converter has a weight of +. Thus, this converter has a resolution of 1
‘Solution: The LSB in a 9- +
pain 512.
Tho easton oxpesie in prontage 2 * 10 percent
‘The voltage resolution is obtained by multiplying the weight of the LSB by the full-scale output voltage.
‘Thus, the resolution in volts is:
= 10 mv.
Problem: How many bits are required at the input of a converter, if it is necessary to resolve voltage to 5
m¥ and the ladder hax +10 V full-scale?
Solution: The LSB of an 11-bit D/A converter has a resoluti
of by This would provide a resolution at
the output of 535 * 10 +5 mV.
~~. MAHESH PRASANNA K., VCET, PUTTUR aeOG AND DIGITAL ELECTRONICS
INVERTER:
‘The process of converting an analog voltage into an equivalent digital signal id known as analog-to-
digital (A/D) conversion.
CONVERTER - SIMLUTANEOUS CONVERSION METHOD:
‘The simultaneous method of A/D conversion is based on the use of a number of comparator circuits. One
stich system using three comparators is shown in the following Fig.
(
ttt ‘Comparator Outputs
- alala
Y di Fis | Low | Low | Low
) vaw Na hig | tow | tow
FV 13V74 | High | High | Low
FSV Io WV | High | High | High
Simultaneous A/D Conversion
‘The analog signal to be digitized serves as one of the inputs to each comparator, The second input is a
standard reference voltage, The system is capable of accepting an analog input voltage between 0 and +V.
If the analog signal exceeds the reference voltage to any comparator, that comparator tums on. The
‘comparator output levels for the various ranges of input voltages are summarized in the Table given
above,
‘The complete block diagram for an A/D converter is shown in the following Fig.
Xe
42-bit Simultaneous A/D Converter (Block Diagram)
~~~. MAHESH PRASANNA K., VCET, PUTTUR,
. @ANALOG AND DIGITAL ELECTRONICS
i, 2n— 1 comparators are required 1o convert to a digital signal that has m bits. Consider the 3-bit
Repp TL TL XgsF7
a :
2
Enerding Maran Dude kejide
3-Bit Simultaneous A/D Converter
‘The coding network accepts seven input levels and encodes them into 3-bit binary number. Operation of
the coding network can be understood by the Table of outputs given below.
‘Comparator Level ‘Binary Output
Input Voliage
GlalGTala[la],alr{[z[2
Tio Vi | Low | Low | Low | Low | Low [Low [Low] 0 [0 [0
Visto VA | High | Low | Low | Low [iow | Low| Low] 0 | 0 | T
WAto3Vi8 | High | High | Low | Low | Low | Cow [Tow] 0 | T | 0
3V/8 to Vi2 | High | High | High | Low [ tow [Low [Low] 0 [ T [T
Vato SVE | High | High | High [High | Low [Low [Tow [ 1 | 0 | 0
3Vi8t03VM | High | High | High | High | High [Low [Low] 1 [0 [1
BVA to TV | High | High | High | High | High | igh [Low | T [7 | 0
FWibioV | High | High | High | High | Heh | Pie [High [7 [1 [7
Togic Table for the 3-Bit Simultaneous A/D Converter
MAHESH PRASANNA K., VCET, PUTTUR
FSW TED WH rks-9ANALOG AND DIGITAL ELECTRONICS
reeks
2 Bit is eases to determine, since it must be high whenever Cys igh,
‘The 2' bit must be high whenever Cis high and G, is high, or whenever Cis high. Hence, we ean write;
2 =O Ce
In the similar manner; 2° = CE: + Calg + Cos + Cy.
The transfer of data from the encoding matrix into the register must be carted out in two steps:
Y A positive RESET pulse to reset all the fip-flops low
YA positive READ pulse allows the proper READ gates to go high and thus transfer the digital
information into the flip-flops.
‘A convenient application for a 9318 priority encoder is to use it to replace all the digital logic shown in
the above Fig, as follows.
3-Bit Simultaneous A/D Converter Using 9318 Priority Encoder
Advantages:
(© The construction of a simultaneous A/D converter is quite straightforward and relatively easy to
understand.
(© This method is simple and is capable of having extremely fast conversion rates. Hence, this type
‘of converter is frequently called as a flash converter.
Disadvantages:
‘+ Asthe number of bits in the desired digital system inereases, the number of comparators increases
rapidly @"—1),
Example: The Motorola MC10319 ~ an 8-bit flash A/D converter.
MAHESH PRASANNA K., VCET, PUTTUR aNANALOG AND DIGITAL ELECTRONICS
AID converter using only one comparator could be constructed ifa variable reference
voltage is available. The following Fig shows the block diagram for a counter-type A/D converter.
‘Start
Eagle
fe
‘Counter Type A/D Converter
First, the n-bit counter is reset to all Os. When a signal appears on the START line, the gate opens and the
clock pulses are allowed to pass through to the input of the counter. The counter advances through its
normal binary sequence, and the stairease waveform is generated at the output of the ladder. This
waveform is applied to one side of the comparator, and the analog input voltage (which is to be digitized)
is applied to the other side. When the reference voltage equals (or exceeds) the input analog voltage, the
‘gate is closed, the counter stops, and the conversion is complete. The number stored in the counter is now
the digital equivalent of the analog input voltage.
Advantages: The counter-type A/D converter provides a very good method for digi
ing to a high
resolution. This method is much simpler than the simultaneous method for high resolution.
Disadvantages: The conversion time required is longer. Since, the counter always begins at zero and
‘counts through its normal binary sequence, as many as 2" counts may be necessary before conversion is
complete, The average conversion time is, 22 or 2"! counts.
Problem: Suppose that, a counter-type A/D converter for 8-bit is driven by a 500 KHz clock. Fine (a) the
‘maximum conversion time; (b) the average conversion time; (c) the maximum conversion rate.
Solution:
~-MAUESH PRASANNA K., VCET, PUTTURANALOG AND DIGITAL ELECTRONICS
4a)’ An 8-bit converter has @ maximum of 2° = 256 counts. With a 500 KHz clock, the counter
‘advances at the rate of 1 count each (1/500 K) 2 us. To advance 256 counts, the counter requires
256*2* 10*=512ys.
(b) The average conversion time is one-half the maximum conversion time. Thus, itis % * 512 ps =
0.256 ms.
(c) The maximum conversion rate is determined by the longest conversion time. Since the converter
hhas the maximum conversion time of 0.512 ms, it is capable of making at least 1/(0.512 * 10) =
1953 conversions per second. Om% SULLY
os —nTL ta ne
AID CONVERTER — CONTINUOUS CONVERSION METHOD: UF
Consider the continuous-type A/D converter, shown in the following Fig.
Continuous A/D Converter Pigimn) Dip
‘The output of the ladder is fed into « comparator which has two outputs. When the analog voltage is more
Positive than the ladder output, the yp count of the comparator is high. When the analog voltage is more
negative then the ladder output, the down count of the comparator is high,
If the up output of the comparator is high, the AND gate at the input of the up flip-lop is open,
and the first time the clock goes positive, the 19 flip-flop is set, and the counter will advance one count.
~~~ MAHESH PRASANNA K., VCET, PUTTUR%
ANALOG AND DIGITAL ELECTRONICS
Fecinter can advance only one count, since the output of the one-shot (OS) resets both up and down
flip-flops just after the clock goes low.
As long as the up output of the comparator is high, the converter continuous to operate one
conversion cycle at atime. At the point, where the ladder voltage becomes more positive than the analog,
‘input voltage, the up output of the comparator goes low and the down output of the comparator goes high.
‘The conversion then goes through a count-down conversion cycle.
UCCESSIVI
\
al
7 Sie
0
Ss AL
Hi i101
“>1100
i 1011
ma
011
\ A"'Snow
to gsco1
10017
Start ~w1000
ort!
ote al wold
e / oor tg
10100
0100 ‘
oor Z
A 0010
bo10
, Ana) 7 0001
4 idl Ae Soon
SPL PDE rncion Converter
‘The converter operates by successively dividing the voltage ranges in half, The counter first resets to all
(0s, and the MSB is then set. The output of the ladder produces an analog equivalent of MSB and is
compared withthe analog input (which isto be digitized),
If the comparator output is low, means, the ladder output is greater than the analog input. Hence,
the MSB will be cleared and the next bit will be set. Ifthe comparator output is high, means, the ladder
‘output is less than the analog input. Hence, the MSB is set to the next position. The process goes on un
all the bits are tried.
Advantages: High speed and better resolution.
Example: ADCO804: 8-bit CMOS microprocessor compatible successive-approximation A/D converter.
MAHESH PRASANNA K., VCET, PUTTURDIGITAL ELECTR
Self Study,
ACCURACY AND RES
seit si,
By: MAHESH PRASANNA K.,
DEPT. OF CSE, VCET.
teeneeeee
~--+».MAHESH PRASANNA K., VCET, PUTTUR,