Dec Unit 1 Notes
Dec Unit 1 Notes
21CMRE42 - UNIT 1
Where,
VOUT is the voltage at the output terminal of the op-amp.
AOL is the open-loop gain for the given op-amp and is constant (ideally).
For the IC 741 AOL is 2 x 105.
V1 is the voltage at the non-inverting terminal.
V2 is the voltage at the inverting terminal.
(V1 – V2) is the differential input voltage.
The output will be non-zero if and only if the differential input voltage is non-zero
(V1 and V2 are not equal), and will be zero if both V1 and V2 are equal.
If we apply small differential input voltage, the operational amplifier amplifies it to a
considerable value but this significant value at the output cannot go beyond the supply
voltage of the op-amp.
Where
VOUT is the voltage at the output terminal of the op-amp.
ACL is the closed loop gain.
The feedback circuit connected to the op-amp determines the closed loop gain ACL.
VD = (V1 – V2) is the differential input voltage.
The feedback is positive if the feedback path feeds the signal from the output terminal
back to the non-inverting (+) terminal. Positive feedback is used in oscillators. The feedback is
negative if the feedback path feeds the part of the signal from the output terminal back to the
inverting (-) terminal. We use negative feedback to the op-amps used as amplifiers.
The input impedance is set through input resistance Ri which is 4kΩ. So Zin=4kΩ.
Vout=Vin Av
Av = −Rf/Ri
Av=−20k/4k
Av=−5
Vout=100mV * (−5)
Vout = −500mV
2). An inverting amplifier including a gain = 8 & 10 k Ω of an input impedance. The input
impedance (Zi) tells us what ‘Ri’ must be?
Zin = Ri
Ri=10k
So Rf =?
We know that, Av =−Rf/Ri
Rf = 10 (−8)
Rf= 80k
3). For the following inverting amplifier circuit, please calculate the closed-loop gain.
Non-Inverting Op-Amp :
In this circuit configuration, the output voltage signal is given to the inverting terminal
(-) of the operational amplifier like feedback through a resistor where another resistor is given
to the ground. Here, a voltage divider with two types of resistors will provide a small fraction
of the output toward the inverting pin of the operational amplifier circuit.
Advantages
• The voltage gain is changeable.
• The voltage gain is positive.
• Better matching of impedance can be obtained with the non-inverting amplifiers.
• The impedance value of i/p is high as compared to the inverting amplifier.
Disadvantages
• As compared to inverting op-amps, non-inverting op-amps don’t provide more stability
to the system.
• The number of stages is used depending on the necessity of attaining the required gain.
• Based on the particular amplifier, the input & the output resistance will be changed.
• The amplifying circuit has no virtual ground, so it has a large common-mode voltage,
and the anti-interference ability is relatively poor. So that the op-amp requires a higher
common-mode rejection ratio, and another disadvantage is that the amplification factor
can only be greater than one.
Solution:
The values are Vin = 2V, R1 = 6 Ohms, Fr = 10 Ohms, RL = 3K Ohms.
1). The flow of current I1 = Vin/R1
= 2/6 = 0.33 mA
2). Non-inverting op-amp gain can be calculated as
Gain = 1 + (Rf/R1)
= 1+ (10/6) = 2.66
3). The o/p voltage (VO) = ACL * VIN = 2.66 * 2V = 5.32V
VO = 5.32V
4). The flow of current supply throughout the load resistor,
IL = VO / RL = 5.32/3 = 1.773 mA
5). The o/p current can be calculated by applying KCL (Kirchhoff’s Current Law) to the
above circuit then,
IO = I1 + IL
IO = 0.33mA + 1.773 mA
IO = 1.28 mA = 2.103
2). In the non-inverting amplifier, if the values of R1 = 50 kilo ohms, R2 = 1000 kilo ohms &
Vin = 2v, then calculate the gain and output voltage.
As its name implies, the Op-amp Integrator is an operational amplifier circuit that
performs the mathematical operation of Integration, that is we can cause the output to respond
to changes in the input voltage over time as the op-amp integrator produces an output voltage
which is proportional to the integral of the input voltage.
When a step voltage, Vin is firstly applied to the input of an integrating amplifier, the
uncharged capacitor C has very little resistance and acts a bit like a short circuit allowing
maximum current to flow via the input resistor, Rin as potential difference exists between the
two plates.
No current flows into the amplifiers input and point X is a virtual earth resulting in zero
output. As the impedance of the capacitor at this point is very low, the gain ratio of XC/RIN is
also very small giving an overall voltage gain of less than one, ( voltage follower circuit ).
As the feedback capacitor, C begins to charge up due to the influence of the input
voltage, its impedance Xc slowly increase in proportion to its rate of charge. The capacitor
charges up at a rate determined by the RC time constant, ( τ ) of the series RC network.
Negative feedback forces the op-amp to produce an output voltage that maintains a virtual
earth at the op-amp’s inverting input.
Since the capacitor is connected between the op-amp’s inverting input (which is at
virtual ground potential) and the op-amp’s output (which is now negative), the potential
voltage, Vc developed across the capacitor slowly increases causing the charging current to
decrease as the impedance of the capacitor increases. This results in the ratio
of Xc/Rin increasing producing a linearly increasing ramp output voltage that continues to
increase until the capacitor is fully charged.
At this point the capacitor acts as an open circuit, blocking any more flow of DC current.
The ratio of feedback capacitor to input resistor ( XC/RIN ) is now infinite resulting in infinite
gain. The result of this high gain (similar to the op-amps open-loop gain), is that the output of
the amplifier goes into saturation as shown below. (Saturation occurs when the output voltage
of the amplifier swings heavily to one voltage supply rail or the other with little or no control
in between).
The rate at which the output voltage increases (the rate of change) is determined by the value
of the resistor and the capacitor, “RC time constant“.
If the capacitor is charging and discharging, the rate of charge of voltage across the capacitor
is given as:
But dQ/dt is electric current and since the node voltage of the integrating op-amp at its
inverting input terminal is zero, X = 0, the input current I(in) flowing through the input
resistor, Rin is given as:
Assuming that the input impedance of the op-amp is infinite (ideal op-amp), no current flows
into the op-amp terminal. Therefore, the nodal equation at the inverting input terminal is
given as:
From which we derive an ideal voltage output for the Op-amp Integrator as:
Where: ω = 2πƒ and the output voltage Vout is a constant 1/RC times the integral of the input
voltage VIN with respect to time.
Thus the circuit has the transfer function of an inverting integrator with the gain
constant of -1/RC. The minus sign ( – ) indicates a 180o phase shift because the input signal is
connected directly to the inverting input terminal of the operational amplifier.
The input signal to the differentiator is applied to the capacitor. The capacitor blocks
any DC content so there is no current flow to the amplifier summing point, X resulting in zero
output voltage. The capacitor only allows AC type input voltage changes to pass through and
whose frequency is dependent on the rate of change of the input signal.
At low frequencies the reactance of the capacitor is “High” resulting in a low gain
( Rƒ/Xc ) and low output voltage from the op-amp. At higher frequencies the reactance of the
capacitor is much lower resulting in a higher gain and higher output voltage from the
differentiator amplifier.
The charge on the capacitor equals Capacitance times Voltage across the capacitor
from which we have an ideal voltage output for the op-amp differentiator is given as:
Therefore, the output voltage Vout is a constant –Rƒ*C times the derivative of the input
voltage Vin with respect to time. The minus sign (–) indicates a 180o phase shift because the
input signal is connected to the inverting input terminal of the operational amplifier.
S R Qn Qn+1
0 0 0 0 No Change / Hold
0 0 1 1 No Change / Hold
0 1 0 0 Reset
0 1 1 0 Reset
1 0 0 1 Set
1 0 1 1 Set
1 1 0 X Forbidden
1 1 1 X Forbidden
JK flip – flop
A JK flip – flop is the modification of SR flip – flop with no illegal state. In this the J
input is similar to the SET input of SR flip – flop and the K input is similar to the RESET input
of SR flip – flop. The symbol of JK flip – flop is shown below.
Truth Table
Operation
• Case 1 : When both the inputs J and K are LOW, then Q returns its previous state value i.e.
it holds the previous data.
When we apply a clock pulse to the J K flip flop and the J input is low then irrespective of
the other NAND gates, the NAND gate-1 output becomes HIGH. In the same manner, if
the K input is low then output of NAND gate-2 is also HIGH. So thus the output remains
in the same state i.e. no change in the state of flip flop.
• Case 2 : When J is LOW and K is HIGH, then flip flop will be in Reset state i.e. Q = 0, Q’
= 1.
When we apply a clock pulse to the J K flip flop and the inputs are J is low and K is high
the output of the NAND gate connected to J input becomes 1. Then Q becomes 0. This will
reset the flip flop again to its previous state. So the Flip flop will be in RESET state.
• Case 3 : When J is HIGH and K is LOW, then flip – flop will be in Set state i.e. Q = 1, Q’
=0
• When we apply a clock pulse to the J K flip flop and the inputs are J is high and K is low
the output of the NAND gate connected to K input becomes 1. Then Q’ becomes 0. This
will set the flip flop with the high clock input. So the Flip flop will be in SET state.
• Case 4 : When both the inputs J and K are HIGH, then flip – flop is in Toggle state. This
means that the output will complement of the previous state.
Limitations
• Complexity
• Power consumption
• Propagation delay
• Limited scalability
D Flip flops
D Flip flops or data flip flops or delay flip flops can be designed using SR flip flops by
connecting a not gate in between S and R inputs and tying them together. D flip flops can be
used in place of SR flip flops where you need only SET and RESET state.
D Flip-Flop Circuit
D Flip-Flop Working:
• Case 1: D = 0
Gate 1 = 1, Gate 2 = 0, Gate 4 / Q(n+1)’ = 1, Gate 3 / Q(n+1) = 0
• Case 2: D = 1
Gate 1 = 0, Gate 2 = 1, Gate 3 / Q(n+1) = 1, Gate 4 / Q(n+1)’ = 0
– 0 0 RESET
– 1 1 SET
Advantages
• Single input:
• No feedback loop:
• No invalid states:
• Reduced power consumption:
• Bi-stable operation
Limitations
• No feedback
• No toggling
• Propagation delay
• Limited scalability
Applications
• Shift registers
• State machines
• Counters
• Data storage
T flip flop
T flip flop is similar to JK flip flop. Just tie both J and K inputs together to get a T Flip
flop. Just like the D flip flop, it has only one external input along with a clock.
T Flip-Flop Working
Case 1: T=0
Gate1 = 0, Gate2 = 0, Gate3/Q(n+1) = Q, Gate4/Q(n+1)’ = Q’
Gate3 = (0+Q’)’ = (Q’)’ = Q
Gate4 = (0+Q)’ = (Q)’ = Q’
Case 2: T=1
Gate1 = Q, Gate2 = Q’, Gate4/Q(n+1)’ = 0, Gate3/Q(n+1) = Q’
Gate4 = (Q’+Q)’ = 1’ = 0
Gate3 = (Q+0)’ = Q’
Advantages
• Single input
• No invalid states
• Reduced power consumption
• Bi-stable operation
• Easy to implement
Limitations
• Inverted output
• Limited functionality
• Glitches
• Propagation delay
Applications
• Frequency division
• Frequency multiplication
• Data storage
Counters
• Asynchronous or ripple counters.
• Synchronous counters.
Logical Diagram
Truth Table
Synchronous counters
If the "clock" pulses are applied to all the flip-flops in a counter simultaneously, then such
a counter is called as synchronous counter.
Logical Diagram
Operation
After 3rd On application of the third falling clock edge, FF-A will toggle
4 negative clock from 0 to 1 but there is no change of state for FF-B.
edge QBQA = 11 after the third clock pulse.
After 4th On application of the next clock pulse, QA will change from 1
5 negative clock to 0 as QB will also change from 1 to 0.
edge QBQA = 00 after the fourth clock pulse.
Shift Register
The binary data in a register can be moved within the register from one flip-flop to
another. The registers that allow such data transfers are called as shift registers. There are four
mode of operations of a shift register.
Block Diagram
Operation
• Before application of clock signal, let Q3 Q2 Q1 Q0 = 0000 and apply LSB bit of the number
to be entered to Din. So Din = D3 = 1. Apply the clock. On the first falling edge of clock, the
FF-3 is set, and stored word in the register is Q3 Q2 Q1 Q0 = 1000.
• Apply the next bit to Din. So Din = 1. As soon as the next negative edge of the clock hits,
FF-2 will set and the stored word change to Q3 Q2 Q1 Q0 = 1100.
• Apply the next bit to be stored i.e. 1 to Din. Apply the clock pulse. As soon as the third
negative clock edge hits, FF-1 will be set and output will be modified to Q3 Q2 Q1 Q0 =
1110.
• Similarly with Din = 1 and with the fourth negative clock edge arriving, the stored word in
the register is Q3 Q2 Q1 Q0 = 1111.
Truth Table
Waveforms
• As soon as the data loading gets completed, all the flip-flops contain their required data,
the outputs are enabled so that all the loaded data is made available over all the output lines
at the same time.
• 4 clock cycles are required to load a four bit word. Hence the speed of operation of SIPO
mode is same as that of SISO mode.
Block Diagram
There are two modes in which this circuit can work namely - shift mode or load mode.
Load mode
When the shift/load bar line is low (0), the AND gate 2, 4 and 6 become active they will
pass B1, B2, B3 bits to the corresponding flip-flops. On the low going edge of clock, the binary
input B0, B1, B2, B3 will get loaded into the corresponding flip-flops. Thus parallel loading
takes place.
Shift mode
When the shift/load bar line is low (1), the AND gate 2, 4 and 6 become inactive. Hence
the parallel loading of the data becomes impossible. But the AND gate 1,3 and 5 become active.
Therefore the shifting of data from left to right bit by bit on application of clock pulses. Thus
the parallel in serial out operation takes place.
Block Diagram
Block Diagram
Multiplexer
A multiplexer is a combinational circuit that has 2n input lines and a single output line.
Simply, the multiplexer is a multi-input and single-output combinational circuit. The binary
information is received from the input lines and directed to the output line. On the basis of the
values of the selection lines, one of these data inputs will be connected to the output.
2×1 Multiplexer:
Truth Table:
4×1 Multiplexer:
In the 4×1 multiplexer, there is a total of four inputs, i.e., A0,
A1, A2, and A3, 2 selection lines, i.e., S0 and S1 and single output,
i.e., Y. On the basis of the combination of inputs that are present at
the selection lines S0 and S1, one of these 4 inputs are connected to
the output. The block diagram and the truth table of the 4×1
multiplexer are given below.
Truth Table:
8 to 1 Multiplexer:
In the 8 to 1 multiplexer, there are total eight inputs, i.e., A0, A1, A2, A3, A4, A5, A6, and
A7, 3 selection lines, i.e., S0, S1and S2 and single output, i.e., Y. On the basis of the combination
of inputs that are present at the selection lines S0, S1, and S2, one of these 8 inputs are connected
to the output. The block diagram and the truth table of the 8×1 multiplexer are given below.
Block Diagram:
Truth Table:
Double Negation
5. X =X
Law
X + Y Z = (X + Y) • (X
8a. X • (Y + Z) = X Y + X Z 8b. Distributive Law
+ Z)
de Morgan's
9a. X • Y = X + Y 9b. X + Y = X • Y
Theorem
X ⊕ Y = (X + Y) • (X +
14a. 14b. X ⊕ Y = X Y + X Y XOR Gate
Y)
X ⊙ Y = (X + Y) • (X •
15a. 15b. X ⊙ Y = X Y + X Y XNOR Gate
Y)
AND X=A•B
X=A+B
OR X=A+B
X=A•B
Part A Questions
S.No Questions
1. What is a Multiplexer?
2. What are the characteristics of Ideal op-amp?
3. What are the applications of op-amp?
4. What is meant by synchronous counter?
5. What is the purpose of shift register?
6. Convert the following (110101)2 into Octal number.
7. What is the purpose of Counter?
8. What is a Zero Drift Amplifier?
9. What is a Voltage Follower?
10. Convert 0100011011002 to Decimal Number
11. Convert (41)8 into binary number.
12. Find two’s complement of 10101010
13. Find two’s complement of 01010101
For the following inverting amplifier circuit, calculate the output voltage.
14.