LDICA Lecture Notes Min
LDICA Lecture Notes Min
Fig. 7
DC AND AC CHARACTERISTICS OF OPAMPS
(A) DC Characteristics:
1. Input Bias Current(IB):
It is the average of the currents that flow into the inverting (–ve) and non-inverting (+ve)
terminals of opamp.
Let 𝐼𝐵1 = Current throughthe non-inverting terminal
𝐼𝐵2 = Current throughthe non-inverting terminal
𝐼𝐵 1 + 𝐼𝐵 2
Then input bias current IB =
2
Its units are „nA‟. Ideally it is zero. For 741 opamp (at 250 C), its typical value isIB = 80 nA
2. Input Offset Current (Iio or Ios):
It is the difference of currents entering the inverting and non-inverting terminals of opamp. It
is given by
𝐼𝑖𝑜 = 𝐼𝐵1 − 𝐼𝐵2
It is expressed in „nA‟, Ideally it is zero. For 741 opamp (at 250 C) its typical value = 20 nA
3.Input Offset Voltage (Vio or Vis):
It is the voltage that must be applied between the two input terminals of opamp to balance it
(i.e., to make output voltage zero). It is expressed in „mV‟, Ideally it is zero. For 741 opamp
(at 250 C) its typical value = 20 mV.
4. Maximum (orTotal) Output Offset Voltage (VOT):
It is the output voltage of opamp when its two input terminals are grounded. Its value
depends on whether compensating technique is used or not.
If no compensating technique is used, it is given by
VOT = o/p voltage due to i/p offset voltage + o/p voltage due to i/p bias current
𝑅𝑓
i.e., VOT= (1 + ) Vio + R f IB
𝑅1
If a compensated resistance RCOMP is connected to compensate for input bias current, then
𝑅𝑓
VOT = (1 + ) V io + R f I io
𝑅1
Fig.8
Fig.8 represents high frequency model of an opamp with single corner frequency. From
figure, we get
−𝑗 𝑋 𝐶
𝑣𝑜 = . 𝐴𝑂𝐿 𝑣𝑑
𝑅0 −𝑗 𝑋 𝐶
1/𝝎 𝐶
= . 𝐴𝑂𝐿 𝑣𝑑 (Since 𝑋 𝐶 = 1/𝝎 𝐶 )
𝑗𝑅 0 +1/𝝎 𝐶
𝐴𝑂𝐿 𝑣𝑑
Thus 𝑣𝑜 =
1+𝑗 𝝎𝑹𝟎 𝑪
Midband gain A = v0 / vd
𝐴𝑂𝐿
=
1+𝑗 𝝎𝑹𝟎 𝑪
𝐴𝑂𝐿
Thus A =
1+𝑗 𝝎𝑹𝟎 𝑪
𝐴𝑂𝐿
= (because 𝜔 = 2𝜋𝑓)
1+𝑗 𝟐𝝅𝒇𝑹𝟎 𝑪
𝐴𝑂𝐿
= 𝑓
1+ 1
2𝜋 𝑅 0 𝐶
𝐴𝑂𝐿
= 𝑓 ………….. (1)
1+
𝑓1
𝑨𝑶𝑳
∴ Magnitude of A = 𝑨 = ……. (2)
𝒇 𝟐
𝟏+
𝒇𝟏
From eqs. (2) and (3), we can draw the magnitude characteristics and phase characteristics
For an ideal opamp, slew rate is ∞. i.e., output voltage changes simultaneously with input
voltage. Practically, a capacitor is connected within or outside the opamp to prevent
𝑑𝑉𝑜
oscillations. Since voltage across capacitor cannot change instantaneously, cannot be
𝑑𝑡
infinite. For 741 opamp, it is 0.5 V/ µSec.
Important features of slew rate:
It increases with increase in bandwidth.
It increases with increase in closed loop gain.
It increases with increase in dc supply voltage.
It decreases with increase in temperature.
It affects the opamp performance at high frequencies.
Slew rate is specified in data sheet at unity gain and no load. So, it is measured for a voltage
follower.
3. Bandwidth:
It is the range of frequencies over which the operation of opamp is satisfactory.
For a single corner frequency f1, gain of opamp is constant up to f1. Therefore, Bandwidth =
f1.
4. Unity gainbandwidth:
It is defined as the bandwidth of an opamp when the voltage gain is „1‟. Ideally it is infinity.
Practically, it is of the order of a few MHz.
It is also called „gainbandwidth product (GBW)‟ or „Small signal band-width‟ or „Unity
gain crossover frequency‟.
5. Transient Response:
It is the immediate response of the opamp. „Rise Time‟ and „Overshoot‟ are two important
characteristics of transient response.
(i) Rise Time:
It is the time taken by the output of opamp to change from 10% to 90% of sits maximum
value. It is expressed in μSec. Ideally it is zero. for 741 opamp, its typical value is 0.3 μSec.
(ii) Overshoot: It is the deviation of the opamp output from its steady state value. It is
expressed as % of output. Ideally it is zero. For 741 opamp, its typical value is 5%.
OTHER IMPORTANT TOPICS
Common Mode Rejection Ratio (CMRR):
Common-mode Signal: It is the average of the two inputs𝑣1 𝑎𝑛𝑑 𝑣2 of opamp. It is given by
𝑣1 + 𝑣2
𝑣𝑐 =
2
𝑣𝑐 =Common-mode signal
𝑣1 + 𝑣2 150 𝜇𝑉 + 140 𝜇𝑉
= = = 145 𝜇𝑉
2 2
𝑣𝑑 =Difference-mode signal = 𝑣1 − 𝑣2
= 150 𝜇𝑉 − 140 𝜇𝑉 = 10 𝜇𝑉
Given that ρ = 20 and 𝐴𝑑 = 5000
∴ Eq. (1) ⇒
1 145 𝑋 10 −6
𝑣𝑜 = 5000 x 10 x 10–6 (1+ x )
20 10 𝑥 10 −6
= 53.625 mV
Power Supply rejection Ratio (PSRR):
It is defined as the ratio of change in input offset voltage of opamp to the change in supply
voltage. It is given by
PSRR = ∆ 𝑉𝑖𝑜 / ∆ 𝑉
where V is the supply voltage.
It is expressed in „µV/V‟ or in „dB‟.
For µA 741 C, PSRR + 150 V/µV
The lower the value of PSRR, the better the opamp.
Note: It is also called „Supply Voltage Rejection Ratio (SVRR)‟ or „Power Supply
Sensitivity (PSS)‟.
Offset Balancing Techniques:
When both inputs are grounded o/p of an opamp should be ideally zero. But, practically there
exists a very small o/p voltage called output offset voltage. It is due to the input bias
current „IB‟ or input offset voltage „Vio‟ or „Vos‟).
To nullify (cancel or balance) the o/p offset voltage, many opamps come with a
potentiometer between pins 1 and 5 of opamp. Manufacturer provides it. The position of
wiper is adjusted to nullify the o/p offset voltage.
If an opamp has no such provision, we use external balancing techniques. They are called
„Universal Balancing Techniques‟.
Universal Balancing Techniques:
Rcomp = R1∥ Rf
Rcomp is connected to reduce the effects of input bias current IB
10 𝑥 10 3
= (1 + ) 10 x 10−3 + 10 x 103 x 300 x 10−9
1 𝑥 10 3
Rcomp = R1 ∥ Rf
= 1 KΩ ∥ 10 KΩ = 990 Ω
(c) With Rcomp in the circuit
𝑅𝑓
VOT = (1 + ) V io + R f I io
𝑅1
Vo =Vm Sin ωt
𝑑𝑉𝑜
= ωVm Cos ωt … (3)
𝑑𝑡
𝑑𝑉𝑜
Slew rate = | | max
𝑑𝑡
It occurs atCos ωt =1
𝑑𝑉𝑜
i.e., Slew rate = | | max atCos ωt = 1
𝑑𝑡
= ωVm=2πfVmVolts/Sec(Sinceωm=2πf)
2πf Vm
= Volts/µSec
10 6
where f = input frequency
2πf Vm
Thus, Slew rate = 2πfVm Volts/Sec = Volts/µSec
10 6
Problems on slew rate:
Problem 3.3: The o/p voltage of certain opamp circuit changes by 20 V in 4 micro seconds.
What is slew rate?
Solution:
𝑑𝑉𝑜 20 𝑉
Slew rate = = = 5 Volts/µSec
𝑑𝑡 4 𝑥 µSec
Problem 3.4: Assume that 741 opamp is connected as a unity gain inverting amplifier. Let
the input change be 8 V. Determine the time taken for the output to change by 8 V.
Solution:
For 741 opamp Slew rate = 0.5 Volts/µSec
𝑑𝑉𝑜
i.e., = 0.5 Volts/µSec
𝑑𝑡
Let opamp be ideal. i.e., there exists a virtual short circuit at the input of opamp.
i.e., 𝑣𝑎 = 𝑣𝑏 = 0
∴Eq. (1) becomes
0−𝑣𝑖 0−𝑣𝑜
+ =0
𝑅1 𝑅𝑓
𝑣𝑖 𝑣𝑜
− − =0
𝑅1 𝑅𝑓
Non-Inverting Amplifier
Fig. 2 (a) represents a non-inverting amplifier. Here input signal vi (ac or dc) is applied to the
non-inverting terminal. Output vo is feedback to inverting terminal through feedback resistor
Rf.
Fig. 2 (a): Non-Inverting Amplifier
Consider node „a‟ as shown.
Nodal equation at node „a‟ is
𝑣𝑎 − 0 𝑣𝑎 − 0
+ =0 …… (1)
𝑅1 𝑅𝑓
Let the opamp be ideal. i.e., there exists a virtual short circuit at the input of opamp.
i.e., 𝑣𝑎 = 𝑣𝑖
∴ Eq. (1) becomes
𝑣𝑖− 0 𝑣𝑖− 0
+ =0
𝑅1 𝑅𝑓
1 1 𝑣𝑜
i.e., 𝑣𝑖 ( + )=
𝑅1 𝑅𝑓 𝑅𝑓
𝑅1 + 𝑅 𝑓 𝑣𝑜
( ) 𝑣𝑖 =
𝑅1 𝑅 𝑓 𝑅𝑓
𝒗𝒐 𝑹𝟏 + 𝑹𝒇 𝑹𝟏
i.e., ACL = = =1+
𝒗𝒊 𝑹𝟏 𝑹𝒇
or Rf = 4 R1
Choose R1 = 10 KΩ
∴Rf = 4 x 1 KΩ = 4 KΩ
Summer or Adder
(a) Inverting summer:
Let opamp be ideal. i.e., there exists a virtual short circuit at the input of opamp.
i.e., 𝑣𝑎 = 𝑣𝑏 = 0
∴Eq. (1) becomes
𝑣1 𝑣2 𝑣3 𝑣𝑜
− − - =
𝑅1 𝑅2 𝑅3 𝑅𝑓
𝑣1 𝑣2 𝑣3
i.e., vo = −Rf ( + + ) ………. (2)
𝑅1 𝑅2 𝑅3
i.e., output is the inverted sum of inputs. So, the circuit is a simple summer circuit.
Case (ii): R1 = R2 = R3 = 3Rf
∴ Eq. (2) becomes
𝑣1 𝑣2 𝑣3
vo = − Rf( + + )
3𝑅𝑓 3𝑅𝑓 3𝑅𝑓
Let opamp be ideal. i.e., there exists a virtual short circuit at the input of opamp.
i.e., 𝑣𝑏 = 𝑣𝑎 = 0
∴Eq. (1) becomes
𝑣𝑎 −𝑣1 𝑣𝑎 −𝑣2 𝑣𝑎 −𝑣3
+ + = 0
𝑅1 𝑅2 𝑅3
1 1 1 𝑣1 𝑣2 𝑣3
i.e., 𝑣𝑎 ( + + )= + +
𝑅1 𝑅2 𝑅3 𝑅1 𝑅2 𝑅3
𝑣1 𝑣2 𝑣3
+ +
𝑅1 𝑅2 𝑅3
i.e., 𝑣𝑎 = 1 1 1 …… (2)
+ +
𝑅1 𝑅2 𝑅3
𝑣1 𝑣2 𝑣3
𝑅𝑓 + +
𝑅1 𝑅2 𝑅3
i.e., 𝑣𝑜 = (1 + ) 1 1 1
𝑅
+ +
𝑅1 𝑅2 𝑅3
……(3)
Eq. (3) is of the form
𝑣1 𝑣2 𝑣3
𝑣𝑜 = K + +
𝑅1 𝑅2 𝑅3
𝑅𝑓 1 1 1
Where K = (1 + )/ + +
𝑅 𝑅1 𝑅2 𝑅3
1 3
= 3 (𝑣1 + 𝑣2 + 𝑣3 ) /
𝑅 𝑅
= 𝑣1 + 𝑣2 + 𝑣3
i.e., Output is the non-inverted sum of inputs. So, the circuit is called a non-inverting
summer circuit.
Subtractor (Or Difference Amplifier)
Fig.5: Subtractor
Fig. 5 shows an opamp subtractor circuit. Let vk be the voltage at the (+) terminal of opamp.
then
𝑅2
Then vk = v1 ……. (1)
𝑅1 +𝑅2
If R1 = R2, then
vo = v1 – v2
Thus, the circuit acts as a difference amplifier (or subtractor).
Problem 2.3: find the output of the following circuit
= vk (1 + 10) – 2 x 10
= 11 vk -20
2
= 11 x - 20
3
= 7.33 – 20 m= - 12.67 V
Voltage to Current (V to I) Converter
(Transconductance Amplifier)
In many applications we need to convert voltage signal to appropriate current signal. This
can be done using a Voltage to Current (V to I) Converter. Based on the type of load, V to I
converters are of two types.
(i) V to I converter with floating load
(ii) V to I converter with grounded load
(i) V to I converter with floating load:
i.e., 𝒗𝒐 = - is Rf
i.e., i/p current is converted to an o/p voltage 𝑣𝑜 .
Here, resistor Rf is shunted by a capacitor Cf to reduce high frequency noise and possibility
of oscillations.
Instrumentation Amplifier
Instrumentation Amplifiers are widely used in instrumentation and control systems. They are
especially used to amplify the low output of transducers.
Derivation for the output of an Instrumentation Amplifier:
Let opamp be ideal. i.e., no current flows through any input terminal of opamp. Voltage at (-)
terminal = V2 and vo(+) terminal = V1
So, current I flowing upwards through R1 is
𝑉1 −𝑉2
I= ….. (3)
𝑅
Putting the value of „I‟ from eq. (3) into eq. (6), we get
𝑅2 𝑅′
Vo = [(V1 – V2) + 2 (V1 – V2) ]
𝑅1 𝑅
𝑹𝟐 𝑹′
i.e., Vo= (V1 – V2) [1+ 2 ] …… (7)
𝑹𝟏 𝑹
Differentiator
Fig. 8 (a) Ideal Differentiator
Differentiator is a Circuit whose output is directly proportional to the derivative of input.
(a) Differentiator
Fig. 8 (a) represents adifferentiator circuit. Consider node „a‟.
Nodal equation at node „a‟ is
𝑑(𝑣𝑎 −𝑣𝑖 ) 𝑣𝑎 −𝑣𝑜
𝐶1 + = 0 …… (1)
𝑑𝑡 𝑅𝑓
For ideal opamp, there exists a virtual ground at the input of the opamp.
i.e., 𝑣𝑎 = 0
𝑑𝑣𝑖 𝑣𝑜
∴Eq. (1) becomes− 𝐶1 =
𝑑𝑡 𝑅𝑓
𝒅𝒗𝒊
or 𝒗𝒐 = − RfC1
𝒅𝒕
𝑑𝑣𝑖
i.e., 𝑣𝑜 is directly proportional to , where RfC1 is a proportionality constant. So, it is a
𝑑𝑡
differentiator circuit.
(b) Analysis in the frequency domain:
Fig. 8 (b)
Consider Fig. 8 (b).
1
𝑍1 =
𝑠𝐶1
𝑍2 = 𝑅𝑓
𝑍𝑓
Gain A(s) = −
𝑍1
𝑅𝑓
=1
𝑠𝐶1
𝟏
where 𝒇𝒂 =
𝟐𝛑𝐑 𝒇 𝐂𝟏
𝑅𝑓
= ……… (2)
1+𝑠𝑅𝑓 𝐶𝑓
𝑍𝑓
We know that A = -
𝑍1
𝑅𝑓 𝑠𝐶1
=- . {from eqs. (1) and (2)}
1+𝑠𝑅𝑓 𝐶𝑓 1+𝑠𝑅1 𝐶1
𝑠𝑅𝑓 𝐶1
=-
1+𝑠𝑅𝑓 𝐶𝑓 1+𝑠𝑅1 𝐶1
If RfCf = R1C1,
above equation becomes
−𝑠𝑅𝑓 𝐶1
A= ……… (3)
1+𝑠𝑅1 𝐶1 2
−𝑠𝑅𝑓 𝐶1
=
1+𝑗𝑓 / 𝑓 𝑏 2
𝟏
Where fb =
𝟐𝝅𝑹𝟏 𝑪𝟏
(iv) A resistorRComp(= R1∥ Rf) is connected to the non-inverting terminal to compensate for
the effect of input bias current.
(f) Design Procedure:
* Choose fa = highest frequency of input signal.
1
fa is given by fa=
2𝜋𝑅𝑓 𝐶1
* Let C1< 1 μF (say C1 = 0.1 μF) and calculate Rffrom the above formula.
* Choose fb = 10 fa (say) and calculate the values of R1
1
fb is given by fb=
2𝜋𝑅1 𝐶1
Since Rfcf = R1 C1
𝑅1 𝐶1 1.59 𝑥 10 3 𝑥 0.1 𝑥 10 −6
Cf = = 0.01 μF
𝑅𝑓 15.9 𝑥 10 3
Integrator
Integrator is a circuit whose output is directly proportional to the time integral of input
voltage.
(a) Integrator:
For an ideal opamp, there exists a virtual ground at the input of the opamp.
i.e., 𝑣𝑎 = 0
∴ Eq. (1) becomes
𝑣𝑖 𝑑𝑣𝑜
- -𝐶𝑓 = 0
𝑅1 𝑑𝑡
𝑑𝑣𝑜 𝑣𝑖
i.e., 𝐶𝑓 = -
𝑑𝑡 𝑅1
𝑑𝑣𝑜 −1
or = 𝑣𝑖
𝑑𝑡 𝑅1 𝐶 𝑓
1
or𝑑𝑣𝑜 = − 𝑣𝑖 dt
𝑅1 𝐶 𝑓
In frequency domain, it is
𝑣𝑎 −𝑣𝑖 𝑣𝑎 −𝑣𝑜
+ 1 = 0 … (1)
𝑅1 𝑠𝐶𝑓
In steady state, s = j ω
∴ Eq. (3) becomes
1
A (j ω) = - (Since 1/j = - j)
𝑗 ω𝑅1 𝐶𝑓
1
| A (j ω) |=
ω𝑅1 𝐶𝑓
1
= … (4)
2π𝑓 𝑏 𝑅1 𝐶𝑓
𝟏
Or fb =
𝟐𝛑𝑹𝟏 𝑪𝒇
𝑅𝑓
=
1+𝑠𝑅𝑓 𝐶𝑓
𝑣𝑜 𝑠 𝑍𝑓
But =−
𝑣𝑖 𝑠 𝑍1
𝑅𝑓
=−
𝑅1 1+𝑠𝑅𝑓 𝐶𝑓
𝑅
− 𝑓 𝑅
= 1
………. (1)
1+𝑗 ω𝑅𝑓 𝐶𝑓
𝑅
− 𝑓 𝑅
1
=
1+𝑗 2πω 𝑅𝑓 𝐶𝑓
𝑅
− 𝑓 𝑅
1
= 1
1+𝑗𝑓 / ( )
2π f𝑅 𝑓 𝐶 𝑓
𝑅
− 𝑓 𝑅
1
=
1+𝑗𝑓 / 𝑓𝑎 2
1
Where fa =
2𝜋𝑅𝑓 𝐶𝑓
𝑅𝑓
𝑅1
Eq. (1) ⇒A| jw | = ……(2)
1+𝜔 2 𝑅𝑓 2 𝐶𝑓 2
Practical case:
At f = 0,
| A | = Rf / R1 (see graph)
fa is corner frequency. i.e., frequency at which the gain is 0.707 Rf / R1 or – 3 dB below Rf /
R1
At f = fa,
𝑅𝑓 1 𝑅𝑓 1
Gain = .707 = . (Since = .707)
𝑅1 2 𝑅1 2
𝑅𝑓 / 𝑅1 1 𝑅𝑓
i.e., = .
1+ ω 2 𝑅 2 𝐶 2 2 𝑅1
i.e., 1 + ω2 𝑅𝑓 2 𝐶𝑓 2 = 2
i.e., ω2 𝑅𝑓 2 𝐶𝑓 2 = 2-1 =1
i.e., ω𝑅𝑓 𝐶𝑓 = 1
i.e.,2π𝑓𝑎 𝑅𝑓 𝐶𝑓 = 1
1
i.e., 𝑓𝑎 =
2π𝑅𝑓 𝐶𝑓
𝑣𝑜 − 𝑅𝑓
∴ ACL = = 1
𝑣𝑖 𝑅1 +
𝑠𝐶
1
In the midband, C acts as a short circuit. i.e., =0
ω𝐶
Fig. 5 (b)
Applications of Zero-crossing Detector:
(i) Used as Time Marker Generator
(ii) Sine wave to square wave generator
(iii) To detect and count multiple zero-crossings of an arbitrary waveform.
SCHMITT TRIGGER
(orRegenerative Comparator)
Schmitt Trigger is a comparator circuit with regenerative (i.e., + ve) feedback. Because of +
ve feedback, gain increases and transfer curve becomes closer to ideal curve.
When 𝑣𝑖 is just <VLT,𝑣𝑜 switches from - 𝑉𝑆𝑎𝑡 to + 𝑉𝑆𝑎𝑡 . Fig. 6 (c) shows this regenerative
transition.
Fig. 6 (d) shows composite (complete) transfer characteristics and illustrates hysteresis loop.
Important Points:
(i) Because of hysteresis, the circuit triggers at higher voltage for increasing signals than for
decreasing signals.
(ii) VH is independent of Vref. {See eq. (3). There is no Vref term.}.
(iii) R3 is chosen equal to R1∥ R2 to compensate for input bias current.
(iv) A non-inverting Schmitt Trigger is obtained by interchanging 𝑣𝑖 and Vref.
(v) The most important application of Schmitt Trigger is to convert a very slowly varying i/p
voltage into a square wave o/p.
Problem 2.5: In the circuit of the Schmitt Trigger shown in Fig. 6 (a), R1 = 50 KΩ, R2 = 100
KΩ, Vref = 0 V, 𝑣𝑖 = 1 Vpp (peak-to-peak) sine wave and saturation voltage = ± 14 V.
Determine upper and lower threshold voltages. Also calculate hysteresis width.
Solution:
Given that R1 = 50 KΩ, R2 = 100 KΩ, Vref = 0 V, 𝑣𝑖 = 1 Vpp (peak-to-peak) sine wave.
𝑅1 𝑉𝑟𝑒𝑓 𝑉𝑆𝑎𝑡 𝑅2
Upper Threshold Voltage VUT = +
𝑅1 + 𝑅2 𝑅1 + 𝑅2
𝑉𝑆𝑎𝑡 𝑅2
=0+ (∵Vref =0)
𝑅1 + 𝑅2
14 𝑥 100
= = 28 mV
50000 + 100
𝑉𝑆𝑎𝑡 𝑅2
Lower Threshold Voltage VLT = 0 -
𝑅1 + 𝑅2
14 𝑥 100
=- = - 28 V
50000 + 100
Fig. 7(a)
Square wave Generator
𝑅2
A fraction β of 𝑣𝑜 is feedback to (+) terminal, where β = . Here R1 and R2 act as voltage
𝑅1 + 𝑅2
divider. 𝑣𝑜 is also feedback through R to the (-) terminal. Whenever voltage 𝑣𝑐 at (-) terminal
exceeds Vref, opamp changes its state, since it acts as a comparator.
Operation:
Let 𝑣𝑜 = + VSat
∴Vref= β𝑣𝑜 = + βVSat
Now capacitor C starts charging towards 𝑣𝑜 though R. When voltage across capacitor just
exceeds +β𝑣𝑜 , opamp o/p switches to - VSat and the cycle repeats.
Derivation for time period „T‟ of the o/p
We know that capacitor charge equation is given by
−𝑡
𝑣𝑐 (t) = 𝑣𝑓 + 𝑣𝑖 − 𝑣𝑓 𝑒 𝑅𝐶 ….. (1)
where 𝑣𝑖 = Initial voltage
𝑣𝑓 = Final (target) voltage
Consider 1st half cycle. i.e., 𝑣𝑜 = + VSat
Here 𝑣𝑖 = - βVSat and𝑣𝑓 = + VSat
∴ Eq. (1) becomes
−𝑡
𝑣𝑐 (t) = VSat+ (–βVSat–VSat) 𝑒 𝑅𝐶
−𝑡
= VSat– VSat (1+β) 𝑒 𝑅𝐶 …… (2)
At t = T1, 𝑣𝑐 (t) = βVSat
∴ Eq. (2) becomes
−𝑇1
βVSat = VSat–VSat (1+β) 𝑒 𝑅𝐶
−𝑇1
= VSat {1– (1+ β) 𝑒 𝑅𝐶 }
−𝑇1
i.e., β = 1– (1+ β) 𝑒 𝑅𝐶
−𝑇1
i.e., (1+ β) 𝑒 𝑅𝐶 =1–β
−𝑇1 1 –𝛽
Or𝑒 𝑅𝐶 =
1+ β
𝑇1 1+ 𝛽
Or 𝑒 𝑅𝐶 =
1− β
1+ 𝛽 1+ 10 21.6
= h
1− β 1− 10 21.6
= 2.7241
∴ T = 2 x 100 x 1000 x 10-8 x ln (2.7241)
= 2.04 mSec
1 1
Frequency = = = 0.4902 KHz
𝑇 2.04 𝑥 10 −3
Problem 2.7: Design a square wave oscillator for f = 1 KHz. The opamp is a 741 with
supply voltages ± 15 V.
Solution:
Consider Fig. 7 (a)
Let R1 = R2 = 10 KΩ
𝑅2 1
Then β = =
𝑅1 + 𝑅2 2
= 2R x 10-8 x ln3
10 −3
∴ R=
2 𝑥 10 −8 𝑥 𝑙𝑛 3
= 0.45512 x 10-5
= 45.512 KΩ
To make o/p independent of supply voltage:
Amplitude of o/p depends on power supply voltage. To make the o/p independent of supply
voltage, we use 2 back-to-back connected Zener diodes as shown in Fig. 7 (b). Fig. 7 (c)
shows the waveform for vo.
The circuit works well at audio frequencies. At high frequencies, operation is limited by slew
rate of opamp.
If two Zener diodes are identical, 𝒗𝒁𝟏 = 𝒗𝒁𝟐 = VZ
Then we get a symmetrical square wave. Otherwise
(𝒊. 𝒆. , 𝒗𝒁𝟏 ≠𝒗𝒁𝟐 ), we get an assymetric square wave o/p
TRIANGULAR WAVE GENERATOR
Fig. 8 (a) shows a triangular wave generator.Here A1 generates a square wave with output
𝑣𝑜 ′ . It is integrated by A2 to get triangular wave with output 𝑣𝑜 . Fig. 8 (b) shows the
waveforms for 𝑣𝑜 ′ and 𝑣𝑜 .
At t = t1, VP = 0
∴ Eq. (1) becomes
𝑅3 𝑅2
- Vramp. = - VSat .
𝑅2 + 𝑅3 𝑅2 + 𝑅3
𝑅2
i.e., - Vramp = - VSat ….. (2)
𝑅3
𝑣𝑜 = 𝑣𝑜(𝑝𝑝 ) , R = R1, C = C1
𝑇
From Fig. 8 (b), we see that, for 2nd half cycle , o/p switches from – Vramp to + Vramp,
2
𝑣𝑖 = VSat
i.e., eq. (5) ⇒
𝑇
−1
𝑣𝑜(𝑝𝑝 ) = 2 − 𝑉𝑆𝑎𝑡 𝑑𝑡
𝑅1 𝐶1 0
𝑉𝑆𝑎𝑡 𝑇
= .
𝑅1 𝐶1 2
𝑅2 𝑉𝑆𝑎𝑡 .𝑇
2 VSat = using eq. (4)
𝑅3 2𝑅1 𝐶1
4 𝑅1 𝑅2 𝐶1
i.e., T =
𝑅3
1 𝑅3
∴ Frequency of Δlar wave =fo = =
𝑇 4 𝑅1 𝑅2 𝐶1
Problem 2.8:For the circuit in Fig. 8 (a), R1 = 10 KΩ, R2 = 10 KΩ, C1 = 0.1 μF, R3 = 40 KΩ.
Find the frequency of Δlar wave.
Solution:
𝑅3
Frequency of Δlar wave = fo =
4 𝑅1 𝑅2 𝐶1
40 𝑥 10 3
=
4 𝑥 10 𝑥 1000 𝑥 10 𝑥 1000 𝑥 0.1 𝑥 10 −6
= 1000 Hz = 1 KHz
MONOSTABLE MULTIVIBRATOR
It has one stable state and one quasi (semi) stable state. When a triggering pulse is given, it
generates single o/p pulse. Width of this pulse depends on external components connected to
opamp.
Fig. 9 (a)
Fig. 9 (a) represents a modified form of astable multivibrator. Diode D1 acts as a clamper.
When o/p is + VSat, it clamps the capacitor voltage 𝑣𝑐 to 0.7 V.
Consider points A and B.
A – ve going pulse is applied at A. It passes through differentiator R4C4 and diode D2
(clipper) and gives a – ve going triggering pulse at point B. This pulse is applied to the (+)
input terminal of opamp. Here 𝑣𝑜 is o/p of circuit.
In steady state, let 𝑣𝑜 = + VSat
So D1 conducts and clamps 𝑣𝑐 to 0.7 V.
The voltage at the (+) input terminal through voltage divider R1R2 is + β VSat.
Now, let a trigger of negative magnitude „V1‟ is applied to (+) input terminal, so that
effective signal at this terminal is < 0.7 V
i.e., {βVSat + (- V1)}< 0.7 V
So, o/p of opamp will switch from + VSat to - VSat.
Now D1 will be reverse biased. So, capacitor „C‟ charges exponentially to - VSat through
resistor R.
The voltage at (+) input terminal, now, is - β VSat
when 𝑣𝑐 just crosses - β VSat, opamp o/p switches back to + VSat.
Then C starts charging to +VSat through R until 𝑣𝑐 = 0.7 V. i.e., until 𝑣𝑐 is clamped to 0.7 V.
Fig. 9 (b), 9 (c) and 9 (d) show various waveforms.
Derivation for pulse width „T‟:
We know that capacitor charge equation is given by
−𝑡
𝑣𝑐 (t) = 𝑣𝑓 + 𝑣𝑖 − 𝑣𝑓 𝑒 𝑅𝐶 ….. (1)
where 𝑣𝑖 = Initial value
𝑣𝑓 = Final (target) value
For the circuit, 𝑣𝑓 = − 𝑉𝑆𝑎𝑡
𝑣𝑖 = 𝑉𝐷 (diode forward voltage)
∴ Eq. (1) becomes
−𝑡
𝑣𝑐 (t) = − 𝑉𝑆𝑎𝑡 + 𝑉𝐷 + 𝑉𝑆𝑎𝑡 𝑒 𝑅𝐶 …… (2)
But, at t = T1, 𝑣𝑐 = - β 𝑉𝑆𝑎𝑡
∴ Eq. (2) becomes
𝑉𝐷 −𝑇
- β 𝑉𝑆𝑎𝑡 = - 𝑉𝑆𝑎𝑡 + 𝑉𝑆𝑎𝑡 1 + 𝑒 𝑅𝐶
𝑉𝑆𝑎𝑡
𝑉𝐷 −𝑇
i.e., - β = - 1 + 1 + 𝑒 𝑅𝐶
𝑉𝑆𝑎𝑡
𝑉𝐷 −𝑇
1 + 𝑒 𝑅𝐶 =1–β
𝑉𝑆𝑎𝑡
−𝑇 1–β
i.e., 𝑒 𝑅𝐶 = 𝑉𝐷
1+
𝑉 𝑆𝑎𝑡
𝑉
𝑇 1+ 𝐷 𝑉
𝑆𝑎𝑡
𝑒 𝑅𝐶 =
1− β
𝑽
𝟏+ 𝑫 𝑽
𝑺𝒂𝒕
i.e., T = RC ln
𝟏− 𝜷
𝑅2
where β =
𝑅1 +𝑅2
𝑅2
where 𝛽 =
𝑅1 +𝑅2
Let R1 = R2
𝑅2 1
∴β = = = 0.5
𝑅1 +𝑅2 2
1
T = RC ln = RC ln2 = 0.69RC
1−0.5
Choose R = 100 KΩ
𝑇
Then C =
0.69 𝑅
0.5
= =
0.69 𝑥 100 𝑥 10 3
As long as
𝑣𝑥 < Vref and vy<Vref,
the output of the multiplier will not saturate. Power supply voltage can range from ± 8V to
± 18V. For 741 opamp it is ± 15 V.Squaring a signal
Quadrants of operation:If both inputs re + ve, the IC is said to be a one quadrant
multiplier. If one input is held positive and other input is allowed to swing either + ve or –
ve, it is called two quadrant operation. If both inputs are allowed to swing either + ve and –
ve, the IC is called a fourquadrant multiplier.
Applications of Analog Multiplier:
i. Frequency doubling
ii. Measurement of real power
iii. Detecting phase angle between 2 signals
iv. Multiplying 2 analog signals
v. Dividing one signal by other
vi. Finding square root of a signal
vii. Squaring a signal
ANALOG DIVIDER
Fig. 12 shows an analog divider circuit.
Fig. 12: Multiplier IC configured as analog divider
Here, the multiplier element is placed in opamp‟s feedback loop.
Let vx and vy be the input signals.
𝑣𝑥
Then 𝑣𝑜 = - Vref
𝑣𝑦
0− 𝑉𝐴
But IA =
𝑅
− 𝑉𝐴
=
𝑅
𝑣𝑥 𝑣𝑜
=- …. (4) using eq. (3)
𝑣𝑟𝑒𝑓 𝑅
From Fig.
𝑉𝑖
IC = and 𝑉𝐸 = -Vo
𝑅1
𝑘𝑇 𝑉𝑖
=- ln ( )
𝑞 𝑉𝑟𝑒𝑓
𝑘𝑇 𝑉𝑟𝑒𝑓
V2 = - ln ( )
𝑞 𝑅1 𝐼𝑠
So, Vo = V2 – V1
𝑘𝑇 𝑉𝑖 𝑉𝑟𝑒𝑓
= [ln ( ) - ln ( )]
𝑞 𝑅1 𝐼𝑠 𝑅1 𝐼𝑠
𝑘𝑇 𝑉𝑖 𝑉𝑟𝑒𝑓
= ln [( )/( )]
𝑞 𝑅1 𝐼𝑠 𝑅1 𝐼𝑠
𝑘𝑇 𝑉𝑖 𝑅1 𝐼𝑠
= ln [ . ]
𝑞 𝑅1 𝐼𝑠 𝑉𝑟𝑒𝑓
𝑘𝑇 𝑉𝑖
= ln [ ]
𝑞 𝑉𝑟𝑒𝑓
Thus, reference voltage is now set with a single external voltage source. Its dependence on
device and temperature was removed. The voltage Vo is still dependent on temperature and is
directly proportional to T. This is compensated by the last opamp stage A4 which provides a
non-inverting gain of
𝑅2
1 + .
𝑅𝑇𝐶
𝑅2 𝑘𝑇 𝑉𝑖
Now Vo comp = 1 + . ln [ ]
𝑅𝑇𝐶 𝑞 𝑉𝑟𝑒𝑓
Fig. 14 shows an antilog amplifier. The input Vi is applied to the base of transistor Q2
through the voltage divider R2 and RTC. The output Vo is feedback to the (-) input of A1
through the resistor R1. The base to emitter voltage of transistors Q1 and Q2 can be written as
𝑘𝑇 𝑉𝑜
𝑉𝑄1 𝐵−𝐸 = ln ( ) ,,,,,, (1)
𝑞 𝑅1 𝐼𝑠
𝑘𝑇 𝑉𝑟𝑒𝑓
and 𝑉𝑄2 𝐵−𝐸 = ln ( ) …… (2)
𝑞 𝑅1 𝐼𝑠
𝑅𝑇𝐶 𝑘𝑇 𝑉𝑜 𝑉𝑟𝑒𝑓
Or Vi = - [ln ( ) - ln ( )]
𝑅2 + 𝑅𝑇𝐶 𝑞 𝑅1 𝐼𝑠 𝑅1 𝐼𝑠
Or
𝑞 𝑅𝑇𝐶 𝑉𝑜
. Vi = ln ( )
𝑘𝑇 𝑅2 + 𝑅𝑇𝐶 𝑉𝑟𝑒𝑓
Objective Questions
1. Expression of gain for the gain of an inverting amplifier is ----------
𝑹𝒇 𝑅𝑓 𝑅𝑓 𝑅𝑓
(a) - (b) 1 + (a) (b) - (1 + )
𝑹𝒊 𝑅𝑖 𝑅𝑖 𝑅𝑖
2. Expression of gain for the gain of a non-inverting amplifier is ----------
𝑅𝑓 𝑹𝒇 𝑅𝑓 𝑅𝑓
(a) - (b)1 + (a) (b) - (1 + )
𝑅𝑖 𝑹𝒊 𝑅𝑖 𝑅𝑖
3. Floating load means
(a) Load impedance is shorted (b) Load impedance is open circuited (c) One end of it
is grounded (iv) No end is grounded.
4. --------- is used in low voltage ac and dc voltmeters.
(a) V-I converter(b) I-V converter (c) Any one (d) none
5. ----------- has problems at high frequencies.
(a) Differentiator(b) Integrator (c) Both (d) None
6. ----------- has problems at low frequencies.
(a) Differentiator (b) Integrator (c) Both (d) None
7. For an ideal differentiator, when f > fb, gain changes at a rate of ------
(a) + 20 dB per decade (b) -20 dB per decade (c) Gain is constant (d) none
8. For an inverting amplifier, the phase angle between input and output is
(a) 00(b) 900(c) 1800(d) None
9. For a non-inverting amplifier, the phase angle between input and output is
(a) 00(b) 900 (c) 1800(d) None
10.Which passive component blocks dc component
(a) R (b) L (c) C (d) None
11.What is the application of a comparator?
(a) Zero-crossing detector (b) Phase meters (c) Schmitt Trigger (d) All
12. A free running oscillator means --------
(a) An astable multivibrator (b) A monostable multivibrator (c) A Schmitt Trigger
(d) A Triangular wave generator
13.Which device is used in sample and hold circuit?
(a) Diode (b) Transistor (c) FET (d) MOSFET
14.Which device is used for squaring a given signal?
(a) Analog divider (b) Analog multiplier (c) Differentiator (d) Integrator
15.What is the output of an integrator for a square wave input?
(a) Series of pulses (b) Sinewave (c) Square wave (d) Triangular wave
16.If f = 10 fa, accuracy of an integrator is ------- is
(a) 99% (b) 100% (c) 0% (d) 50%
17.In Sample and hold circuit, the time during which voltage across C becomes viis called
------------
(a)Hold period (b)Sample Period(c) Time period (d) None
18.Sample and hold circuit is used in
(a) Digital interfacing (b) ADC Systems (c) PCM systems (d) All
19.Which of the following is correct?
(a) An analog multiplier is used to realize an analog divider (b) An analog divider
is used to realize an analog multiplier (c) Both are correct (d) None of (a) and (b) are
correct
20.The voltages to be added in aninverting summer are applied to the ----- terminal of
OP-AMP.
(a) Supply(b) Non-inverting (c) Inverting(d) None
Note: III UNIT Notes given in class
Question Bank on Unit-3
(Active Filters)
Big Questions
1. Derive an expression for the Transfer function of First order LPF/HPF
2. Derive an expression for the Transfer function of Second order LPF/HPF
3. Problem on the design of LPF and HPF.
4. What are active filters and passive filters? What are the advantages of active filters
over passive filters?
5. (a) What is a band pass filter (BPF)? Derive an expression for Transfer
Function of a wideband BPF.
(b) Problem
6. What is the necessity of all pass filter? Draw its circuit diagram and derive an
𝑣
expression for its 𝑜 . Comment on the phase shift generated by all pass filter.
𝑣𝑖
2 Marks Questions
UNIT-3
ACTIVE FILTERS
Electrical Filter:
An Electrical Filter is a circuit that passes signals of specified frequencies and attenuates
(rejects) signals of frequencies outside this band. Based on processing techniques, electrical
filters are classified as analog filters and digital filters. Based on the type of elements used
analog filters are classified as passive and active filters.
Passive Filters: (RC filters and LC filters)
They use passive components (R, L and C). LC filters (also called crystal filters) have high
quality factor „Q‟. So, thy produce stable operation at high frequencies.
LC filters are not preferred at audio and low frequencies. It is because
Inductors are bulky (large in size and heavy)
They are costly.
Stray magnetic fields are present due to magnetic coupling.
Thus, RC filters are used at audio and low frequencies.
Active Filters: They use opamps, resistors and capacitors. Here opamps are active
components and R & C are passive components.
Advantages of active filters over passive filters:
Opamps provide large gain. So, i/p signal is not attenuated as in passive filters.
Opamps provide high i/p impedance and low o/p impedance. So, they do not cause
loading of source and load.
Because of high i/p impedance, we can use large resistor values. This reduces the need
to use large capacitor values. (Large capacitors are bulky and costly).
Opamps are less expensive and inductors are absent in active filters. So, they are more
economical than passive filters.
Active filters are easier to tune and adjust.
Disadvantages of active filters over passive filters:
Opamps need two power supplies
High frequency response of active filters is limited by the slew rate of the opamp.
High frequency opamps are costly.
There is a problem of oscillations in multi stage amplifiers.
Since active filters use active devices, they are more susceptible to RF interference.
In band pass filters and notch filters, practical considerations limit the value of Q
factor to 50.
Types of Active Filters:
1. Low Pass Filters (LPFs):
They allow low frequency signals and attenuate high frequency signals > a cutoff frequency
of fh.
2. High Pass Filters (HPFs):
They allow high frequency signals and attenuate low frequency signals < a cutoff frequency
of fl.
3. Band Pass Filters (BPFs):
They allow a specified range of frequencies and reject frequencies outside this range.
4. Band Reject Filters (BRFs):
They attenuate a particular range of frequencies and allow frequency components outside
this range.
Frequency Response of Active Filters:
Fig. 1: Frequency Response of Active Filters
Fig. 1 represents the frequency response of the 4 types of active filters. Here frequency (in
Hz) is taken on X-axis and gain is taken on Y-axis. Log scale is used for X-axis and linear
scale is used for Y-axis.
Based on the design of filters, analog active filters are classified as Butterworth filters,
Chebyshev filters and Bessel (Cauer) filters. This classification depends on the Transfer
function.
Comparison of filters:
Filter Type Pass Band Stop Band Damping factor
Butterworth Flat Flat α = 1.44
Chebyshev Ripple Flat α = 1.06
Bessel Ripple Ripple α = 1.73
Since Butterworth filter has flat pass band and flat stop band, it is preferred much.
First Order LPF
Fig. 2 (a): First Order LPF Fig. 2(b) Frequency response
A First Order LPF has a single RC network connected to the non-inverting terminal of
opamp as shown in Fig. 2(a). Here 𝑣𝑖 is the input voltage and 𝑣𝑜 is the output.
Here Ri and Rf determine the gain of the filter.
Let 𝑣1 be the voltage at the (+) input terminal of opamp.
1
𝑠𝐶 1
∴𝑣1 (s) = 𝑣𝑖 (s). 1 = 𝑣𝑖 (s).
𝑅+ 1+𝑠𝑅𝐶
𝑠𝐶
𝑣1 (s) 1
i.e., = ………. (1)
𝑣𝑖 (s) 1+𝑠𝑅𝐶
𝑅𝑓 1
= 1 + {using eqs. (1) and (2)}
𝑅𝑖 1+𝑠𝑅𝐶
𝐴𝑜 𝑅𝑓
= Where 𝐴𝑜 = 1 + ……. (3)
1+𝑠𝑅𝐶 𝑅𝑖
𝐴𝑜
= 𝑗𝑓 ……. (5)
1+ 𝑓ℎ
1 1
Where 𝑓ℎ = or ωℎ =
2π𝑅𝐶 𝑅𝐶
𝑣1 (s) 𝑠𝑅𝐶
i.e., = ………. (1)
𝑣𝑖 (s) 1+𝑠𝑅𝐶
𝑅𝑓 𝑠𝑅𝐶
= 1 + {using eqs. (1) and (2)}
𝑅𝑖 1+𝑠𝑅𝐶
𝑠𝐴𝑜 𝑅𝐶
= ……. (3)
1+𝑠𝑅𝐶
𝑅𝑓
Where 𝐴𝑜 = 1 +
𝑅𝑖
Frequency Response:
To determine the frequency response put s = jω in eq. (3). Then we get
𝐴𝑜
H(jω) = 1
1+
𝑠𝑅𝐶
𝐴𝑜
= 1
1+
𝑗 ω 𝑅𝐶
𝐴𝑜
= 1 (Since ω = 2πf)
1+
𝑗 2π f𝑅𝐶
𝐴𝑜 1
= 𝑗 1 (Since = - j)
1− . 𝑗
2π 𝑅𝐶 𝑓
𝐴𝑜
= 𝑓 …… (5)
1−𝑗 𝑙
𝑓
1 1
Where 𝑓𝑙 = or ω𝑙 =
2π𝑅𝐶 𝑅𝐶
𝐴𝑜 /𝑅 2
= 1 𝑠𝐶 𝑠𝐶
+ 2+𝑠𝑅𝐶 + (1− 𝐴0 )
𝑅2 𝑅 𝑅
𝐴𝑜
𝑅2
= 1+𝑠𝑅𝐶 2+𝑠𝑅𝐶 +𝑠𝑅𝐶 1−𝐴 𝑜
𝑅2
𝐴𝑜
= 2 2 2
…….. (6)
𝑠 𝑅 𝐶 +𝑠𝑅𝐶 3−𝐴𝑜 +1
s = 0 ⇒H(s) = Ao
s = ∞ ⇒H(s) = 0
So,it is an LPF of 2nd order.
For any second order systems such as electrical, mechanical, hydraulic andchemical system,
the Transfer function (TF) is given by
𝐴𝑜 𝜔 ℎ 2
H(s) = ….. (7)
𝑠 2 + 𝛼 ω ℎ 𝑠+ 𝜔 ℎ 2
Where α = damping factor or damping coefficient
Ao = Gain of the system
ωℎ = 2 π fℎ , where fℎ =Highest cutoff frequency.
Eq. (6) can be written as
𝐴𝑂
𝑅2𝐶 2
H(s) = 𝑠𝑅𝐶 1
𝑠2 + 2 2 3 − 𝐴𝑜 + 2 2
𝑅 𝐶 𝑅 𝐶
𝐴𝑂
𝑅2𝐶 2
= 𝑠 1 ……… (8)
𝑠2 + 3 − 𝐴𝑜 + 2 2
𝑅𝐶 𝑅 𝐶
Where α = 1.414 = 2 for Butterworth filter, 1.06 for Chebyshev filter and 1.73 for Bessel
filter.
Normalized expression for Transfer function:
Putting s = j ω in eq. (7), we get
𝐴𝑜 𝜔 ℎ 2
H(jω) = Dividing the numerator and denominator of above equation by
(𝑗𝜔 )2 + 𝛼 𝜔 ℎ 𝑠 𝑗 𝜔 +𝜔 ℎ 2
𝜔ℎ 2 , we get
𝐴𝑜
H(jω) =
(𝑗𝜔 /𝜔 ℎ )2 +𝑗 𝛼 𝜔 𝜔 ℎ /𝜔 ℎ 2 + 1
𝐴𝑜
= ……… (9)
(𝑗𝜔 /𝜔 ℎ )2 +𝑗 𝛼 𝜔 / 𝜔ℎ + 1
𝐴𝑜
=
𝑠𝑛 2 +𝑗 𝛼 𝑠𝑛 +1
ω
Where sn = normalized frequency = j
ωℎ
𝐴𝑜
= 𝜔2 𝜔
1− 2 +𝑗 𝛼
𝜔ℎ 𝜔ℎ
𝐴𝑜
20 log |H (jω)| = 20 log
2
𝜔2 𝜔2
1− + 𝛼2
𝜔ℎ2 𝜔ℎ2
𝐴𝑜
= 20 log
𝜔4 𝜔2 𝜔2
1+ −2 + 𝛼2
𝜔ℎ4 𝜔ℎ2 𝜔ℎ2
Since 𝛼 2 =2, last 2 terms in the root get cancelled. So, we get
𝐴𝑜 𝐴𝑜
20 log |H (jω)| = =
𝜔4 4
𝜔
1+ 1+
𝜔ℎ4 𝜔ℎ
𝐴𝑜
= (since 𝜔 = 2 π f and 𝜔ℎ = 2 π 𝑓ℎ
4
𝑓
1+
𝑓ℎ
𝐴𝑜 𝑠 2 𝐶 2
= 𝑠𝐶 1 𝑠𝐶
𝑠2 𝐶 2 + 2+ + (1− 𝐴0 )
𝑅 𝑠𝐶𝑅 𝑅
𝐴𝑜
= 1 1 1
1+ 𝑠𝑅𝐶 2 + 𝑠𝑅𝐶 + 𝑠𝑅𝐶 1−𝐴𝑜
𝐴𝑜
= 1 1 …….. (6)
1+ 3−𝐴𝑜 + 2 2 2
𝑠𝑅𝐶 𝑠 𝑅 𝐶
For any second order system such as electrical, mechanical, hydraulic andchemical system,
the Transfer function (TF) is given by
𝐴𝑜 𝑠 2
H(s) = ….. (7)
𝑠 2 + 𝛼 ω 𝑙 𝑠+ 𝜔 𝑙 2
Where α = 1.414 = 2 for Butterworth filter, 1.06 for Chebyshev filter and 1.73 for Bessel
filter.
Normalized expression for Transfer function:
Putting s = j ω in eq. (8), we get
𝐴𝑜
H(jω) = ω𝑙 2 ω
Dividing the numerator and denominator of above
+ 𝑙 3−𝐴𝑜 +1
𝑗ω 𝑗ω
𝐴𝑜
= 𝑗𝜔 𝜔 𝑙2
……… (9)
1− 𝑙 3−𝐴𝑜 −
𝜔 𝜔2
𝑗𝜔 𝑙
Where sn = normalized frequency = − and 𝛼 = 3 − 𝐴𝑜
𝜔
𝐴𝑜
|H (jω)| =
𝜔 2 2 𝜔 2
1− 𝑙2 + 𝛼 2 𝑙2
𝜔 𝜔
𝐴𝑜
20 log |H (jω)| = 20 log
𝜔 2 2 𝜔 2
1− 𝑙2 + 𝛼 2 𝑙2
𝜔 𝜔
𝐴𝑜
= 20 log
𝜔 4 𝜔 2 𝜔2
1+ 4𝑙 − 2 𝑙2 + 𝛼 2 2
𝜔 𝜔 𝜔 ℎ
Since 𝛼 2 =2, last 2 terms in the root get cancelled. So, we get
𝐴𝑜 𝐴𝑜
20 log |H (jω)| = 4
=
𝜔 𝜔𝑙 4
1+ 4𝑙 1+
𝜔
𝜔
𝐴𝑜
= (since 𝜔 = 2 π f and 𝜔𝑙 = 2 π 𝑓𝑙
𝑓𝑙 4
1+
𝑓
We know that Ao = 3 - α
For Butter worth filter α = 2 = 1.414
∴ Ao = 3 – 1.414 = 1.586
𝑅𝑓
But Ao = 1 +
𝑅𝑖
𝑅𝑓
i.e., 1.586 = 1 +
𝑅𝑖
𝑅𝑓
or = 1.586 -1 = 0.586
𝑅𝑖
Let Rf = 5.86 KΩ
5.86 KΩ
Then Ri = = 10 KΩ
0.586
Problem2: Design a 2nd order Butterworth LPF having lower cutoff frequency of 1 KHz.
Solution is same as in Problem1. Answers are also same.
But frequency response formulae are different for LPF and HPF.
Band Pass Filter (BPF)
A BPF allows a particular band of frequencies and rejects frequencies outside that band.
Wide Band Pass Filter:
Let fl = Lower cutoff frequency
fh = Higher cutoff frequency
fo = Center frequency
Q = Quality Factor
Then
𝑓𝑜 = 𝑓𝑙 𝑓ℎ
Bandwidth = 𝑓ℎ - 𝑓𝑙
𝑓𝑜
Q=
𝑓ℎ − 𝑓𝑙
There are two types of BPFs. They are wide BPF and narrow BPF. For wide BPF, Q < 10
and for narrow BPF, Q > 10.
Wide Band Pass Filter (Q < 10)
Magnitude of TF of BPF =
| HBP| = | HHP| * | HLP| ………. (3)
Eqs. (1), (2) and (3), we write
𝐴01 𝐴𝑜2 𝐴0
| HBP| = = where Ao = Ao1.Ao2
2 2 𝑓𝑙 2 2
𝑓𝑙 𝑓 𝑓
1+ 1+ 1+ 1+
𝑓 𝑓ℎ 𝑓 𝑓ℎ
…….. (4)
Problem 3: Design a wide band pass filter having fl = 400 Hz and fh = 2 KHz with a pass
band gain of 2.
Solution:
For LPF:
1
fh = 2 KHz = 2000 Hz =
2π𝑅1 𝐶1
For LPF:
1
fl = 400 Hz =
2π𝑅2 𝐶2
Here, the pass band gains of LPF and HPF should be same.
𝑅𝑓
Let Ao1 = Ao2 = 2 = 1+
𝑅𝑖
i.e., 𝑅𝑓 = 𝑅𝑖 = 10 KΩ (say)
fo = 𝑓ℎ 𝑓𝑙 = 2000 𝑥 400 = 894.4 KΩ
𝑓𝑜 𝑓𝑜 894.4
Q= = = = 0.56
𝐵𝑊 𝑓ℎ − 𝑓𝑙 2000 −400
For LPF:
1
fh = 400 Hz =
2π𝑅1 𝐶1
Here, the pass band gains of LPF and HPF should be same.
𝑅𝑓
Let Ao1 = Ao2 = 2 = 1+
𝑅𝑖
i.e., 𝑅𝑓 = 𝑅𝑖 = 10 KΩ (say)
Narrow Band Reject Filter:
Narrow BRF is commonly called a notch filter. It is useful for the rejection of a single
frequency like 50 Hz power line hum.
There are mainly two ways of realizing notch filter
First way of realizing a second order notch filter:
It is achieved by cascading a second order narrow BPF and a summer. It is shown in Fig. 10
(a)
Fig. 10 (a)
Bandwidth = BW = fh - fl = 4 fo (1 – K)
𝑓𝑜 1
Q= =
𝐵𝑊 4−𝐾
𝑣 1+ 2𝜋𝑓 𝑅𝐶 2
| 𝑜| = = 1
𝑣𝑖 1+ 2𝜋𝑓 𝑅𝐶 2
−𝑡
= VCC (1 – 𝑒 𝑅𝐶 ) …… (2)
2
At t = T, 𝑣𝑐 (t) = VCC
3
−𝑡
= VCC (1 – 𝑒 𝑅𝐶 ) …… (2)
2
At t = t1, 𝑣𝑐 (t) = VCC
3
−𝑡
= VCC (1 – 𝑒 𝑅𝐶 ) …… (3)
𝑉𝐶𝐶
At t = t2, 𝑣𝑐 (t) =
3
−𝑡 2 1 2
i.e., 𝑒 𝑅𝐶 =1− =
3 3
𝑡2 3
i.e., 𝑒 𝑅𝐶 =
2
i.e., t2 = 0.405 RC
∴ tH = t1 – t2 = 1.1 RC – 0.405 RC
= 0.69 RC (where R = RA + RB)
Thus tH = 0.69 (RA + RB) ….. (4)
2 𝑉𝐶𝐶
For tL, vi = , vf = 0
3
−𝑡 𝐿 1
i.e., 𝑒 𝑅𝐶 =
2
𝑡𝐿
i.e., 𝑒 𝑅𝐶 =2
Taking logarithms on both sides, we get
𝑡𝐿
𝑅𝐶 = ln (2)
Problem 2:For the astable multivibrator in Fig. 4 (b), RA = 6.8 KΩ, RB = 3.3 KΩ and C = 0.1
μF. Calculate t HIGH, t LOW, free running frequency and duty cycle.
Solution:
tHIGH = 0.69 (RA + 2 RB)
= 0.69 (6.8 x 103 + 2 x 3.3 X 103) x 0.1 10-6
= 0.7 mSec
tLOW= tL = 0.69 RB C
= 0.69 x 3.3 x 103 x 0.1 x 10-6
= 0.23 mSec
1.45 1.45
f= =
(𝑅𝐴 + 2 𝑅𝐵 ) C (6.8 x 10 3 + 2 x 3.3 x 10 3 ) x 0.1 x 10 −6
= 1.07 KHz
𝑅𝐵
Duty cycle =
𝑅𝐴 + 2𝑅𝐵
3 𝑥 10 3
= = 0.25
6.8 𝑥 10 3 +2 𝑥 3.3 𝑥 10 3
Fig. 9:
Lock-in range and capture range of PLL
Let us consider a monolithic IC with analog phase detector.
Its lock-in range is given by
2 ∆fL = kv kΦA π
Where kv = Voltage to frequency transfer coefficient of PLL (Hz/Volt)
kΦ= Phase angle to voltage transfer coefficient of PLL (Volt/Radian)
and A = Voltage gain of amplifier
Its capture range is given by
2 ∆fC = 2 𝒇𝟏 . ∆𝒇𝑳
1
Where f1 = = 3 dB frequency of LPF
2π𝑅𝐶
Fig. 11(a):
Pin diagram of 565
Fig. 11(b): Block diagram of 565
Fig. 11 (a) and Fig. 11 (b) represent the pin diagram and block diagram of 565. When inputs
at pin 2 and pin 3 are grounded, VCO output is given by
0,25
fo = Hz
𝑅𝑇 𝐶𝑇
Where RT(2 KΩ to 20 KΩ)is external resistor connected to pin 8 and CT is external capacitor
connected to pin 9.
VCO free running frequency is adjusted by changing RT or CT and is kept at the center of i/p
frequency range. PLL is 3.6 KΩ.
PLL is internally broken between VCO o/p and the phase comparator i/p. A short circuit
between pins 4 and 5connects the VCO o/p to the phase comparator for comparing fo and fs.
A Capacitor C is connected between pins 7 and 10 (Supply terminal) to make an LPF with
the internal resistance of 3.6 KΩ
APPLICATIONS OF PLL
1. Frequency Translation
2. Frequency Multiplication/Division
3. AM Detection
4. FM Demodulator
5. FSK Demodulator
1.Frequency Translation (frequency shifting):
Fig. 12: Frequency translation using PLL
Here, a mixer (or multiplier) and an LPF are externally connected to PLL as shown in Fig.
12. Let fs be the signal to be shifted in frequency (by an amount f1).Let fo is the o/p of VCO.
Then fs and fo are the two inputs to the mixer (multiplier). Output of mixer contain fo ± fs.
fo + fs is rejected by LPF. So, LPF o/p contains fo - fs.
This fo - fs is given as 1stinput to phase comparator. Offset (or translation) frequency f1 is
given as 2nd i/p to comparator. When PLL is in locked state,
fo - fs = f1
i.e., fo = f s + f 1
Thus, fs is translated by an amount f1.
2. Frequency Multiplication and Division:
(a) Frequency Multiplication by N:
Problem 4:For PLL, Determine the dc control voltage vc at lock, if the signal frequency fs =
100 KHz, VCO free running frequency is 5 MHz and the voltage to frequency transfer
coefficient of VCO is 2 MHz/Volt and N = 100 in the frequency multiplier circuit given
below. What is the dc voltage at lock?
Solution:
Given
fs = 100 KHz
fo = 5000 KHz
N = 100
5000 𝐾𝐻𝑧 5000 𝐾𝐻𝑧
∴ fo = = = 50 Hz
𝑁 100
fs = 𝒇𝒐 ′ + kv vc
𝑓𝑠 − 𝑓𝑜 ′
i.e., vc =
𝑘𝑣
Problem 5: A PLL has a free running frequency of 500 KHz and bandwidth of low pass
filter (LPF) is 10 KHz. Will the loop acquire lock for an input signal of 600 KHz? Justify
your answer. Assume that phase detector produces an o/p of 50 mV dc.
Solution:
O/p of phase detector contains sum term fs + fo and difference term fs -fo
Given fs = 600 KHz and fo = 500 KHZ
fs + fo = 600 KHZ + 500 KHZ = 1100 KHz
fs - fo = 600 KHZ – 500 KHZ = 100 KHz.
Hence both sum and difference terms are outside the pass band.
So, loop will not acquire lock, irrespective of vc value given.
UNIT-4
VOLTAGE REGULATORS AND CONVERTERS
D TO A & A TO D CONVERTERS
Some electronic systems operate on only digital signals. If analog signals are available, we
need to convert them to digital form. This can be done by a circuit called Analog to Digital
(„A to D‟ or A/D) converter or ADC.
Similarly, some electronic systems operate with only analog signals. If digital signals are
available, we need to convert them to analog form. This can be done by a circuit called
Digital to Analog („D to A‟ or D/A) converter or DAC.
DIGITAL TO ANALOG CONVERTERS (DACs)
A DAC is a circuit which converts digital signals into analog form.
Basic DAC Technique:
Types of DACs:
1. Binary weighted resistor type DAC
2. r- ladder type DAC
3. Inverted R-2R ladder type DAC
1. BINARY WEIGHTED RESISTOR TYPE DAC
Fig. 3 (d)
Fig. 3 (b) shows equivalent circuit for Fig. 3 (a), where d1 d2 d3 = 100.
Using network analysis, Fig. 3 (b) reduces to Fig. 3 (c) and then Fig. 3 (d).
2𝑅
2𝑅 𝑉𝑅
Voltage at node C = –𝑉𝑅 . 3
2𝑅 = –𝑉𝑅 . =–
2𝑅+ 8𝑅 4
3
The circuit works on the principle of summing currents and operates in current mode.
Problem 4.1: The basic step of an 8-bit DAC is 10.2 mV. If 00000000 represents 0 Volts,
what is the o/p produced if the i/p is 10010111?
Solution:
The o/p produced for input 10010111
= 10.2 mV (1 x 27 + 0 x 26 + 0 x 25 + 1 x 24 + 0x 23 + 1 x 22 + 1 x 21 + 1 x 20)
= 10.2 mV x 151 = 1.54 V
Problem 4.2:Calculate the values of LSB, MSB and full-scale output for an 8–bit DAC for 0
to 10 V range.
Solution:
𝑉𝐹𝑆 𝑉𝐹𝑆
LSB = and MSB =
2𝑛 2
𝟓 𝑽𝑹 𝟔 𝑽𝑹 0 0 1 1 1 1 1 1 1 0 1
to
𝟖 𝟖
𝟔 𝑽𝑹 𝟕 𝑽𝑹 0 1 1 1 1 1 1 1 1 1 0
to
𝟖 𝟖
𝟕 𝑽𝑹 𝟖 𝑽𝑹 1 1 1 1 1 1 1 1 1 1 1
to
𝟖 𝟖
Fig. 6 (d) Truth table for flash ADC
Fig. 6 (b) shows any comparator circuit. Fig. 6 (c) shows truth table of comparator. Fig. 6 (d)
shows the truth table for the flash ADC. The circuit compares va with each nodal voltage.
Here conversion takes place in parallel (simultaneously) rather than sequentially. Conversion
time is limited by speed of comparators and speed of priority encoder.
Drawback of the flash ADC:
An n-bit flash ADC requires 2n – 1comparators where n is the number of bits in binary o/p
word. i.e., number of comparators approximately doubles for each added bit. Also, the larger
the value of n, the more complex is the priority encoder.
SUCCESSIVE APPROXIMATION TYPE ADC
It uses successive approximation technique and converts analog voltage to digital form.
Fig. 7 (a)
Fig. 7 (a) shows the block diagram of an 8-bit successive approximation ADC. SAR stands
for successive approximation register. Opamp „A‟ is used as a comparator. Va is the analog
voltage to be converted to digital form. Vd is the analog o/p voltage of DAC. Output of SAR
is a digital word d1d2 … dn. where d1 = MSB and d8 = LSB.
This 8-bit ADC requires 8 clock pulses for conversion process. An extra (9th) pulse is used to
load the output register and reinitialize the circuit.
SAR finds required value of each bit in digital o/p by trial and error.
When SAR receives START command, it sets MSB to „1‟ and other bits to zero. So, trial
word is 10000000.
Comparator compares va and vd.
If vd<va, trial word is < correct word. Then MSB is left at 1 and next (2nd) MSB is set to 1.
If vd>va, trial word is > correct word. Then MSB is set to 0 and next (2nd) MSB is set to 1.
The procedure is repeated for all bits (from MSB to LSB). Whenever vd>va, the comparator
changes its state.
For simplicity‟s sake, let us consider a 4-bit ADC as an example.
Then, Fig. 7 (b) indicates the conversion sequencefor a typical analog input.
……. (4)
V1 is given in terms of VR as
1 𝑡2 𝑉𝑅
V1 = – − 𝑉𝑅 𝑑𝑡 = (t2 – t3)
𝑅𝐶 𝑡 3 𝑅𝐶
𝑉𝑅
= (–NT) {using Eq. (2)}
𝑅𝐶
𝑉𝑅 𝑁𝑇
=– ….. (5)
𝑅𝐶
4.129 𝑉
= 2 16
8𝑉
= 33825
Above decimal value is equivalent to the binary value 1000010000100001
DAC/ADC SPECIFICATIONS
1. Resolution:
It is the smallest change in DAC output, when its i/p is changed. It is given as
𝑉𝐹𝑆
Resolution = volts (= 1 LSB increment)
2𝑁 −1
If Vo becomes low, voltage at INV also becomes low. So, input of error amplifier becomes
high and so its o/p also becomes high. This output drives Q1.So, voltage across load
increases. Thus, initial drop in the load voltage is compensated. Similarly, any increase in the
load voltage or changes in the input voltage are regulated.
Reference voltage is typically 7.15 V.
𝑅2
∴ Vo = 7.15 * < 7.15 V
𝑅1 + 𝑅2
Fig. 1
Fig. 1 represents the basic schematic of an oscillator. Her
𝑣𝑖 = Input voltage
𝑣𝑜 = Output voltage
𝑣𝑓 = Feedback signal
A = Gain of basic amplifier
β = Gain of frequency selective network = feedback factor
Let the points 1 and 2 are not connected. Then let us apply the input signal 𝑣𝑖 .
From Fig. 1, We get 𝑣𝑓 = A β 𝑣𝑖
Now let us connect points ‘1’ and ‘2’ and remove external signal 𝑣𝑖 , the circuit will continue to
provide same output, without external input.
Barkhausen Criteria:
There are two conditions to get oscillations. They are
|Aβ| = 1
<Aβ = 00 or multiple of 3600
Above two conditions are called Barkhausen criteria.
First condition says that magnitude of loop gain Aβ is 1.
Second condition says that total phase shift of the circuit is 00 or multiple of
3600.
Practical considerations:
Suppose Aβ is exactly 1. Then due to ageing, replacement of transistors, temperature, changes in circuit
parameters Aβ may become < 1. Then gain (or o/p) of the circuit goes on decreasing. So, oscillations will
die out. (1 to 5 %) So, Aβ is taken slightly more than unity. Then o/p will go on increasing. But it is limited
by the non-linearity of active device. Thus o/p becomes constant when the active device enters saturation.
There is no ac input to an oscillator. It uses noise signal like switching transient as the initial input.
UNIT-5
Digital ICs
One of the main disadvantages of the TTL logic series is that the gates are based on
bipolar transistor logic technology and as transistors are current operated devices, they consume
large amounts of power from a fixed +5 volt power supply. Also, TTL bipolar transistor gates
have a limited operating speed when switching from an "OFF" state to an "ON" state and vice-
versa called the "gate" or "propagation delay". To overcome these limitations complementary
MOS called "CMOS" logic gates using "Field Effect Transistors" or FET's were developed.
As these gates use both P-channel and N-channel MOSFET's as their input device, at quiescent
conditions with no switching, the power consumption of CMOS gates is almost zero, (1 to 2uA)
making them ideal for use in low-power battery circuits and with switching speeds upwards of
100MHz for use in high frequency timing and computer circuits.
This CMOS gate (fig 6.5) example contains 3 N-channel MOSFET's, one for each input
FET1 and FET2 and one for the output FET3. When both the inputs A and B are at logic level "0",
FET1 and FET2 are both switched "OFF" giving output logic "1" from the source of FET3. When
one or both of the inputs are at logic level "1" current flows through the corresponding FET
giving an output state at Q equivalent to logic "0", thus producing a NAND gate function.
In fig 6.6 the transistors Q1 and Q3are series-connected complementary pair from the
inverter circuit. Both are controlled by the same input signal (input A), the upper transistor
turning off and the lower transistor turning on when the input is "high" (1), and vice versa. The
transistors Q2 and Q4 are similarly controlled by the same input signal (input B), and how they
will also exhibit the same on/off behaviour for the same input logic levels. The upper transistors
of both pairs (Q1 and Q2) have their source and drain terminals paralleled, while the lower
transistors (Q3 and Q4) are series-connected. What this means is that the output will go "high" (1)
if either top transistor saturates, and will go "low" (0) only if both lower transistors saturate. The
following sequence of illustrations shows the behaviour of this NAND gate for all four
possibilities of input logic levels (00, 01, 10, and 11):
A CMOS NOR gate circuit (fig 6.8) uses four MOSFETs just like the NAND gate, except
that its transistors are differently arranged. Instead of two paralleled sourcing (upper) transistors
Fig 6.8: CMOS NOR Gate
connected to Vdd and two series-connected sinking (lower) transistors connected to ground, the
NOR gate uses two series-connected sourcing transistors and two parallel-connected sinking
transistors like this: As with the NAND gate, transistors Q1 and Q3 work as a complementary
pair, as do transistors Q2 and Q4. Each pair is controlled by a single input signal. If either input A
or input B are "high" (1), at least one of the lower transistors (Q3 or Q4) will be saturated, thus
making the output "low" (0). Only in the event of both inputs being "low" (0) will both lower
transistors be in cutoff mode and both upper transistors be saturated, the conditions necessary for
the output to go "high" (1). This behavior, of course, defines the NOR logic function.
The OR function may be built up from the basic NOR gate with the addition of an
inverter stage on the output (fig 6.9):
Unlike Sequential Logic Circuitswhose outputs are dependent on both their present inputs
and their previous output state giving them some form of Memory, the outputs of
Combinational Logic Circuits (fig 7.1)are only determined by the logical function of their
current input state, logic "0" or logic "1", at any given instant in time as they have no feedback,
and any changes to the signals being applied to their inputs will immediately have an effect at the
output. In other words, in a Combinational Logic Circuit, the output is dependant at all times
on the combination of its inputs and if one of its inputs condition changes state so does the output
as combinational circuits have "no memory", "timing" or "feedback loops".
Fig 7.1 Block diagram of combinational circuits
Combinational Logic Circuits are made up from basic logic NAND, NOR or NOT gates
that are "combined" or connected together to produce more complicated switching circuits.
These logic gates are the building blocks of combinational logic circuits. An example of a
combinational circuit is a decoder, which converts the binary code data present at its input into a
number of different output lines, one at a time producing an equivalent decimal code at its
output.
Combinational logic circuits can be very simple or very complicated and any combinational
circuit can be implemented with only NAND and NOR gates as these are classed as "universal"
gates. The three main ways of specifying the function of a combinational logic circuit are:
Truth Table Truth tables provide a concise list that shows the output values in tabular
form for each possible combination of input variables.
Boolean Algebra Forms an output expression for each input variable that represents a
logic "1"
Logic Diagram Shows the wiring and connections of each individual logic gate that
implements the circuit.
As combinational logic circuits are made up from individual logic gates only, they can
also be considered as "decision making circuits" and combinational logic is about combining
logic gates together to process two or more signals in order to produce at least one output signal
according to the logical function of each logic gate. Common combinational circuits made up
from individual logic gates that carry out a desired application include Multiplexers, De-
multiplexers, Encoders, Decoders, Full and Half Addersetc.
BIPOLAR 74XX
7400 series parts were constructed using bipolar transistors, forming what is referred to as
transistor–transistor logic or TTL. Bipolar devices are also limited to a fixed power supply
voltage, typically 5 V.As integrated circuits in the 7400 series were made in different
technologies, usually compatibility was retained with the original TTL logic levels and power
supply voltages.
o 74 - the "standard TTL" logic family had no letters between the "74" and the
specific part number.
o 74L - Low power (compared to the original TTL logic family), very slow
o H - High speed (still produced but generally superseded by the S-series, used in
1970s era computers)
o S - Schottky (obsolete)
o LS - Low Power Schottky
o AS - Advanced Schottky
o ALS - Advanced Low Power Schottky
o F - Fast (faster than normal Schottky, similar to AS)
CMOS 40XX
The 40XX series is a family of industry standard integrated circuits which implement a
variety of logic functions using Complementary Metal–Oxide–Semiconductor technology, as a
lower power and more versatile alternative to the 7400 series of TTL logic chips. Almost all IC
manufacturers active during the era fabricated chips from this series.
4000 series parts had the advantage of lower power consumption, wider range of supply
voltages (3 V to 15 V), and simpler circuit design due to the vastly increased fanout. However
their slower speed (initially about 1 MHz operation, compared with bipolar TTL's 10 MHz)
limited their applications to static or slow speed designs. Later, new fabrication technology
largely overcame the speed problems, while retaining backward compatibility with most circuit
designs. Although all semiconductors can be damaged by electrostatic discharge, the high
impedance of CMOS inputs makes them more susceptible than bipolar transistor-based, TTL,
devices. Eventually, the advantages of CMOS (especially the later series such as 74HC) edged
out the older TTL chips, but at the same time ever increasing LSI techniques edged out the
modular chip approach to design.
In this section we will examine some methods of using combinational logic circuits to convert
from one code to another.
One method of BCD to binary conversion uses adder circuits. This basic conversion
process is as follows:
1. The value of each bit in the binary number is represented by a binary number
2. All the binary representations of the weights of the bits that are 1s in the BDC are added
3. The result of this addition is the binary equivalent of the BCD number
A more concise statement of this operation is:
The binary numbers representing the weights of the BCD bits are summed to produce
the total binary number.
Let's examine an 8-bit BCD code (one that represents a 2-digit decimal numer) to
understand the relationship between BCD and binary. For instance, you already know that the
decimal number 87 can be expressed in BCD as
˛0_00̧ 0
1 ˛1_11̧
8 7
The left-most 4-bit group represents 80, and the right-most 4-bit group represents 7. That
is, the left-most group has a weight of 10, and the right-most group has a weight of 10, and the
right most group has a weight of 1.Within each group, the binary weight of each bit is as follows:
The binary equivalent of each BCD bit is a binary number representing the weight of
that bit within the total BCD number. This representation is given in Table 7.1.
64 32 16 8 4 2 1
A0 1 0 0 0 0 0 0 1
A1 2 0 0 0 0 0 1 0
A2 4 0 0 0 0 1 0 0
A3 8 0 0 0 1 0 0 0
B0 10 0 0 0 1 0 1 0
B1 20 0 0 1 0 1 0 0
B2 40 0 1 0 0 0 0 0
B3 80 1 0 1 0 0 0 0
Table 7.1
If the binary representations for the weights of all the 1s in the BCD number are added,
the result is the binary number that corresponds to the BCD number.
1. Dotmatrixand
2. TTL logic system(transistor transistor logic)
This system i.e. diode matrix system(fig 7.3) can be implemented for the purpose of
conversion of one number system to the other one with the help of a series of interconnected
diodes. There when it is concerned about conversion of a BCD code to its decimal equivalent
them there exists to ports one that four inputs i.e. 1,2,4,8 and upon switching of them it results
into output of a decimal indicator showing a number from 0 to 9. When it is required to give a
desired output decimal indicator there must not be any connection of the indicator to ground
through diode because in that diode will make it short circuited. Now in order to give an output
indicating the decimal 7 it will required input as:
There are a number of bipolar integrator circuits that were introduces in 1964 of the IC
series 7400. And many decoder ICs are also there in market some of them are those of the series
from 7441 to 7448 and also in TTL series it is 7400 series. There are some characteristics
regarding the family that does not vary from one member to the other one that can be listed as:
Whereas the variations that make them differ from one to another is drive capability to
suite the load applied to the output like whether it is going to be a nixie tube, seven segment
displays or it is a LED display. The circuit (fig 7.4), which is generally implemented, uses
NAND gate circuit in its circuitry which is adopted in most of the TTL logic circuits. Here 0 is
the output which inverted in nature against the input logic 1. This 0 logic refers to a true
condition while 1 stands for a false one which is in oppose of generality. The decoding of all the
inputs is carried out explicitly. As the device is capable of decoding the decimal numbers from 0
to 1 so all the other decimal numbers i.e. from 10 to 15 obtains BCD code as false code of false
logic. Here also, a particular binary code exists for each representation of each decimal number
which is nothing but a combination of four bits. On application of 0010 it will result in
production of decimal 2 similarly input 0011 will give its output as 3 in this way there are 16
combinations of these bits but only 10 of them are used for the purpose of BCD conversion.
While the others ones i.e. from 1010 to 1111 all are used for the purpose of blanking the screen
i.e. to make all the output terminals attain a zero value.
In spite of its feature of driving high power output the IC cannot be implemented for general
purpose indicating devices like a seven segment display.
Standard ICs for a combinational circuit
• Decoders,
• Encoders,
• Multiplexers,
• Code converters,
circuits.
DECODER
A Decoder is a multi-input, multi-output logic circuit (fig 7.5) which converts coded
inputs into coded outputs, where the input and output codes are different. e.g. n-to-2n, binary-
coded decimaldecoders.
In the case of the 74xx138 (fig 7.6), these control lines consist of one active high control
line (G1) and two active-low control lines (G2A, pin 4 and G2B). Thus, the 74xx138 will only
be in its 'decoding' mode if G1 is at logic '1' and G2A and G2B are at logic '0'. The 74xx138,
whose generic product name is '3-to-8 Line Decoder/Multiplexer', obeys the truth table shown in
Table 1. The outputs of the 74xx138 are 'active-low', i.e., the enabled output goes to logic '0'
while all the other outputs are at logic '1'.
Fig 7.6: IC 74138 (3-8 decoder) logic symbol and functional truth table
The 74xx139 (fig 7.7) consist of two independent and identical 2-to-4 decoders. The
enable inputs and outputs of IC 74xx139 are active LOW.
The logic symbol of a demultiplexer(as shown in fig 7.8) is a circuit that receives
information on a single line and transmits this information on one of 2n possible output lines.
The selection of specific output line is controlled by the values of nselection lines. For example,
each of the 16 outputs can be connected through a resistor and then through an LED to serve as a
simple 16 LED controller. The LED can be chosen at random by the status of the 4 line selector
inputs. However, due to the internal structure of the 74154, only one output can be enabled at a
time. This chip is often used in demultiplexing applications, such as digital clocks, LED
matrices, and other graphical outputs.
Fig 7.9a Pin Diagram of 74LS154
The pin diagram and functional truth table are shown in fig 7.9a and table 7.2. Each or
these 4-line-to-16-line decoders utilize TTL circuitryto decode four binary-coded inputs into one
of sixteenmutually exclusive outputs when both the strobe inputs, G1and G2, are low. The
demultiplexing function is performedby using the 4 input lines to address the output line,
passingdata from one of the strobe inputs with the other strobeinput low. When either strobe
input is high, all outputs arehigh. These demultiplexers are ideally suited for implementinghigh-
performance memory decoders. All inputs are bufferedand input clamping diodes are provided
to minimizetransmission-line effects and thereby simplify system design.
ENCODER
An encoder is a digital circuit that performs the inverse operation of a decoder. An encoder has
2n input lines and n output lines. An example of 4-2 line encoder is shown in fig 7.10. In encoder
the output lines generate the binary code corresponding to the input valueOne of the main
disadvantages of standard digital encoders is that they can generate the wrong output code when
there is more than one input present at logic level "1". For example, if we make inputs D1 and D2
HIGH at logic "1" at the same time, the resulting output is neither at "01" or at "10" but will be at
"11" which is an output binary number that is different to the actual input present. Also, an
output code of all logic "0"s can be generated when all of its inputs are at "0" OR when input D0
is equal to one.
The decimal to BCD encoder, usually has ten input lines and four output lines. Fig 7.11a and
table 7.3 shows the logic symbol for IC 74xx147 and its functional truth table. It has 4 input lines
and 4 output lines. Both input and output lines are asserted active LOW. If all input lines are 1
then all outputs are 1.
Fig 7.11a: Pin diagram of 74LS147
Table 7.3Functional truth table of 74LS147
The level of each input pin and if there was more than one input at logic level "1" the actual
output code would only correspond to the input with the highest designated priority. Then this
type of digital encoder is known commonly as a Priority Encoder or P-encoder for short.
If a multiplexer or encoder has N output lines, then it has 2N input lines. A common example of
a decoder/demultiplexer IC is the 74LS148, which is a Low-Power Schottky TTL device that
has 8 input lines and 3 output lines. The 74LS148 is a priority encoder, which means that if
more than one of its inputs are active, then the active input line with the highest binary weight
will be given priority, and the output of the encoder will depend on this prioritized input. Table
7.4 shows the truth table for the 74LS148. Note that E0 and GS are output pins while E1 is a
control pin (input).
Priority encoders are available in standard IC form and the TTL 74LS148 is an 8-to-3 bit priority
encoder which has eight active LOW (logic "0") inputs and provides a 3-bit code of the highest
ranked input at its output. Priority encoders output the highest order input first for example, if
input lines "D2", "D3" and "D5" are applied simultaneously the output code would be for input
"D5" ("101") as this has the highest order out of the 3 inputs. Once input "D5" had been removed
the next highest output code would be for input "D3" ("011"), and so on.
Fig 7.12 Pin Diagram of 74148
The IC 74xx148 (fig 12) is an 8-input priority encoder. It accepts data from eight active low
inputs and provides a binary representation on the three active low outputs. A priority is assigned
to each input so that when two or more inputs are simultaneously active, the input with the
highest priority represented on the output. Input D0 has the least priority and input D7 has
highest priority.
The truth table for IC 74138, 8-to-3 bit priority encoder is given as table 7.4:
E1 D7 D6 D5 D4 D3 D2 D1 D0 A2 A1 A0 E0 GS
1 X X X X X X X X 1 1 1 1 1
0 1 1 1 1 1 1 1 1 1 1 1 0 1
0 0 X X X X X X X 0 0 0 1 0
0 1 0 X X X X X X 0 0 1 1 0
0 1 1 0 X X X X X 0 1 0 1 0
0 1 1 1 0 X X X X 0 1 1 1 0
0 1 1 1 1 0 X X X 1 0 0 1 0
0 1 1 1 1 1 0 X X 1 0 1 1 0
0 1 1 1 1 1 1 0 X 1 1 0 1 0
0 1 1 1 1 1 1 1 0 1 1 1 1 0
Table 7.4 Truth Table of 74148
A multiplexer (or mux) is a device that selects one of several analog or digital input signals and
forwards the selected input into a single line. A multiplexer of 2n inputs has n select lines, which
are used to select which input line to send to the output (fig 7.13). Multiplexers are mainly used
to increase the amount of data that can be sent over the network within a certain amount of time
and bandwidth. A multiplexer is also called a data selector. An electronic multiplexer can be
considered as a multiple-input, single-output switch.
The 74xx151 (fig 7.14) is a 8-to-1 multiplexer. It has eight inputs. It provides two outputs,
one is the active HIGH, the other is active LOW. It contain 3 select inputs C, B and A which
select one of the eight inputs. The 74xx151 is provided with active low enable input.
Fig 7.13 Logic symbol of multiplexer
The IC 74xx157 shown in fig 7.15 is a quad 2-input multiplexer which selects four bits of
data from two sources under the control of a common select input(S), the Enable input(E‟) is
active LOW. When E‟ is HIGH, all of the outputs (Y) are forced low regardless of all other input
conditions. The truth table is shown in table 7.7
Table 7.7: Truth table of 74157
4-bit parallel adders that are available in IC form are the 74LS83A and the 74LS283 low
power Schottky TIL devices. The 74LS83A and the 74LS283 are function- Schottky TIL
devices. The 74LS83A and the 74LS283 are functionally identical to each other but not pin
compatible; that is, the pin numbers for the inputs and outputs are different due to different
power and ground pin connections. For the 74LS283, Vccand ground is pin 8, which is a more
standard configuration. Pin diagrams symbols for both of these devices are shown, with symbols,
in Fig7.16 and fig 7.17. The functional truth tables are shown in tables 7.8 and 7.9.
The LS83A adds two 4-bit binary words (A plus B) plus the incoming carry. The binary sum
appears on the sum outputs (R1–R4) and outgoing carry (C4) outputs.
C0 + (A1+B1)+2(A2+B2)+4(A3+B3)+8(A4+B4) = R1+2R2+4R3+8R4+16C4
Where: (+) = plus
Due to the symmetry of the binary add function the LS83A can be used with either all inputs and
outputs active HIGH (positive logic) or with all inputs and outputs active LOW (negative logic).
Note that with active HIGH Inputs, Carry Input cannot be left open, but must be held LOW when
no carry in is intended.
For example:
The problem of subtraction gets converted into that of addition if l's and 2's complement
representation are used for representing negative numbers. The algorithm for a subtractor using
adder is given in Fig.7.18a.The two numbers A and B can be of the same sign or of opposite
signs. If the two numbers are of unlike sign, we may come across the problem of overflow or
underflow. Overflow occurs when the subtraction operation produces a number larger than the
largest possible number which can be represented by n-bits. On the other hand, underflow occurs
when the result produced is smaller than the smallest number which can be represented by n-
bits.The overflow and underflow logic is illustrated in Fig.7.18. The subtractor circuit is given in
Fig. 7.18b. The reader can verify the operation of this circuit. If overflow or underflow occurs
then the result is wrong. This circuit can be converted into an ADDER/SUBTRACTOR circuit
with ADD/SUB control.
Fig 7.18a: Algorithm to perform subtraction using adder
Another common and very useful combinational logic circuit is that of the Digital
Comparator circuit. Digital or Binary Comparators are made up from standard AND, NOR and
NOT gates that compare the digital signals present at their input terminals and produce an output
depending upon the condition of those inputs. For example, along with being able to add and
subtract binary numbers we need to be able to compare them and determine whether the value of
input A is greater than, smaller than or equal to the value at input B etc. The digital comparator
accomplishes this using several logic gates that operate on the principles of Boolean algebra.
There are two main types of digital comparator available and these are.
Identity Comparator - is a digital comparator that has only one output terminal for when
A = B either "HIGH" A = B = 1 or "LOW" A = B = 0
Magnitude Comparator - is a type of digital comparator that has three output terminals,
one each for equality, A = B greater than, A > B and less than A < B
𝐴 > 𝐵, 𝐴 = 𝐵, 𝐴<𝐵
This is useful if we want to compare two variables and want to produce an output when
any of the above three conditions are achieved. For example, produce an output from a counter
when a certain count number is reached. Consider the simple 1-bit comparator in the fig 7.20
below.
Fig 7.20: Logic circuit of 1-bit comparator
Then the operation of a 1-bit digital comparator is given in the following Truth Table 7.10
Inputs Outputs
B A A>B A=B A<B
0 0 0 1 0
0 1 1 0 0
1 0 0 0 1
1 1 0 1 0
You may notice two distinct features about the comparator from the above truth table.
Firstly, the circuit does not distinguish between either two "0" or two "1"'s as an output A = B is
produced when they are both equal, either A = B = "0" or A = B = "1". Secondly, the output
condition for A = B resembles that of a commonly available logic gate, the Exclusive-NOR or
Ex-NOR function (equivalence) on each of the n-bits giving: Q = A ⊕ B
Digital comparators actually use Exclusive-NOR gates within their design for comparing
their respective pairs of bits. When we are comparing two binary or BCD values or variables
against each other, we are comparing the "magnitude" of these values, a logic "0" against a logic
"1" which is where the term Magnitude Comparator comes from.
As well as comparing individual bits, we can design larger bit comparators by cascading
together n of these and produce a n-bit comparator just as we did for the n-bit adder in the
previous tutorial. Multi-bit comparators can be constructed to compare whole binary or BCD
words to produce an output if one word is larger, equal to or less than the other. A very good
example of this is the 4-bit magnitude comparator. Here, two 4-bit words ("nibbles") are
compared to each other to produce the relevant output with one word connected to inputs A and
the other to be compared against connected to input B as shown below in fig 7.21.
Fig 7.21: 4-bit magnitude comparator
Some commercially available digital comparators such as the TTL 7485 or CMOS 4063
4-bit magnitude comparator have additional input terminals that allow more individual
comparators to be "cascaded" together to compare words larger than 4-bits with magnitude
comparators of "n"-bits being produced. These cascading inputs are connected directly to the
corresponding outputs of the previous comparator as shown to compare 8, 16 or even 32-bit
words.
When comparing large binary or BCD numbers like the example above, to save time the
comparator starts by comparing the highest-order bit (MSB) first. If equality exists, A = B then it
compares the next lowest bit and so on until it reaches the lowest-order bit, (LSB). If equality
still exists then the two numbers are defined as being equal. If inequality is found, either A > B
or A < B the relationship between the two numbers is determined and the comparison between
any additional lower order bits stops. Digital Comparatoris used widely in Analogue-to-Digital
converters, (ADC) and Arithmetic Logic Units, (ALU) to perform a variety of arithmetic
operations.
In digital circuit theory, sequential logic is a type of logic circuit whose output depends
not only on the present value of its input signals but on the past history of its inputs. This is in
contrast to combinational logic, whose output is a function of only the present input. That is,
sequential logic has state (memory) while combinational logic does not. Or, in other words,
sequential logic is combinational logic with memory as shown in the block diagram of fig8.1.
Sequential logic is used to construct finite state machines, a basic building block in all
digital circuitry, as well as memory circuits and other devices. Virtually all circuits in practical
digital devices are a mixture of combinational and sequential logic.
Digital sequential logic circuits are divided into synchronous and asynchronous types. In
synchronous sequential circuits, the state of the device changes only at discrete times in response
to a clock signal. In asynchronous circuits the state of the device can change at any time in
response to changing inputs.
The word "Sequential" means that things happen in a "sequence", one after another and in
Sequential Logic circuits, the actual clock signal determines when things will happen next.
Simple sequential logic circuits can be constructed from standard Bistable circuits such as Flip-
flops, Latches and Counters and which themselves can be made by simply connecting together
universal NAND Gates and/or NOR Gates in a particular combinational way to produce the
required sequential circuit.
SR FLIP-FLOP
The SR flip-flop can be considered as one of the most basic sequential logic circuit
possible. The flip-flop is basically a one-bit memory bistable device that has two inputs, one
which will "SET" the device (meaning the output = "1"), and is labelledS and another which will
"RESET" the device (meaning the output = "0"), labelledR. Then the SR description stands for
set/reset. The reset input resets the flip-flop back to its original state with an output Q that will be
either at a logic level "1" or logic "0" depending upon this set/reset condition.
A basic NAND gate SR flip-flop circuit provides feedback from both of its outputs back
to its inputs and is commonly used in memory circuits to store data bits. Then the SR flip-flop
actually has three inputs, Set, Reset and its current output Q relating to its current state or history.
The term "Flip-flop" relates to the actual operation of the device, as it can be "flipped" into one
logic state or "flopped" back into another.
The simplest way to make any basic one-bit set/reset SR flip-flop is to connect together a
pair of cross-coupled 2-input NAND gates to form a set-reset bistable or an active LOW SR
NAND Gate Latch, so that there is feedback from each output to one of the other NAND gate
inputs. This device consists of two inputs, one called the set, S and the other called the reset, R
with two corresponding outputs Q and its inverse or complement Q as shown in fig 8.2.
Reset State
In this second stable state, Q is at logic level "0", not Q = "0" its inverse output Q is at
logic level "1", Q = "1", and is given by R = "1" and S = "0". As gate X has one of its inputs at
logic "0" its output Q must equal logic level "1" (again NAND gate principles). Output Q is fed
back to input "B", so both inputs to NAND gate Y are at logic "1", therefore, Q = "0". If the set
input, S now changes state to logic "1" with input R remaining at logic "1", output Q still
remains LOW at logic level "0" and there is no change of state. Therefore, the flip-flop circuits
"Reset" state has been latched. We can define this "set/reset" action in the following truth table
8.1.
State S R Q ̄Q Description
1 0 1 0 Set Q » 1
Set
1 1 1 0 no change
0 1 0 1 Reset Q » 0
Reset
1 1 0 1 no change
0 0 0 1 memory with Q = 0
Invalid
0 0 1 0 memory with Q = 1
It can be seen that when both inputs S = "1" and R = "1" the outputs Q and Q can be at
either logic level "1" or "0", depending upon the state of inputs Sor R BEFORE this input
condition existed. However, input state R = "0" and S = "0" is an undesirable or invalid condition
and must be avoided because this will give both outputs Q and Q to be at logic level "1" at the
same time and we would normally want Q to be the inverse of Q. However, if the two inputs are
now switched HIGH again after this condition to logic "1", both the outputs will go LOW
resulting in the flip-flop becoming unstable and switch to an unknown data state based upon the
unbalance. This unbalance can cause one of the outputs to switch faster than the other resulting
in the flip-flop switching to one state or the other which may not be the required state and data
corruption will exist. This unstable condition is known as its Meta-stable state.
Then, a bistable SR flip-flop or SR latch is activated or set by a logic "1" applied to its S
input and deactivated or reset by a logic "1" applied to its R. The SR flip-flop is said to be in an
"invalid" condition (Meta-stable) if both the set and reset inputs are activated simultaneously.
As well as using NAND gates, it is also possible to construct simple one-bit SR Flip-
flops using two cross-coupled NOR gates connected in the same configuration. The circuit will
work in a similar way to the NAND gate circuit above, except that the inputs are active HIGH
and the invalid condition exists when both its inputs are at logic level "1" and this is shown
below in fig 8.3.
When the Enable input "EN" is at logic level "0", the outputs of the two AND gates are also at
logic level "0", (AND Gate principles) regardless of the condition of the two inputs S and R,
latching the two outputs Q and Q into their last known state. When the enable input "EN"
changes to logic level "1" the circuit responds as a normal SR bistable flip-flop with the two
AND gates becoming transparent to the Set and Reset signals. This enable input can also be
connected to a clock timing signal adding clock synchronisation to the flip-flop creating what is
sometimes called a "Clocked SR Flip-flop". So a Gated Bistable SR Flip-flop operates as a
standard bistable latch but the outputs are only activated when a logic "1" is applied to its EN
input and deactivated by a logic "0".
JK FLIP-FLOP
A basic gated SR NAND flip-flop suffers from two basic problems: number one, the
S = 0 and R = 0 condition or S = R = 0 must always be avoided, and number two, if S or R
change state while the enable input is high the correct latching action may not occur. Then to
overcome these two fundamental design problems with the SR flip-flop, the JK flip-Flop was
developed.
The JK flip-Flop is the most widely used of all the flip-flop designs and is considered to
be a universal flip-flop circuit. The sequential operation of the JK flip-flop is exactly the same as
for the previous SR flip-flop with the same "set" and "reset" inputs. The difference this time is
that the JK flip-flop has no invalid or forbidden input states of the SR Latch (when S and R are
both 1).
The JK flip-flop is basically a gated SR flip-flop with the addition of a clock input
circuitry that prevents the illegal or invalid output condition that can occur when both inputs S
and R are equal to logic level "1". Due to this additional clocked input, a JK flip-flop has four
possible input combinations, "logic 1", "logic 0", "no change" and "toggle". The symbol for a JK
flip-flop is similar to that of an SR Bistable Latch except for the addition of a clock input.
The basic JK flip flop is shown in the fig 8.5. Both the S and the R inputs of the previous SR
bistable have now been replaced by two inputs called the J and K inputs, respectively after its
inventor Jack Kilby. Then this equates to: J = S and K = R.
The two 2-input AND gates of the gated SR bistable have now been replaced by two 3-
J K Q Q̄ Description
0 0 0 0 Memory
no change
same as 0 0 0 1
for the 0 1 1 0
SR Latch 0 Reset Q » 0
1 0 1
1 0 0 1
Set Q » 1
1 0 1 0
toggle 1 1 0 1
Toggle
action 1 1 1 0
input NAND gates with the third input of each gate connected to the outputs at Q and Q. This
cross coupling of the SR flip-flop allows the previously invalid condition of S = "1" and R = "1"
state to be used to produce a "toggle action" as the two inputs are now interlocked. If the circuit
is "SET" the J input is inhibited by the "0" status of Q through the lower NAND gate. If the
circuit is “RESET” the K input is inhibited by the "0" status of Q through the upper NAND gate
As Q and Q are always different we can use them to control the input. When both inputs J and K
are equal to logic "1", the JK flip-flop toggles as shown in the following truth table 8.2.Then the
JK flip-flop is basically an SR flip-flop with feedback which enables only one of its two input
terminals, either SET or RESET to be active at any one time thereby eliminating the invalid
condition seen previously in the SR flip-flop circuit. Also when both the J and the K inputs are at
logic level "1" at the same time, and the clock input is pulsed either "HIGH", the circuit will
"toggle" from its SET state to a RESET state, or visa-versa. This results in the JK flip-flop acting
more like a T-type toggle flip-flop when both terminals are HIGH.
Although this circuit is an improvement on the clocked SR flip-flop it still suffers from
timing problems called "race" if the output Q changes state before the timing pulse of the clock
input has time to go "OFF". To avoid this the timing pulse period (T) must be kept as short as
possible (high frequency). As this is sometimes not possible with modern TTL IC's the much
improved Master-Slave JK Flip-flop was developed. This eliminates all the timing problems by
using two SR flip-flops connected together in series, one for the "Master" circuit, which triggers
on the leading edge of the clock pulse and the other, the "Slave" circuit, which triggers on the
falling edge of the clock pulse. This results in the two sections, the master section and the slave
section being enabled during opposite half-cycles of the clock signal.
The 74LS73 is a Dual JK flip-flop IC shown in fig 8.6, which contains two individual JK
type bistable's within a single chip enabling single or master-slave toggle flip-flops to be made.
Other JK flip-flop IC's include the 74LS107 Dual JK flip-flop with clear, the 74LS109 Dual
positive-edge triggered JK flip-flop and the 74LS112 Dual negative-edge triggered flip-flop with
The input signals J and K are connected to the gated "master" SR flip-flop which "locks"
the input condition while the clock (Clk) input is "HIGH" at logic level "1". As the clock input of
the "slave" flip-flop is the inverse (complement) of the "master" clock input, the "slave" SR flip-
flop does not toggle. The outputs from the "master" flip-flop are only "seen" by the gated "slave"
flip-flop when the clock input goes "LOW" to logic level "0". When the clock is "LOW", the
outputs from the "master" flip-flop are latched and any additional changes to its inputs are
ignored. The gated "slave" flip-flop now responds to the state of its inputs passed over by the
"master" section. Then on the "Low-to-High" transition of the clock pulse the inputs of the
"master" flip-flop are fed through to the gated inputs of the "slave" flip-flop and on the "High-to-
Low" transition the same inputs are reflected on the output of the "slave" making this type of
flip-flop edge or pulse-triggered.
Fig 8.7 The Master-Slave JK Flip-Flop
Then, the circuit accepts input data when the clock signal is "HIGH", and passes the data to the
output on the falling-edge of the clock signal. In other words, the Master-Slave JK Flip-flop is
a "Synchronous" device as it only passes data with the timing of the clock signal.
D FLIP-FLOP
One of the main disadvantages of the basic SR NAND Gatebistable circuit is that the
indeterminate input condition of "SET" = logic "0" and "RESET" = logic "0" is forbidden. This
state will force both outputs to be at logic "1", over-riding the feedback latching action and
whichever input goes to logic level "1" first will lose control, while the other input still at logic
"0" controls the resulting state of the latch. In order to prevent this from happening an inverter
can be connected between the "SET" and the "RESET" inputs to produce another type of flip-
flop circuit called a Data Latch, Delay flip-flop, D-type Bistable or simply a D-type flip-flop
as it is more generally called.
The D flip-flop is by far the most important of the clocked flip-flops as it ensures that
ensures that inputs S and R are never equal to one at the same time. D-type flip-flops are
constructed from a gated SR flip-flop with an inverter added between the S and the R inputs to
allow for a single D (data) input. This single data input D is used in place of the "set" signal, and
the inverter is used to generate the complementary "reset" input thereby making a level-sensitive
D-type flip-flop from a level-sensitive RS-latch as now S = D and R = not D as shown in fig 8.8.
We remember that a simple SR flip-flop requires two inputs, one to "SET" the output and
one to "RESET" the output. By connecting an inverter (NOT gate) to the SR flip-flop we can
"SET" and "RESET" the flip-flop using just one input as now the two input signals are
complements of each other. This complement avoids the ambiguity inherent in the SR latch
when both inputs are LOW, since that state is no longer possible.
Thus the single input is called the "DATA" input. If this data input is HIGH the flip-flop
would be "SET" and when it is LOW the flip-flop would be "RESET". However, this would be
rather pointless since the flip-flop's output would always change on every data input. To avoid
this an additional input called the "CLOCK" or "ENABLE" input is used to isolate the data input
from the flip-flop after the desired data has been stored. The effect is that D is only copied to the
output Q when the clock is active. This then forms the basis of a D flip-flop.
Clk D Q Q Description
Memory
↓»0 X Q Q
no change
↑»1 0 0 1 Reset Q » 0
↑»1 1 1 0 Set Q » 1
The D flip-flop will store and output whatever logic level is applied to its data terminal
so long as the clock input is HIGH. Once the clock input goes LOW the "set" and "reset" inputs
of the flip-flop are both held at logic level "1" so it will not change state and store whatever data
was present on its output before the clock transition occurred. In other words the output is
"latched" at either logic "0" or logic "1". The truth table is shown in table 8.3.
The basic D flip-flop can be improved further by adding a second SR flip-flop to its
output that is activated on the complementary clock signal to produce a "Master-Slave D flip-
flop". On the leading edge of the clock signal (LOW-to-HIGH) the first stage, the "master"
latches the input condition at D, while the output stage is deactivated. On the trailing edge of the
clock signal (HIGH-to-LOW) the second "slave" stage is now activated, latching on to the output
from the first master circuit. Then the output stage appears to be triggered on the negative edge
of the clock pulse. "Master-Slave D flip-flops" can be constructed by the cascading together of
two latches with opposite clock phases as shown in fig 8.9.
Fig 8.9 Master-Slave D flip-flop Circuit
We can see from above that on the leading edge of the clock pulse the master flip-flop
will be loading data from the data D input, therefore the master is "ON". With the trailing edge
of the clock pulse the slave flip-flop is loading data, i.e. the slave is "ON". Then there will
always be one flip-flop "ON" and the other "OFF" but never both the master and slave "ON" at
the same time. Therefore, the output Q acquires the value of D, only when one complete pulse,
i.e. 0-1-0 is applied to the clock input.
There are many different D flip-flop IC's available in both TTL and CMOS packages
with the more common being the 74LS74 (fig 8.10) which is a Dual D flip-flop IC, which
contains two individual D type bistable's within a single chip enabling single or master-slave
toggle flip-flops to be made. Other D flip-flop IC's include the 74LS174 HEX D flip-flop with
direct clear input, the 74LS175 Quad D flip-flop with complementary outputs and the 74LS273
Octal D flip-flop containing eight D flip-flops with a clear input in one single package.
APPLICATIONS OF D_FLIPFLOP:
i) Frequency Division
One main use of a D flip-flop is as a Frequency Divider. If the Q output on a D-type flip-flop is
connected directly to the D input giving the device closed loop "feedback", successive clock
pulses will make the bistable "toggle" once every two clock cycles.
In the counters tutorials we saw how the Data Latch can be used as a "Binary Divider", or a
"Frequency Divider" to produce a "divide-by-2" counter circuit, that is, the output has half the
frequency of the clock pulses. By placing a feedback loop around the D flip-flop another type of
flip-flop circuit can be constructed called a T-type flip-flop or more commonly a T-type
bistable, that can be used as a divide-by-two circuit in binary counters as shown below in fig
8.11.
It can be seen from the frequency waveforms above, that by "feeding back" the output from Q to
the input terminal D, the output pulses at Q have a frequency that are exactly one half (f/2) that
of the input clock frequency, (Fin). In other words the circuit produces frequency division as it
now divides the input frequency by a factor of two (an octave) as Q = 1 once every two clock
cycles.
The Data Latch is a very useful device in electronic and computer circuits. They can be
designed to have very high output impedance at both outputs Q and its inverse or complement
output Q to reduce the impedance effect on the connecting circuit when used as a buffer, I/O
port, bi-directional bus driver or even a display driver. But a single "1-bit" data latch is not very
practical to use on its own and instead commercially available IC's incorporate 4, 8, 10, 16 or
even 32 individual data latches into one single IC package, and one such IC device is the
74LS373 Octal D-type transparent latch.
D flip-flop Summary
The data or D flip-flop can be built from a pair of back-to-back latches by connecting an
inverter between the S and the R inputs to allow for a single D (data) input. The basic D-type
flip-flop circuit can be improved further by adding a second SR flip-flop to its output that is
activated on the complementary clock signal to produce a "Master-Slave D flip-flop". The
difference between a D-type latch and a D flip-flop is that a latch does not have a clock signal,
whereas a flip-flop always does. The D flip-flop is an edge triggered device which transfers input
data to Q on clock rising or falling edge. Data Latches are Level sensitive devices such as the
data latch and the transparent latch.
The Shift Register is used for data storage or data movement and are used in calculators
or computers to store data such as two binary numbers before they are added together, or to
convert the data from either a serial to parallel or parallel to serial format. The individual data
latches that make up a single shift register are all driven by a common clock (Clk) signal making
them synchronous devices. Shift register IC's are generally provided with a clear or reset
connection so that they can be "SET" or "RESET" as required.
Generally, shift registers operate in one of four different modes with the basic movement of
data through a shift register being:
Serial-in to Parallel-out (SIPO) - the register is loaded with serial data, one bit at a time,
with the stored data being available in parallel form.
Serial-in to Serial-out (SISO) - the data is shifted serially "IN" and "OUT" of the
register, one bit at a time in either a left or right direction under clock control.
Parallel-in to Serial-out (PISO) - the parallel data is loaded into the register
simultaneously and is shifted out of the register serially one bit at a time under clock
control.
Parallel-in to Parallel-out (PIPO) - the parallel data is loaded simultaneously into the
register, and transferred together to their respective outputs by the same clock pulse.
The effect of data movement from left to right through ashift register can be presented
graphically as in fig 8.13:
Also, the directional movement of the data through a shift register can be either to the
left, (left shifting) to the right, (right shifting) left-in but right-out, (rotation) or both left and right
shifting within the same register thereby making it bidirectional. It is assumed that all the data
shifts to the right, (right shifting).
The operation of fig 8.14 is as follows. Let‟s assume that all the flip-flops (FFA to FFD)
have just been RESET (CLEAR input) and that all the outputs QA to QD are at logic level "0" i.e,
no parallel data output. If a logic "1" is connected to the DATA input pin of FFA then on the
first clock pulse the output of FFA and therefore the resulting QA will be set HIGH to logic "1"
with all the other outputs still remaining LOW at logic "0". Assume now that the DATA input
pin of FFA has returned LOW again to logic "0" giving us one data pulse or 0-1-0.
The second clock pulse will change the output of FFA to logic "0" and the output of FFB
and QB HIGH to logic "1" as its input D has the logic "1" level on it from QA. The logic "1" has
now moved or been "shifted" one place along the register to the right as it is now at QA. When
the third clock pulse arrives this logic "1" value moves to the output of FFC (QC) and so on until
the arrival of the fifth clock pulse which sets all the outputs QA to QD back again to logic level
"0" because the input to FFA has remained constant at logic level "0".
The effect of each clock pulse is to shift the data contents of each stage one place to the
right, and this is shown in the following table until the complete data value of 0-0-0-1 is stored in
the register. This data value can now be read directly from the outputs of QA to QD. Then the data
has been converted from a serial data input signal to a parallel data output. The truth table 8.3
and waveforms in fig 8.14a shows the propagation of the logic "1" through the register from left
to right as follows.
Clock Pulse No QA QB QC QD
0 0 0 0 0
1 1 0 0 0
2 0 1 0 0
3 0 0 1 0
4 0 0 0 1
5 0 0 0 0
Note that after the fourth clock pulse has ended the 4-bits of data (0-0-0-1) are stored in
the register and will remain there provided clocking of the register has stopped. In practice the
input data to the register may consist of various combinations of logic "1" and "0". Commonly
available SIPO IC's include the standard 8-bit 74LS164 or the 74LS594.
This shift register is very similar to the SIPO above, except were before the data was
read directly in a parallel form from the outputs QA to QD, this time the data is allowed to flow
straight through the register and out of the other end. Since there is only one output, the DATA
leaves the shift register one bit at a time in a serial pattern, hence the name Serial-in to Serial-
Out Shift Register or SISO.
The SISO shift register (fig 8.15) is one of the simplest of the four configurations as it has
only three connections, the serial input (SI) which determines what enters the left hand flip-flop,
the serial output (SO) which is taken from the output of the right hand flip-flop and the
sequencing clock signal (Clk).
Fig 8.15: 4- bit SISO
This type of Shift Register also acts as a temporary storage device or as a time delay
device for the data, with the amount of time delay being controlled by the number of stages in
the register, 4, 8, 16 etc or by varying the application of the clock pulses. Commonly available
IC's include the 74HC595 8-bit Serial-in/Serial-out Shift Register all with 3-state outputs.
The Parallel-in to Serial-out shift register (fig 8.16) acts in the opposite way to the serial-
in to parallel-out one above. The data is loaded into the register in a parallel format i.e. all the
data bits enter their inputs simultaneously, to the parallel input pins PA to PD of the register. The
data is then read out sequentially in the normal shift-right mode from the register at Q
representing thedata present at PA to PD. This data is outputted one bit at a time on each clock
cycle in a serial format. It is important to note that with this system a clock pulse is not required
to parallel load the register as it is already present, but four clock pulses are required to unload
the data.
As this type of shift register converts parallel data, such as an 8-bit data word into serial format,
it can be used to multiplex many different input lines into a single serial DATA stream which
can be sent directly to a computer or transmitted over a communications line. Commonly
available IC's include the 74HC166 8-bit Parallel-in/Serial-out Shift Registers.
The final mode of operation is the Parallel-in to Parallel-out Shift Register (fig 8.17).
This type of register also acts as a temporary storage device or as a time delay device similar to
the SISO configuration above. The data is presented in a parallel format to the parallel input pins
PA to PD and then transferred together directly to their respective output pins Q A to QA by the
same clock pulse. Then one clock pulse loads and unloads the register.
The PIPO shift register is the simplest of the four configurations as it has only three
connections, the parallel input (PI) which determines what enters the flip-flop, the parallel output
(PO) and the sequencing clock signal (Clk).
Similar to the Serial-in to Serial-out shift register, this type of register also acts as a
temporary storage device or as a time delay device, with the amount of time delay being varied
by the frequency of the clock pulses. Also, in this type of register there are no interconnections
between the individual flip-flops since no serial shifting of the data is required.
Today, high speed bi-directional "universal" type Shift Registers such as the TTL
74LS194, 74LS195 or the CMOS 4035 are available as a 4-bit multi-function devices that can be
used in either serial-to-serial, left shifting, right shifting, serial-to-parallel, parallel-to-serial, and
as a parallel-to-parallel multifunction data register, hence the name "Universal". These devices
can perform any combination of parallel and serial input to output operations but require
additional inputs to specify desired function and to pre-load and reset the device. The pin
diagram is shown in fig 8.18.
Fig 8.18: 4-bit Universal Shift Register 74LS194
Universal shift registers are very useful digital devices. They can be configured to respond to
operations that require some form of temporary memory, delay information such as the SISO or
PIPO configuration modes or transfer data from one point to another in either a serial or parallel
format. Universal shift registers are frequently used in arithmetic operations to shift data to the
left or right for multiplication or division.
A simple Shift Register can be made using only D-type flip-Flops, one flip-Flop for each
data bit.
The output from each flip-Flop is connected to the D input of the flip-flop at its right.
Shift registers hold the data in their memory which is moved or "shifted" to their required
positions on each clock pulse.
Each clock pulse shifts the contents of the register one bit position to either the left or the
right.
The data bits can be loaded one bit at a time in a series input (SI) configuration or be
loaded simultaneously in a parallel configuration (PI).
Data may be removed from the register one bit at a time for a series output (SO) or
removed all at the same time from a parallel output (PO).
One application of shift registers is converting between serial and parallel data.
Shift registers are identified as SIPO, SISO, PISO, PIPO, and universal shift registers.
The primary use of shift registers is temporary storage of data and bit manipulations. Some of the
common applications are
i. Delay Line
A SISO register may be used to introduce time delay ∆t in digital signals given by
1
∆t = N ×
fc
Where N is the number of stages and fc is the clock frequency. Thus, an input pulse train appears
at the output delayed by ∆t. The amount of delay can be controlled by clock frequency or the
number of FLIP-FLOPS in the shift register.
Data in the serial form can be converted into parallel form by using a SIPO shift register.
Data in the parallel form can be converted into serial form by using a PISO shift register
The synchronous 4-bitRing Counterin the above fig 8.19 is preset so that exactly one data
bit in the register is set to logic "1" with all the other bits reset to "0". To achieve this, a
"CLEAR" signal is firstly applied to all the flip-flops together in order to "RESET" their outputs
to a logic"0" level and then a "PRESET" pulse is applied to the input of the first flip-flop (FFA)
before theclock pulses are applied. This then places a single logic "1" value into
the circuit of the ring counter . On each successive clock pulse, the counter circulates the same
data bit between the four flip-flops over and over again around the "ring" every fourth clock
cycle. But in order to cycle the data correctly around the counter we must first "load" the counter
with a suitable data pattern as all logic "0"'s or all logic "1"'s outputted at each clock cycle would
make the ring counter invalid.
This type of data movement is called "rotation", and like the previous shift register, the effect of
the movement of the data bit from left to right through a ring counter can be presented
graphically as follows along with its timing diagram shown in fig 8.20(a & b):
Since the ring counter example shown above has four distinct states, it is also known as a
"modulo-4" or "mod-4" counter with each flip-flop output having a frequency value equal to
one-fourth or a quarter (1/4) that of the main clock frequency.
The "MODULO" or "MODULUS" of a counter is the number of states the counter counts
or sequences through before repeating itself and a ring counter can be made to output any
modulo number. A "mod-n" ring counter will require "n" number of flip-flops connected
together to circulate a single data bit providing "n" different output states. For example, a mod-8
ring counter requires eight flip-flops and a mod-16 ring counter would require sixteen flip-flops.
However, as in our example above, only four of the possible sixteen states are used, making ring
counters very inefficient in terms of their output state usage.
v. Johnson Ring Counter
The Johnson Ring Counter or "Twisted Ring Counters", is another shift register with
feedback exactly the same as the standard Ring Counter above, except that this time the inverted
output Q of the last flip-flop is now connected back to the input D of the first flip-flop as shown
below in fig 8.21. The main advantage of this type of ring counter is that it only needs half the
number of flip-flops compared to the standard ring counter then its modulo number is halved. So
a "n-stage" Johnson counter will circulate a single data bit giving sequence of 2n different states
and can therefore be considered as a "mod-2n counter".
This inversion of Q before it is fed back to input D causes the counter to "count" in a
different way. Instead of counting through a fixed set of patterns like the normal ring counter
such as for a 4-bit counter, "0001"(1), "0010"(2), "0100"(4), "1000"(8) and repeat, the Johnson
counter counts up and then down as the initial logic "1" passes through it to the right replacing
the preceding logic "0". A 4-bit Johnson ring counter passes blocks of four logic"0" and then
four logic "1" thereby producing an 8-bit pattern. As the inverted output Q is connected to the
input D this 8-bit pattern continually repeats. For example, "1000", "1100", "1110", "1111",
"0111", "0011", "0001", "0000" and this is demonstrated in the following table 8.4 below.
As well as counting or rotating data around a continuous loop, ring counters can also be used to
detect or recognize various patterns or number values within a set of data. By connecting simple
logic gates such as the AND or the OR gates to the outputs of the flip-flops the circuit can be
made to detect a set number or value. Standard 2, 3 or 4-stage Johnson ring counters can also be
used to divide the frequency of the clock signal by varying their feedback connections and
divide-by-3 or divide-by-5 outputs are also available.
A 3-stage Johnson Ring Counter can also be used as a 3-phase, 120 degree phase shift
square wave generator by connecting to the data outputs at A, B and NOT-B. The standard 5-
stage Johnson counter such as the commonly available CD4017 is generally used as a
synchronous decade counter/divider circuit. The smaller 2-stage circuit is also called a
"Quadrature" (sine/cosine) Oscillator/Generator and is used to produce four individual outputs
that are each "phase shifted" by 90 degrees with respect to each other, and this is shown below in
fig 8.22.
As the four outputs, A to D are phase shifted by 90 degrees with regards to each other, they can
be used with additional circuitry, to drive a 2-phase full-step stepper motor for position control or
the ability to rotate a motor to a particular location as shown in fig 8.23.
The speed of rotation of the Stepper Motor will depend mainly upon the clock frequency
and additional circuitry would be require to drive the "power" requirements of the motor. As this
section is only intended to give the reader a basic understanding of Johnson Ring Counters and
its applications, other good websites explain in more detail the types and drive requirements of
stepper motors.
Johnson Ring Counters are available in standard TTL or CMOS IC form, such as the
CD4017 5-Stage, decade Johnson ring counter with 10 active HIGH decoded outputs or the
CD4022 4-stage, divide-by-8 Johnson counter with 8 active HIGH decoded outputs.
RIPPLE OR ASYNCHRONOUS COUNTER
A circuit used for counting the pulses s known as a counter. In previous section 5.7 two
types of counters have been discussed. The number of states in an N stage ring counter is N,
where as it is 2N in the case of moebius counter. These counters are referred to as modulo (or
divided by N ) and modulo 2N counters respectively, where modulo indicates the number of
states in the counters. When the pulses to be counted are applied to a counter, it goes from state
to state and the output of the flip-flops in the counter is decoded to read the count. The circuit
comes back to its starting state after counting the N pulses in the case of modulo N counter.
The ring counter and the twisted ring counter do not make efficient use of flip-flops. A
flip-flop has two states. Therefore a group of N flip-flops will have two 2N states. This means it
is possible to make a modulo 2N counter using N flip-flops. Basically there are two types of such
counters:
In asynchronous counter, all the flip-flops are not clocked simultaneously, whereas in
synchronous counter all the flip-flops are clocked simultaneously.
The available asynchronous ICs are given in the following table 8.5:
IC No. Description
7490, 74290 BCD counter
7492 Divide by 12 counter
7493, 74293 4-bit binary counter
74176, 74196 Presettable BCD counter
74177, 74197 Presettable 4-bit binary counter
74390 Dual decade counter
74393 Dual 4 bit binary counter
74490 Dual BCD counter
Table 8.5
The 7490 is a simple counter (fig 8.24), i.e. it can count from 0 to 9 cyclically in its
natural mode. It counts the input pulses and the output is received as a 4-bit binary number
through pins QA, QB, QC and QD. The binary output is reset to 0000 at every tenth pulse and
count starts from 0 again. A pulse is also generated (probably at pin 9) as it resets its output to
0000. The chip can count up to other maximum numbers and return to zero by changing the
modes of 7490. Thesemodes are set by changing the connection of reset pins R1 - R4.
For example, if either R1& R2 are high or R3& R4 are ground, then it will reset QA, QB, QC and
QD to 0. If resets R3& R4 are high, then the count on QA, QB, QC and QD goes to 1001.
The other high counts can be generated by connecting two or more 7490 ICs. For
example, if two 7490 are connected in a manner that input of one becomes the output of other,
the second IC will receive a pulse on every tenth count and will reset at every hundredth count.
Thus this system can count from 0 to 99 and give corresponding BCD outputs.
By connecting QA with input1, 7490 can be used for BCD counting whereas by
connecting QD with input2, it can be used for bi-quinary counting. Bi-quinary is a system for
storing decimal digits in a four-bit binary number. The bi-quinary code was used in the abacus.
The functional table is shown in fig 8.25.
SYNCHRONOUS COUNTER
In synchronous counter the clock input is connected to all of the flip-flops so that they are
clocked simultaneously.
IC No. Description
74160 Decade UP counter
74161 4 bit binary UP counter
74162 Decade UP counter
74163 4 bit binary UP counter
74168, 74192 Decade UP/DOWN counter
74169, 74191, 74193 4 bit binary UP/DOWN counter
74100 Decade UP/DOWN counter
The 74161 IC package contains a single 4 bit synchronous counter circuit with a
usercontrollable CLR function (pin 1). Unlike the 74163, the clear is asynchronous, or in other
words, it takes place immediately, regardless of the status of the clock input. Multiple units can
be cascaded to form larger registering synchronous counters.
The pin diagram and internal structure is shown in fig 8.26. This counter IC can be preloaded to
start at any value (decimal 0-15, binary 0000-1111). Once load sequence is complete, clock
impulses received on the CLK pin will perform a counting operation and will be represented on
QA, QB, QC, and QD.
Applications include, digital counters, frequency counters, digital clocks, program counters,
memory addressors, and others where high performance, glitch-free, counting is required.