Electronics Lab 2019
Electronics Lab 2019
Electronics Lab 2019
Aim:
Design and verify the operation of op – amp as an Voltage follower, Adder, Subtractor
and Averager.
Apparatus:
Procedure:
3. Appropriate input voltage is applied to the inverting input terminal of the Op-Amp.
𝑽𝒊𝒏 = 𝑽𝒐𝒖𝒕
The circuit consists of an op-amp and a wire connecting the output voltage to the input
i.e. the output voltage is equal to the input voltage, both in magnitude and phase.V0 = Vi
Since the output voltage of the circuit follows the input voltage, the circuit is called
voltage follower. It offers very high input impedance of the order of MD and very low output
impedance.
Therefore, this circuit draws negligible current from the source. Thus, the voltage
follower can be used as a buffer between a high impedance source and a low impedance load for
impedance matching applications.
Calculation:
2. Adder (summer):
If R1 = R2 = Rf then,
𝐑𝐟
𝐕𝟎 = − (𝐕 + 𝐕𝟐 )
𝐑𝟏 𝟏
2. Adder (summer):
This is one of the liner applications of the Op-Amp. A circuit whose output is the sum of
several input signals is called a summer.
Now, with the right-hand sides of the three averaging resistors connected to the virtual
ground is now held at 0 volts by the op-amp’s negative feedback, whereas before it was free to
float to the average value of V1, V2, and V3.
However, with all resistor values equal to each other, the currents through each of the
three resistors will be proportional to their respective input voltages.
Since those three currents will add at the virtual ground node, the algebraic sum of those
currents through the feedback resistor will produce a voltage at Vout equal to V1 + V2 + V3,
except with reversed polarity.
V0 = - (V1+V2+V3)
Calculation:
3. Subtractor:
If R1 = R2 = Rf ≠R3 then,
𝑹𝟑
𝑽𝟎 = − (𝑽𝟐 − 𝑽𝟏 )
𝑹𝟏
Thus, the circuit amplifier the difference of two input signals.
3. Subtractor:
A basic differential amplifier can be used as a subtractor as shown in the figure. If all
resistors are equal in value, then the output voltage can be derived by using superposition
principle.
Then the circuit of figure as shown in the above becomes a non-inverting amplifier
having input voltage V1 and V2 at the non-inverting input terminal and the output becomes;
Thus the output voltage Vo due to both the inputs can be written as
Vo=V2 - V1
Calculation:
4. Averager:
If R1 ≠ R2 ≠ Rf then
𝑽𝟏 + 𝑽𝟐
𝑽𝟎 = or
𝟐
4. Averager:
If we take three equal resistors and connect one end of each to a common point, then apply
three input voltages (one to each of the resistors’ free ends), the voltage seen at the common
point will be the mathematical average of the three.
This circuit is really nothing more than a practical application of Millman’s Theorem.
The large equation to the right of the averager circuit comes from Millman’s Theorem, which
describes the voltage produced by multiple voltage sources connected together through
individual resistances.
Since the three resistors in the averager circuit are equal to each other, we can simplify
Millman’s formula by writing R1, R2, and R3.
𝑉1 + 𝑉2 + 𝑉3
𝑉0 =
3
If R1 = R2 = Rf then,
Calculation:
Result:
Using Op-amp IC 741, Voltage follower, Adder (Summer), Difference ( Subtractor), and
Average circuits are constructed and their performances have been studied.
Aim:
Design and verify the operation of op – amp as an integrator and differentiator.
Apparatus:
Op-amp kit, IC 741, Resistance (1KΩ, 10KΩ, 100KΩ), Capacitor (0.01µF), Function
generator, CRO, Connecting wire.
PROCEDURE:
Circuit Diagram:
a) Integrator
Waveforms:
OP-Amp Integrator
1. Define integrator.
An integrator is a circuit that performs integration of the input signal. The most important
application of an integrator is to produce a ramp output voltage.
Shows the circuit of an OP-Amp integrator. When a signal is applied to the input of this circuit,
the output-signal waveform will be the integration of input-signal waveform. It consists of an
OP-Amp, input resistor R and feedback capacitor C.
Circuit Analysis
Since point A in fig. is at virtual ground, the virtual ground equivalent circuit of operational
integrator will be as shown in fig.
Because of virtual ground and infinite impedance of the OP-Amp, all of the input current flows
through the capacitor i.e.
To find out the output voltage, we integrate both sides of the above equation to get,
This equation shows that the output is the integral of the input with an inversion and scale
multiplier of 1/RC.
Output Voltage
If a fixed voltage is applied to the input of an integrator, the output voltage grows over a period
of time, providing a ramp voltage.
The output ramp voltage is opposite in polarity to the input voltage and is multiplied by a factor
1//RC.
Circuit Diagram:
a) Differentiator:
Waveforms:
OP-Amp Differentiator :
2. Define differentiator.
Ans: A Differentiator is a circuit that is designed such that the output of the circuit is
proportional to the time derivative of the input.
A differentiator is a circuit that performs differentiation of the input signal. That means, a
differentiator produces an output voltage that is proportional to the rate of change of the input
voltage. Its important application is to produce a rectangular output from a ramp input.
Circuit Analysis
Since point A in fig.5 (i) is at virtual ground, the virtual-ground equivalent circuit of the
operational differentiator will be as shown in fig.
Because of virtual ground and infinite impedance of OP-Amp, all the input current ic flows
through the feedback resistor R. i.e.
The above equation shows that output is the differentiation of the input with an inversion and
scale multiplier of RC.
If the input voltage is constant, dvi/dt is zero and the output voltage is zero.
The faster the input voltage changes, the larger the magnitude of the output voltage.
Integrators have use as low pass filter in audio applications; differentiators are used as
high pass filters. To separate vertical sync signal from analog TV signal integrators are used,
differentiators are used to recover horizontal sync signal
Result:
Differentiator and integrator circuits are constructed and their wave forms have been
studied using Op-Amp 741.
ADDERS
Aim:
To realize half/full adder using NAND gate IC 7400.
Components Required:
Digital logic kit and IC 7400
Theory:
Half-Adder:
Half Adder is a combinational logic circuit which is designed by connecting one EX-OR
gate and one AND gate. It adds two one-bit numbers and generates the sum as the output. It
consists of two input terminals and two output terminals, one is SUM, and the other is CARRY.
S =A B
C=A.B
Full-Adder: Full Adder is the circuit which consists of the circuit which consists of two
EX-OR gates, two AND gates and one OR gate. It adds three binary digits, among which two are
the inputs, and one is the carry obtained from previous addition. A combinational logic circuit
that adds two data bits, A and B, and a carry-in bit, Cin , is called a full-adder. The Boolean
functions describing the full-adder are:
S = A B Cin
C = A . B+ A . C
a) Half-Adder
Table
A B SUM CARRY
0 0 0 0
0 1 1 0
1 0 1 0
1 1 1 1
2. Full Adder
Table
A B C SUM CARRY
0 0 0 0 0
0 0 1 1 0
0 1 0 1 0
0 1 1 0 1
1 0 0 1 0
1 0 1 0 1
1 1 0 0 1
1 1 1 1 1
Similarities
1. Half Adder and Full Adder, both are the combinational digital circuit. This means both
the circuit does not have any memory element like sequential circuits.
2. The above two combinational circuits are crucial for arithmetic operation. Both the
combinational circuits provide the addition of binary numbers.
RESULT:
The Half and Full adder circuit was constructed and their truth tables
are verified using IC 7400.
SUBTRACTOR
Aim:
To realize half and full Subtractor using NAND gate IC 7400.
Apparatus:
Half Subtractor:
Subtracting a single-bit binary value B from another A (i.e. A -B) produces a difference
bit D and a borrow out bit Br. This operation is called half subtraction and the circuit to realize it
is called a half subtractor.
Half subtractor is the most essential combinational logic circuit which is used in digital
electronics. Basically, this is an electronic device or in other terms, we can say it as a logic
circuit.
Half subtractor is used to perform two binary digits subtraction. In the previous article,
we have already discussed the concepts of half adder and a full adder circuit which uses the
binary numbers for the calculation.
Similarly, the subtractor circuit uses binary numbers (0, 1) for the subtraction. The circuit
of the half subtractor can be built with two logic gates namely NAND and EX-OR gates. This
circuit gives two elements such as the difference as well as the borrow.
D =AB
Br = 𝑨 . 𝑩
A) Half Subtractor:
Table:
A B DIFF BRO
0 0 0 0
0 1 1 1
1 0 1 0
1 1 0 0
B) Full Subtractor:
Full subtractor is an electronic device or logic circuit which performs subtraction of two
binary digits. It is a combinational logic circuit used in digital electronics. Many combinational
circuits are available in integrated circuit technology namely adders, encoders, decoders and
multiplexers.
Subtracting two single-bit binary values, B, Cin from a single-bit value A produces a
difference bit D and a borrow out Br bit. This is called full subtraction.
The full subtractor is one of the most used and essential combinational logic circuits. It is
a basic electronic device, used to perform subtraction of two binary numbers. In the earlier
article, already we have given the basic theory of half adder & a full adder which uses the binary
digits for the computation.
The full-subtractor uses binary digits like 0,1 for the subtraction. The circuit of full
subtractor can be built with logic gates such as OR, Ex-OR, NAND gate. The inputs of this
subtractor are A, B, Bin and outputs are D, Bout.
D=ABC
Br = 𝑨 . B + 𝑨 . C + B . C
These are generally employed for ALU (Arithmetic logic unit) in computers to subtract
as CPU & GPU for the applications of graphics to decrease the circuit difficulty.
Subtractors are mostly used for performing arithmetical functions like subtraction, in
electronic calculators as well as digital devices.
These are also applicable for different microcontrollers for arithmetic subtraction, timers,
and program counter (PC)
Subtractors are used in processors to compute tables, address, etc.
It is also useful for DSP and networking based systems.
B) Full Subtractor:
Table
A B C DIFF BOR
0 0 0 0 0
0 0 1 1 1
0 1 0 1 1
0 1 1 0 1
1 0 0 1 0
1 0 1 0 0
1 1 0 0 0
1 1 1 1 1
RESULT:
The Half and Full adder circuit was constructed and their truth tables are
verified using IC 7400.
Components required: IC 7404, 7432, 7408, Digital IC Trainer Kit, Patch cards
Theory:-
De-Morgan’s Theorem is mainly used to solve the various Boolean algebra expressions.
The De-Morgan’s theorem defines the uniformity between the gate with same inverted input and
output. It is used for implementing the basic gate operation likes NAND gate and NOR gate. The
De-Morgan’s theorem mostly used in digital programming and for making digital circuit
diagram. There are two De-Morgan’s Theorems. They are described below in detail.
Theorem 1: The compliment of the product of two variables is equal to the sum of the
compliment of each variable. Thus according to De-Morgan’s laws or De-Morgan's theorem if A
and B are the two variables or Boolean numbers. Then accordingly,
𝑨. 𝑩 = 𝑨 + 𝑩
Theorem 2:
The compliment of the sum of two variables is equal to the product of the compliment of each
variable. Thus according to De Morgan’s theorem if A and B are the two variables then,
𝑨+𝑩=𝑨.𝑩
De-Morgan's laws can also be implemented in Boolean algebra in the following steps:-
Procedure:
1. Realize the De-Morgan’s theorem using logic gates.
2. Connect VCC and ground as shown in the pin diagram.
3. Make connections as per the logic gate diagram.
4. Apply the different combinations of input according to the truth tables.
Verify that the results are correct.
Theorem 1:
Truth table:
A B 𝑨. 𝑩 𝑨+𝑩
0 0 1 1
0 1 1 1
1 0 1 1
1 1 0 0
Theorem 2:
Truth table:
A B 𝑨+𝑩 𝑨.𝑩
0 0 1 1
0 1 0 0
1 0 0 0
1 1 0 0
Result:
De-Morgan’s circuits (theorem) were constructed and verify their truth tables.
Aim:
To write an Assembly Language Program to find the square root of a
number using 8085
Apparatus:
8085 kit
1. Start.
2. Load into register pair HL from memory address 9000H.
3. Initialize accumulator A with 00.
4. Move contents of memory M into register C.
5. Add the contents of memory M with the contents of accumulator A and store the result in
accumulator A.
6. Decrement the register C by 1.
7. If no zero is present, go to step 5 else go to step 8.
8. Store the contents of accumulator into memory location 9100H.
9. Terminate the program.
1. Load the HL pair with the address of the number whose square root is to be found.
2. Copy the number to accumulator.
3. Initialize E with 0.
4. Subtract content of E from accumulator.
5. Increment register E by 2.
6. Increment content C register by 1.
7. Compare accumulator content with 0.
8. If accumulator content is not zero then go to step 4 else go to step 9.
9. Store the square root in to the memory.
10. Terminate the program.
Result:
The assembly language program square and square root of 8 bit numbers was executed
successfully by using 8085 micro processing kit.
AIM:
To write an assembly language program for sum of N-elements of 8-bit using 8085
Apparatus:
8085 kit
Algorithm:
Step 1: Start the microprocessor
Step 2: Load the number of values in series in accumulator and move it to register C and load
the starting address of array
Step 3: Initialize the value of A as ‘00’
Step 4: Move the value of ‘A’ to ‘B’ register
Step 5: Add the content of accumulator with the data pointed by ‘HL’ pair
Step 6: If there exists a carry, increment ‘B’ by 1, if not continue
Step 7: Increment the pointer to next data
Step 8: Decrement the value of ‘C’ by 1, which is used as counter
Step 9: If ‘C’ is equal to zero, go to step 10 if not go to step 5.
Step 10: Store the value of ‘A’ to memory, it shows the result
Step 11: Move the content of B to A
Step 12: Store the value of A to memory
Step 13: Stop the program.
8400 8401 8402 8403 8404 8405 8406 8407 8408 8409 840A 840B 8601 8600
05 4C 1D 04 5F 0F 00 DB
07 7F 2B 1D 09 5B 2C 5D 01 B4
08 25 3E 5F 2A 1E 3F 20 15 01 7E
09 5C 30 12 1C 2A 5B 50 15 3D 01 E1
0A 15 6E 4C 09 83 5F 32 14 1D 3A 02 57
0B 20 14 0F 8C 2D 3B 18 06 29 5B 6C 02 45
Result: The assembly language program for sum of N-Elements was executed successfully using
VI-SEM- Electronics Lab
Page 29
Department of Physics VI-SEM- Electronics Lab
AIM:
To write an assembly language program for BCD to binary, Binary to BCD of 8-bit
using 8085
BCD 8200( I/P) Binary 8300 (O/P) BCD 8200( I/P) Binary 8300 (O/P)
22 16
40 28
15 0F
54 36
75 4B
92 5C
0B 0B
FF A5
0C 0D
Result:
Thus the BCD to Binary, Binary to BCD conversion was executed successfully using
microprocessor 8085 kit.
a) ADDITION
ALGORITHM:
Step 1: Start.
Step 2: Clear C register for carry
Step 3: Load the first data from memory to accumulator and move it to B register.
Step 4: Load the second data from memory to accumulator.
Step 5: Add the content of B register to the accumulator.
Step 6: Check for carry. If carry = 1, go to step 7 else if carry =0, go to step 8.
Step 7: Increment the C register.
Step 8: Store the sum in memory
Step 9: Move the carry to accumulator and store in memory
Step 10: End Program
b) SUBTRACTION:
ALGORITHM:
Step 1: Start.
Step 2: Clear C register to account for sign of the result.
Step 3: Load the subtrahend (the data to be subtracted) from memory to accumulator and move it
to B register.
Step 4: Load the minuend from memory to accumulator.
Step 5: Subtract the content of B register from the content of the accumulator.
Step 6: Check for carry. If carry = 1, go to step 7 else if carry =0, go to step 8.
Step 7: Increment the C register. Complement the accumulator and add 01H.
Step 8: Store the difference in memory.
Step 9: Move the content of C register (sign bit) to accumulator and store in memory.
Step 10: End program
RESULT:
An assembly language program to perform the addition and subtraction two eight bit
numbers using 8085 kit is written and executed.
Aim: Realization of logic functions with the help of universal gates-NAND Gate
Apparatus:
logic trainer kit, NAND gates (IC 7400), wires.
Theory:
NAND gate is actually a combination of two logic gates: AND gate followed by NOT
gate. So its output is complement of the output of an AND gate.
This gate can have minimum two inputs, output is always one. By using only NAND
gates, we can realize all logic functions: AND, OR, NOT, X-OR, X-NOR, NOR. So this gate is
also called universal gate.
A NOT produces complement of the input. It can have only one input, tie the inputs of a
NAND gate together. Now it will work as a NOT gate. Its output is
Y=𝑨
A NAND produces complement of AND gate. So, if the output of a NAND gate is
inverted, overall output will be that of an AND gate.
Y=A.B
Y=A+B
A NOT produces complement of the input. It can have only one input, tie the inputs of a
NOR gate together. Now it will work as a NOT gate. Its output is
Y=𝑨
A NOR produces complement of OR gate. So, if the output of a NOR gate is inverted,
overall output will be that of an OR gate.
Y = (A+B)
Y=A+B
A Y=𝑨
A B Y=A.B
A B Y=A+B
A B Y=A+B
A B Y=A.B
Result:
The Universal logic gates were constructed and verify their truth tables.