You are on page 1of 48

ANALOG AND DIGITAL CIRCUITS

EXPERIMENT NO. 1
Name: Roll No. Sign of Instructor: Batch: Date performed:

INVERTING AND NON-INVERTING AMPLIFIER


Aim: 1. To verify voltage gain and phase relationship. 2. To observe condition for virtual short concept to be true. Theory Inverting Amplifier The inverting amplifier is an amplifier that inverts the input signal. If the input signal is positive voltage output will be voltage with negative polarity. Similarly, if we provide the negative input voltage we will get positive output voltage if the input signal is sine wave voltage of 1 KHz, then output will be sine wave with 180 phase shift. The inverting amplifier is useful in analog signal processing and serves as a building block to implement larger circuits. The circuit of an inverting amplifier is shown in figure 1.1 the gain of the circuit can be computed by the formula = (1) Where is the gain of the inverting amplifier and , the feedback and the input resistor respectively.Inthe next section we are going to derive this formula but before that lets understand a powerful concept called virtual short We know that operation amplifier is the differential amplifier with extremely high differential gain .For the ideal opamp, is infinite. For the purpose of analysis, we assume that ideal opampis used to build the inverting amplifier. Due to infinite differential gain, the idea opamp requires zero differential input voltage to produce any finite output. This makes the inverting terminal to go to the same potential as noninverting terminal. These terminals are two different terminals, yet have the same potential. Therefore the inverting and non-inverting terminals are said to have virtually short. This powerful concept that simplifies the analysis of the opamp circuits. There is certain circuit conditions under which the virtual short exists. Practically, virtual short exits if, 1. There is negative feedback used in the circuit. 2. The output of the opamp is not in saturation, (i.e.) 3. The operating frequency is such the open loop gain of the opamp is very high. Using the virtual concept, we can analyze the inverting amplifier .In the circuit shown in figure 1.1, the non-inverting terminal is grounded .Therefore, we can write =0 As there is negative feedback, assuming the not in saturation, we can apply virtual short concept (i.e.), the inverting terminals is at ground potential without being physically grounded, it is referred as Virtual ground.
1| Walchand College of Engineering Sangli

ANALOG AND DIGITAL CIRCUITS

=0 = Since = 0, the voltage across is the same as the input voltage. =

Since the input resistance of an ideal opamp is infinite the current through will be same as .Therefore, = The inverting terminal of the opamp is at the ground potential. Hence the output voltage is same as the voltage across =. =-( =-( The voltage gain of the inverting amplifier = = ) ) is given by, (2)

Thus it is seen that if the virtual short exists, the gain of the amplifier is independent of the components (opamps) and depends only on the passive components (resistors). This feature is extremely important because the active component are sensitive to sensitive to temperature .Thus the circuit gain remains unchanged even if the temperature changes. Non-Inverting Amplifier The Non-inverting amplifier is an amplifier that amplifies the signal without inverting the input signal (i.e.) the phase difference between input and output signal is 0 . If input is positive voltage then output also will be with positive polarity. If the input is sine wave voltage of 1 KHz, then output will be sine wave voltage of same frequency with 0 phase shift. The inverting amplifier suffers a disadvantage that the input resistance is low and is decided by resistor . In the non-inverting amplifier, you will find that the input resistance is very height this because, the input is directly connected to non-inverting terminal of the opamp. The input resistance of the opamp being very high, the overall resistance of the circuit is also very high .The actual value of the input resistance is decided by input resistance of opamp used. For LM741, the input resistance is 1M. The non-inverting amplifier is useful in processing analogue signal from the sensor which has high output impedance. It is usually used as front and of the signal conditioning in circuits in instrumentation system .The circuit is shown in figure. The gain of the circuit is given by formula = Where is gain of the non-inverting amplifier and respectively. Applying virtual short concept .we can write, are the feedback resistors

2|

Walchand College of Engineering Sangli

ANALOG AND DIGITAL CIRCUITS

= Since ,the voltage across is same as the input voltage. = = Since the input resistance of the ideal opamp is infinite, the current through will be same as that through . = The inverting terminal of is at potential . Hence the output voltage is the sum of the voltage across and voltage at inverting terminal = + = +( ( =( Thus voltage gain of a non- inverting amplifier = =( Apparatus: The required apparatus is as follows: 1. 2. 3. 4. 5. 6. 7. 8. 9. Signal Generator (0-1 MHz) Dual power supply Variable DC Power supply (0-30V, 100mA) Dual trace oscilloscope (20 MHz) with probes Digital Multimeter with probes Experimental Chassis or Bread board Connecting wires (Single stand as well as multi stand) Two resistors (1K,10K or values near these) Operational Amplifier IC :LM741 ) ) ) is given by )

Procedure: 1. Connections are given as per the circuit diagram. 2. + Vcc and - Vcc supply is given to the power supply terminal of the Op-Amp IC. 3. By adjusting the amplitude and frequency knobs of the function generator, appropriate input voltage is applied to the inverting input terminal of the OpAmp. 4. The output voltage is obtained in the CRO and the input and output voltage waveforms are plotted in a graph sheet.

3|

Walchand College of Engineering Sangli

ANALOG AND DIGITAL CIRCUITS

Observations: Inverting Amplifier R1 = %error= Sr.No 1 2 3 4 5 6 7 8 9 10 Vin Vinv Rf= Gain= %error

Calculations: Inverting Amplifier

4|

Walchand College of Engineering Sangli

ANALOG AND DIGITAL CIRCUITS

Observations: Noninverting Amplifier R1 = Rf=

%error= Sr.No 1 2 3 4 5 6 7 8 9 10 Vin Vinv

Gain= %error

Readings forNon- inverting amplifier


5| Walchand College of Engineering Sangli

ANALOG AND DIGITAL CIRCUITS

Calculations: Noninverting Amplifier

Conclusion:

6|

Walchand College of Engineering Sangli

ANALOG AND DIGITAL CIRCUITS

EXPERIMENT NO. 2
Name: Roll No. Sign of Instructor: Batch: Date performed:

INVERTING ADDER
Aim: 1. To verify voltage gain relation with DC input 2. To observe performance for AC input Theory: Inverting Adder The inverting adder is a circuit that adds more than one signal and inverts the sum. For example, with reference to figure 1, if input , and , then the output voltage is the algebraic sum of all the input voltages in inverted form. The value of the output voltage is given by (1+2+2.5) V = -5.5 V. In general, when we apply Dc input

Similarly, if we provide ac voltage waveforms at the input terminals, then the output waveform will be inverted sum all the input waveforms.

Referring to the figure 1, the non-inverting terminal of the opamp is grounded. Due to virtual short, the inverting terminal is also at the same potential. Hence, the currents through Are given by, ; ; All these currents get summed up and pass through of ideal opamp is zero. Hence the current through . This is because; the input current is given by,

The output voltage is the same as the voltage developed across

. Hence

7|

Walchand College of Engineering Sangli

ANALOG AND DIGITAL CIRCUITS

Hence In general, for n inputs, when Then

if

Thus the circuit works as adder circuit. Because of the minus sign appearing in the expression of , it is referred as Inverting Adder. This circuit is quite useful in adding multiple ac/dc electrical signals. Inverting Summing Amplifier If

Then the circuit is known as Inverting Summing Amplifier. The Inverting adder is a special case of inverting summing amplifier where A=1. Inverting Averager If

Then output voltage is given by,

Hence, the circuit is known as Inverting Averager. The circuit output is inverted instantaneous average of all input signals. Inverting Scaler If

Then output voltage is given by,

Where are the scaling factors for the respective inputs. Since the inputs are scaled by different scaling factors, the circuit is known as Inverting Scaler. Apparatus The required apparatus is as follows: 1. Signal Generator (0-1 MHz)
8| Walchand College of Engineering Sangli

ANALOG AND DIGITAL CIRCUITS

2. 3. 4. 5. 6. 7. 8. 9.

Dual Power Supply 12V, 200mA Variable Power Supply (0-30,100mA- three) Dual trace Oscilloscope (20 MHz) with probes Digital Multimeter Experimental Chassis or Bread- board Connecting wires Resistors Operational Amplifier LM741

Circuit Diagram

Procedure 1. Set the opamp power supply to 15 V 2. Assemble the circuit in breadboard. Connect the power supply and all three DC inputs. 3. Note down the output voltage. 4. Vary al the inputs and again note down the output voltage 5. Also check for the AC inputs and observe the output on CRO Observations

Sr. no

(Observed)

(Calculated)

Calculations:
9| Walchand College of Engineering Sangli

ANALOG AND DIGITAL CIRCUITS

Conclusion:

10 |

Walchand College of Engineering Sangli

ANALOG AND DIGITAL CIRCUITS

SUBTRACTOR
Aim: 1. To verify voltage gain relation with DC input 2. To find CMRR of Subtractor Theory: The subtractor is a circuit that allows subtracting one electrical signal from the other. Fig. shows the circuit of a subtractor. If the two inputs are connected with input voltages Vin1 and Vin2, the output of the subtractor is given by the formula-

Since the output voltage is equal to the difference between two input voltages, it is also known as a difference amplifier. This type of circuit is widely used in control systems where it is required to find the difference between the process variable and the set-point. This difference is the error signal which is then used to control the process variable. Lets now derive the formula for the output voltage. We apply superposition theorem to find the output voltage Vo. We assume that the only one input signal is present at a time and find the output voltages. Then we add the results under the different conditions to get the effective output voltage. Case 1: Assuming only Vin2 is present and Vin1 is grounded, we get out voltage Vo1. Thus we have, ( )

11 |

Walchand College of Engineering Sangli

ANALOG AND DIGITAL CIRCUITS

( Case 2:

)(

Assuming only Vin1 is present and Vin2 is grounded, we get the output voltage Vo2. Here, the circuit becomes an inverting amplifier with input Vin1. Thus we have,

Therefore, the effective output voltage Vo when both inputs are simultaneously present is equal to Vo1 + Vo2, and is given by ( If R3 =R1 and R4 = R2, We get, ( )( ) )( )

If R1=R2=R3=R4, i.e. all resistors are equal, we get

Thus, the circuit works as subtractor. Theoretically, if the same voltage (Common mode voltage) is applied as Vin2 and Vin1, then the output voltage should be zero. However, practically the output will not be zero,
12 | Walchand College of Engineering Sangli

ANALOG AND DIGITAL CIRCUITS

due to mismatch between the resistors and imperfections in the practical opamp. This is expressed in terms of Common Mode Rejection Ratio (CMRR). It is defined as,

Where, ACM is the common mode gain and ADM is the differential mode gain. Ideally, CMRR is . Circuit Diagram:

Fig: OPAMP as a Subtractor (Difference Amplifier) Apparatus: Dual power supply, two variable power supplies, Digital Multimeter, Breadboard, Connecting wires, Matched resistors, OPAMP IC LM 741.

Procedure: 1. Measure the printed values of given resistors. 2. Check all the table equipment for proper functioning.

13 |

Walchand College of Engineering Sangli

ANALOG AND DIGITAL CIRCUITS

3. Set the opamp power supply voltage to

12V or

15V. Set the variable power

supply voltages to +1V DC. Switch off the supplies. 4. Set the multimeter on correct range (typically 20V range). 5. Assemble the circuit on the breadboard. Use R1 = R3 = 2.2 K and R2 =R4 = 10K. Connect the dual power supply to opamp. Verify the connections. Show the connections to the instructor. 6. Short both the inputs and apply same voltage (common mode voltage) to both the inputs. Observe the output voltage. The output voltage should be very close to zero. If not, check the circuit for proper connections again and consult the instructor. Take four readings of output voltage for various common mode input voltages. Write the readings in a table. 7. Connect separate variable power supplies to the two inputs. Adjust the input voltages such that the input is not saturated. Set different values for the two inputs and measure voltage at all points in the circuit. Check if the virtual short is present. Repeat this step to take four readings. Write the readings in the table. For each reading, calculate the expected output voltage. Compare it with the observed one. 8. Then apply inputs such that the output goes in saturation. Verify that, virtual short doesnt exist. Take two readings. 9. From readings 1-4, find the common mode gain (ACM). From readings 5-8 find differential mode gain (ADM). Then find the CMRR using the formula. Observation: Sr. No Vin1 Vin2 Vnon-inv Vinv Vo-measured Vo-calculated

14 |

Walchand College of Engineering Sangli

ANALOG AND DIGITAL CIRCUITS

Conclusion:

15 |

Walchand College of Engineering Sangli

ANALOG AND DIGITAL CIRCUITS

EXPERIMENT NO. 3
Name: Roll No. Sign of Instructor: Batch: Date performed:

WEIN BRIDGE OSCILLATOR


Aim: To construct a wein bridge oscillator Apparatus Required: OP-AMP IC-741, Resistors, Capacitors, CRO. Theory:wein bridge oscillator is an audio frequency sine wave oscillator of high stability and simplicity. An oscillator is acircuit that produces periodic electric signals such as sine wave or squarethe application of oscillator includes sine wave generator, local oscillator for synchronous receiver etc.Wein bridge oscillator using IC 741 is a low frequency oscillator. The Op-amp used in this circuit is non-inverting amplifier mode. Here feedback network need not provide any phase shift .The circuit can be viewed as wein bridge with series RC network in one arm and parallel RC in the adjoining arm.Resistors R1 and Rf are connected in the remaining two arms. In wein bridge oscillator, wein bridge circuit is connected between the

amplifierinput terminals and output terminals. The bridge has a series RC network in one arm andparallel network in the adjoining arm. In the remaining 2 arms of the bridge resistorsR1and Rf are connected. To maintain oscillations total phase shift around the circuitmust be zero and loop gain unity. First condition occurs only when the bridge is balanced. Assuming that the resistors and capacitors are equal in value, the

resonantfrequency ofbalanced bridge is given byFo = 0.159 / RC

Design:At the frequency the gain required for sustained oscillations is given by 1+Rf /R1 = 3 or Rf = 2R1Fo = 0.65/RC and Rf = 2R1

16 |

Walchand College of Engineering Sangli

ANALOG AND DIGITAL CIRCUITS

Circuit Diagram:

Calculation:Theoretical: F = 1/ (2*3.14*R*C) Practical: F = 1/T

17 |

Walchand College of Engineering Sangli

ANALOG AND DIGITAL CIRCUITS

Procedure: Connections are made as per the diagram. R,C, R1, Rf are calculated for the givenvalue ofFo using the design. Output waveform is traced in the CRO Conclusion:

18 |

Walchand College of Engineering Sangli

ANALOG AND DIGITAL CIRCUITS

EXPERIMENT NO. 4
Name: Roll No. Sign of Instructor: Batch: Date performed:

SQUARE WAVE GENERATOR USING IC 741


Aim: study of square wave generator using IC 741 Apparatus: IC 741, Resistor, Capacitor, Dual Power Supply, CRO Theory: The non-sinusoidal waveform generators are also called relaxation oscillators. The op-amp relaxation oscillator shown in figure is a square wave generator. In general, square waves are relatively easy to produce. Like the UJT relaxation oscillator, the circuits frequency of oscillation is dependent on the charge and discharge of a capacitor C through feedback resistor R. The heart of the oscillator is an inverting op-amp comparator. The comparator uses positive feedback that increases the gain of the amplifier. In a comparator circuit these offer two advantages. First, the high gain causes the op-amps output to switch very quickly from one state to another and vice-versa. Second, the use of positive feedback gives the circuit hysteresis. Let V0=Vsat, Capacitor C charges to + Vsat, as Vc> Vsat, then V0 becomes Vsat,& capacitor now starts discharging from+ Vsat to - Vsat .When V=Vsat then this process is repeated. The frequency, f = 1/T, of the square-wave is independent of output voltage Vout. This circuit is also known as free-running or Astablemultivibrator because it has two quasi-stable states. The output remains in one state for time T1 and then makes an abrupt transition to the second state and remains in that state for time T2. The cycle repeats itself after time T = (T1 + T2) where T is the time period of the square-wave.

19 |

Walchand College of Engineering Sangli

ANALOG AND DIGITAL CIRCUITS

Circuit Diagram:

Observations: Observed frequency:

Calculated frequency:

20 |

Walchand College of Engineering Sangli

ANALOG AND DIGITAL CIRCUITS

Conclusion:

21 |

Walchand College of Engineering Sangli

ANALOG AND DIGITAL CIRCUITS

EXPERIMENT NO. 5
Name: Roll No. Sign of Instructor: Batch: Date performed:

TRIANGULAR WAVE GENERATOR USING IC 741


Aim: study of Triangular wave generator using IC 741 Apparatus: IC 741, Resistor,Capacitor,CRO Theory: A triangular wave generator can be formed by simply connecting an integrator to the square wave generator. This circuit requires a dual op-amp two capacitors and at least five resistors. The frequencies of square wave and triangular wave are the same. For fixed R1,R2and C values, the frequency of square wave as well as triangular wave depends on the resistor R. As R increased or decreased, the frequency of triangular wave will decrease or increase, respectively. Although the amplitude of the square wave is constant, the amplitude of the triangular wave decreases with an increase in its frequency, and vice versa. The input of integrator A2 is a square wave, while its output is a triangular wave .However for the output of A2 to be a triangular wave requires that 5R3C2>T/2,Where T is the period of the square wave input. As a general rule, R3C2 should be equal to T. To a stable triangular wave ,it may also be necessary to shunt the capacitor C 2 with the resistance R4=10R3 and connect an offset voltage compensating network at the noninverting terminal of A2 .As with any other oscillator, The frequency of the triangular wave generator is limited by the slew-rate of op-amp. Therefore, a high-slew-rate op-amp such as LM 301 is used for the generation of relatively higher frequencies.

22 |

Walchand College of Engineering Sangli

ANALOG AND DIGITAL CIRCUITS

Circuit diagram

Observations: Observed frequency:

Calculated frequency

Conclusion:

23 |

Walchand College of Engineering Sangli

ANALOG AND DIGITAL CIRCUITS

EXPERIMENT NO. 6
Name: Roll No. Sign of Instructor: Batch: Date performed:

ASTABLE MULLTIVIBRATOR USING IC 555


Aim: Study of IC555 Objectives: After performing this experiment, you will be able to, Understand operation of IC555 as Astable Multivibrator. Introduction: The 555 timer IC is an integrated circuit (chip) used in a variety of timer, pulse generation, and oscillator applications. The 555 can be used to provide time delays, as an oscillator, and as a flip-flop element. An astable multivibrator, often called a free-running multivibrator, is a rectangular-wave generating circuit. Unlike the monostable multivibrator, this circuit does not require any external trigger to change the state of the output, hence the name free-running. Pin 1 is grounded; pins 4 and 8 are shorted and then tied to supply +Vcc, output (VOUT is taken form pin 3; pin 2 and 6 are shorted and the connected to ground through capacitor C, pin 7 is connected to supply + VCC through a resistor RA; and between pin 6 and 7 a resistor RB is connected. At pin 5 either a bypass capacitor of 0.01 F is connected or modulation input is applied. The circuit diagram for the astable multivibrator using IC 555 is shown here. The astable multivibrator generates a square wave, the period of which is determined by the circuit external to IC 555. The astable multivibrator does not require any external trigger to change the state of the output. Hence the name free running oscillator. The time during which the output is either high or low is determined by the two resistors and a capacitor which are externally connected to the 555 timer.

24 |

Walchand College of Engineering Sangli

ANALOG AND DIGITAL CIRCUITS

Circuit Diagram:

The above figure shows the 555 timer connected as an astable multivibrator. Initially when the output is high capacitor C starts charging towards Vcc through RA and RB. The capacitor is periodically charged and discharged between 2/3 Vcc and 1/3 Vcc respectively. The time during which the capacitor charges from 1/3 Vcc to 2/3 Vcc is equal to the time the output remains high and is given by

where RA and RB are in ohms and C is in Farads. Similarly the time during which the capacitor discharges from 2/3 Vcc to 1/3 Vccis equal to the time the output is low and is given by

Thus the total time period of the output waveform is

Therefore the frequency of oscillation

The output frequency, f is independent of the supply voltage Vcc.

25 |

Walchand College of Engineering Sangli

ANALOG AND DIGITAL CIRCUITS

Specifications of Equipments: 1. Dual power supply ( ) 2. CRO ( Dual Trace) 3. Experimental Chassis / Breadboard and components, Wires. Procedure: 1. Make connections of power supply and CRO to Experimental Chassis. 2. Observe the waveforms output (at pin-3) and capacitor (at pin-2) on CRO with and without diode connection across RB. Observations: With Diode TON =

TOFF =

TTOTAL =

Without Diode TON = Calculations:

TOFF =

TTOTAL =

Conclusion:

26 |

Walchand College of Engineering Sangli

ANALOG AND DIGITAL CIRCUITS

EXPERIMENT NO. 7
Name: Roll No. Sign of Instructor: Batch: Date performed:

HALF ADDER AND FULL ADDER


Aim: To design and verify the truth table of the Half Adder & Full Adder circuits. Apparatus required: Sr.No 1. 2. 3. 4. 5. Name of the Apparatus AND gate OR gate NOT gate EX-OR gate Connecting wires Range IC 7408 IC 7432 IC 7404 IC 7486 As required

Theory: The most basic arithmetic operation is the addition of two binary digits. There are four possible elementary operations, namely, 0+0=0 0+1=1 1+0=1 1 + 1 = 102 The first three operations produce a sum of whose length is one digit, but when the last operation is performed the sum is two digits. The higher significant bit of this result is called a carry and lower significant bit is called the sum. Half adder: The half adder is a dual input, dual output logic circuit that adds two binary bits and gives the sum of these bits and a carry.

27 |

Walchand College of Engineering Sangli

ANALOG AND DIGITAL CIRCUITS

Full adder: A combinational circuit which performs the arithmetic sum of three input bits is called full adder. The three input bits include two significant bits and a previous carry bit. A full adder circuit can be implemented with two half adders and one OR gate.

In the above example the least significant bits of the two binary numbers are added. In this case, "1+1 = 0" with carry. A zero comes out to the adder as the least significant bit of the sum and the "1" carry-out produced by this addition is stored. When the next addition is performed, the carry-out resulting from the first addition is fed into the adder along with two (0) bits. The addition of these two bits and the carry-in (carryout from the first addition) is interpreted as "0+0+1 = 1". This equals (1) with no-carry. Therefore, the second addition produces a sum bit of (1) and no carry-out for the next addition. The third addition, in this case "1+1+0 = 0", equals (0) with carry. The carry is again stored, becoming a carry-in for the final addition. When the final addition is performed, then, "0+0+1 = 1" produced (1) with no carry.

HALF ADDER Truth table: INPUT A 0 0 1 1 B 0 1 0 1 S 0 1 1 0 OUTPUT C 0 0 0 1

Sr.No 1. 2. 3. 4.

28 |

Walchand College of Engineering Sangli

ANALOG AND DIGITAL CIRCUITS

Design: From the truth table the expression for sum and carry bits of the output can be obtained as, Sum, S = A XOR B Carry, C = A AND B

Circuit diagram:

Observation Table

Sr.No 1. 2. 3. 4.

INPUT A 0 0 1 1 B 0 1 0 1

Theoretical OUTPUT S C 0 0 1 0 1 0 0 1

Practical Output LED 1 LED2

Result:

Conclusion:

29 |

Walchand College of Engineering Sangli

ANALOG AND DIGITAL CIRCUITS

FULL ADDER Truth table: INPUT B 0 0 1 1 0 0 1 1 OUTPUT SUM CARRY 0 0 1 0 1 0 0 1 1 0 0 1 0 1 1 1

Sr.No 1. 2. 3. 4. 5. 6. 7. 8. Design:

A 0 0 0 0 1 1 1 1

C 0 1 0 1 0 1 0 1

From the truth table the expression for sum and carry bits of the output can be obtained as, SUM = A +A C+ABC+AB CARRY = ABC + BC +A C+AB Using Karnaugh maps the reduced expression for the output bits can be obtained as

SUM

SUM = A

+A

C+ABC+AB

=A

30 |

Walchand College of Engineering Sangli

ANALOG AND DIGITAL CIRCUITS

CARRY

CARRY =ABC + BC +A C+AB = AB + AC + BC

Circuit diagram:

Fig. Full Adder using Half Adder

Fig.Circuit Diagram Observation Table


31 | Walchand College of Engineering Sangli

ANALOG AND DIGITAL CIRCUITS

Sr.No 1. 2. 3. 4. 5. 6. 7. 8. A 0 0 0 0 1 1 1 1

INPUT B 0 0 1 1 0 0 1 1 C 0 1 0 1 0 1 0 1

Theoretical OUTPUT SUM 0 1 1 0 1 0 0 1 CARRY 0 0 0 1 0 1 1 1

Practical Output LED1 LED 2

Procedure:

1. Connections are given as per the circuit diagrams. 2. For all the ICs 7th pin is grounded and 14th pin is given +5 V supply. 3. Apply the inputs and verify the truth table for the half adder and full adder circuits.

RESULT:

Conclusion:

32 |

Walchand College of Engineering Sangli

ANALOG AND DIGITAL CIRCUITS

EXPERIMENT NO. 8
Name: Roll No. Sign of Instructor: Batch: Date performed:

Mux and Demux


Theory: Study of Multiplexer using IC & 74151 Multiplexer is logic circuit with many input & single output. Multiplexer accepts many inputs & gives only one output depending upon the status of control or select lines. Types of multiplexer are 2:1, 4:1, 8:1 and 16:1... Proposition:The commonly used multiplexer ICs are 74150, 74151A, 74152, 74153, 74157. 74150 74151A 74152 74153 74157 (16:1 Mux) (8:1 Mux) (8:1 Mux) (Dual 4:1 Mux) (Quad 2:1 Mux) Block Diagram:-

33 |

Walchand College of Engineering Sangli

ANALOG AND DIGITAL CIRCUITS

Pin out Diagram of IC 74151:-

Circuit Diagram:VCC = +5V I0 I1 I2 I3 I4 I5 I6 I7


43 21 15 14 13 12 16

74151A
5

R=330

7 8 9 10 11

G (Strobe)

S2S1S0

Observation table:Input Select Input S1 Output S0 Y

Strobe G

S2

34 |

Walchand College of Engineering Sangli

ANALOG AND DIGITAL CIRCUITS

Result:

Conclusion:

35 |

Walchand College of Engineering Sangli

ANALOG AND DIGITAL CIRCUITS

3:8 DEMULTIPLEXER USING IC 74138 Objective the main objective of this experiment is to study of working principle of 3:8 Demultiplexers. APP Trainer kit. Theory -Demultiplexer as the name indicates, it has only one data input D with 8 outputs, namely Y0, Y1Y7. It has four data selector inputs namely A, B and C at which the control bits are applied. The data bits are transmitted to the data bit Y0, Y1Y7 of the output line. Which particular output line will be chosen will depend on the value of A, B and C the control input. Consider the case when CBA= 000. Now the upper AND gate is enabled while all other AND gates are disabled. Hence, it is another case CBA=001, we find that Y1 is activated because seconds AND gate enabled. This is possible only when G2, G3 pins are low and G1 pin is high. The multiplexer is disabled when above condition fulfill otherwise all outputs are high and not dependent on input condition. Procedure 1. 2. 3. 4. 5. Give supply 5V to pin 16 and ground to pin 8. Connect LED and the input as well as to the output. Make the enable pins high/low as per the requirement. Make the input high/low. Observe the output.

Diagram-

36 |

Walchand College of Engineering Sangli

ANALOG AND DIGITAL CIRCUITS

Logic diagram-

Truth table-

Inputs
Enable G1 G2 Select C B A

Outputs
Y0 Y1 Y2 Y3 Y4 Y5 Y6 Y7

Conclusion:

37 |

Walchand College of Engineering Sangli

ANALOG AND DIGITAL CIRCUITS

EXPERIMENT NO. 9
Name: Roll No. Sign of Instructor: Batch: Date performed:

STUDY OF FLIP FLOP


Aim:To study SR, D, and JKFlip flop Concepts: Truth table, symbol NAND & NOR gate. Combinational circuit, sequential, memory, multivibrator, latch. A flip-flop is also called a bistable mulivibrator which gives two stable states. Flip-flop is sequential circuit whose output depends on present state of input as well as on the previous history of inputs.

Preposition:Broadly FF are classified as FF

SR

JK

M/S JK

Layout. Equipments: BreadBoard, connecting wires, power supply, LEDs, IC 7400

38 |

Walchand College of Engineering Sangli

ANALOG AND DIGITAL CIRCUITS

SR-FF (using NOR gates) Case I- S=0, R=0, since 0 at the input of NOR gate has no effect on its output, theflipflop remains in present state i.e. Q remains unchanged. Thefore Q=last value (no change). Case II-S=1, R=0, this output of NOR B is low & output of NOR Ais high. Therefore 1 at S input sets the flip flop Therefore Q=1. Case III- S=0, R=1, this forces NOR A output to low &NOR B output to high, Therefore Q=0 CaseIV-S=1, R=1, it is forbidden condition, because for this condition Q= =0.This Violates the basic definition at the flip flop.

Figure (A): RS flip flop using NOR gate SR-FF (using NAND gates) Case I- S=0, R=0, since 0 at the input both the NAND gates give output Q= =1 Therefore this is forbidden condition. Case II-S=1, R=0, this forces output of NAND B to 1, input of NAND A to 1, Therefore Q=0 & =1 Case III- S=0, R=1 this gives NAND An output as 1& input B is 1, Therefore Q=1 & =0 Case IV-S=1, R=1, since 1at the input of NAND gate has no effects on its output, the FF
39 | Walchand College of Engineering Sangli

ANALOG AND DIGITAL CIRCUITS

Remains in its present state. Therefore Q equals the last value (no change).

Figure (B): RS flip flop using NAND gate

Observation table

For Figure (A) INPUT S 0 0 1 1 R 0 1 0 1 OUTPUT (Theoretical) Q Last value 1 0 0 1 Forbidden OUTPUT (Practical) LED1(Q)

LED2( )

40 |

Walchand College of Engineering Sangli

ANALOG AND DIGITAL CIRCUITS

For Figure (B)

INPUT

OUTPUT (Theoretical)

OUTPUT (Practical) LED1(Q) LED2( )

0 0 1 1

0 1 0 1 0 1

Forbidden 1 0 Last value

Result:

Conclusion:

41 |

Walchand College of Engineering Sangli

ANALOG AND DIGITAL CIRCUITS

D Flip-Flop

Observation table D 0 1 Clock 1 1 Q

Result:

Conclusion:

42 |

Walchand College of Engineering Sangli

ANALOG AND DIGITAL CIRCUITS

JK Flip-Flop

Case-I When both J and K are 0, the clock pulse has no effect on the output and the output of flip-flop is same as its previous value. Case-II J=0, K=1 When J=0 and K=1 the flip-flop reset at positive going edge of clock pulse. Case-III J=1, K=0 When J=1 and K=0 theflip-flop set at positive going edge of clock pulse. Case-IV J=K=1 When J=K=1, the flip-flop toggles, i.e. goes to the opposite state at the positivegoing edgeof the clock pulse. In this mode, the flip-flop toggles or changes state for each occurrence of the positive going edge of the clock pulse.

43 |

Walchand College of Engineering Sangli

ANALOG AND DIGITAL CIRCUITS

Observations: CLK J 1 1 1 1
Result:

INPUT K 0 1 0 1

OUTPUT (Theoretical) Q Last Value 0 1 1 0 Toggle

OUTPUT (Practical) LED1(Q) LED2( )

0 0 1 1

Conclusion:

44 |

Walchand College of Engineering Sangli

ANALOG AND DIGITAL CIRCUITS

EXPERIMENT NO. 10
Name: Roll No. Sign of Instructor: Batch: Date performed:

STUDY OF UP-DOWN COUNTER


Aim:To Study Of Up-Down Counter Apparatus: IC 74LS193,LED,Connecting wires, Bread board. Theory: The 74LS192 and 74LS193 are Asynchronously Presettable Decade and 4-Bit Binary Synchronous UP/DOWN (Reversible) Counters. The operating modes of the 74LS192 decade counter and the 74LS193 binary counter are identical, with the only difference being the count sequences as noted in the State Diagrams. Each circuit contains four master/slave flip-flops, with internal gating and steering logic to provide master reset, individual preset, count up and count down operations. Each flip-flop contains JK feedback from slave to master such that a LOW-toHIGH transition on its T input causes the slave, and thus the Q output to change state. Synchronous switching, as opposed to ripple counting, is achieved by driving the steering gates of all stages from a common Count Up line and a common Count Down line, thereby causing all state changes to be initiated simultaneously. A LOW-to-HIGH transition on the Count Up input will advance the count by one; a similar transition on the Count Down input will decrease the count by one. While counting with one clock input, the other should be held HIGH. Otherwise, the circuit will either count by twos or not at all, depending on the state of the first flip-flop ,which cannot toggle as long as either Clock input is LOW. The Terminal Count Up and Terminal Count Down outputs are normally HIGH. When a circuit has reached the maximum count state (9 for the LS192, 15 for the LS193),the next HIGH-to-LOW transition of the Count Up Clock will cause to go LOW. will stay LOW until CPU goes HIGH again, thus effectively repeating the Count Up Clock, but delayed by two gate delays. Similarly, the output will go LOW when the circuit is in the zero state and the Count Down Clock goes LOW. Since the TC outputs repeat the clock waveforms, they can be used as the clock input signals to the next higher order circuit in a multistage counter.
45 | Walchand College of Engineering Sangli

ANALOG AND DIGITAL CIRCUITS

Each circuit has an asynchronous parallel load capability permitting the counter to be preset. When the Parallel Load and the Master Reset (MR) inputs are LOW, information present on the Parallel Data inputs (P0, P3) is loaded into the counter and appears on the outputs regardless of the conditions of the clock inputs. A HIGH signal on the Master Reset input will disable the preset gates, override both Clock inputs, and latch each Q output in the LOW state. If one of the Clock inputs is LOW during and after a reset or load operation, the next LOW-to-HIGH transition of that Clock will be interpreted as a legitimate signal and will be counted. Pin Diagram

Pin Names CPU CPD MR Pn Qn : : : : : : : : Count Up Clock Pulse Input Count Down Clock Pulse Input Asynchronous Master Reset (Clear) Input Asynchronous Parallel Load (Active LOW) Input Parallel Data Inputs Flip-Flop Outputs (Note b) Terminal Count Down (Borrow) Output (Note b) Terminal Count Up (Carry) Output (Note b)

46 |

Walchand College of Engineering Sangli

ANALOG AND DIGITAL CIRCUITS

NOTES: a. 1 TTL Unit Load (U.L.) = 40 A HIGH/1.6 mA LOW. b. The Output LOW drive factor is 2.5 U.L. for Military (54) and 5 U.L. for Commercial (74) b. Temperature Ranges. MODE SELECT TABLE MR H L L L L PL X L H H H CPU X X H H H CPD X X H MODE Reset (Asyn.) Preset (Asyn.) No Change Count Up Count Down

L = H= X= =

LOW Voltage Level HIGH Voltage Level Dont Care LOW-to-HIGH Clock Transition

Observation Table
1. Up Counter CPU CPD Q0 Q1 Q2 Q3

47 |

Walchand College of Engineering Sangli

ANALOG AND DIGITAL CIRCUITS

2. Down Counter INPUT CPU CPD Q0 OUTPUT Q1 Q2

Q3

Conclusion:

48 |

Walchand College of Engineering Sangli

You might also like