Department of Information Science and Engineering Analog and Digital Electronics Lab Subject Code: 17Csl37 Lab Manual
Department of Information Science and Engineering Analog and Digital Electronics Lab Subject Code: 17Csl37 Lab Manual
Department of Information Science and Engineering Analog and Digital Electronics Lab Subject Code: 17Csl37 Lab Manual
LAB MANUAL
FACULTY: MRS.DEEPTI C
Course objectives:
This laboratory course enable students to get practical experience in design,
assembly and evaluation/testing of
· Analog components and circuits including Operational Amplifier, Timer, etc.
· Combinational logic circuits.
· Flip - Flops and their operations
· Counters and registers using flip-flops.
· Synchronous and Asynchronous sequential circuits.
· A/D and D/A converters
2
Department of ISE PESIT-BSC
Analog and Digital Electronics Laboratory 17CSL37
Laboratory Experiments:
1. a) Design and construct a Schmitt trigger using Op-Amp for given UTP and LTP values
and demonstrate its working.
b) Design and implement a Schmitt trigger using Op-Amp using a simulation package for
two sets of UTP and LTP values and demonstrate its working.
2. a) Design and construct a rectangular waveform generator (Op-Amp relaxation
oscillator) for given frequency and demonstrate its working.
b) Design and implement a rectangular waveform generator (Op-Amp relaxation
oscillator) using a simulation package and demonstrate the change in frequency when
all resistor values are doubled.
3. Design and implement an Astable multivibrator circuit using 555 timer for a given
frequency and duty cycle.
NOTE: hardware and software results need to be compared
4. Design and implement Half adder, Full Adder, Half Subtractor, Full Subtractor using
basic gates.
5. a) Given a 4-variable logic expression, simplify it using Entered Variable Map and
realize the simplified logic expression using 8:1 multiplexer IC.
b) Design and develop the Verilog /VHDL code for an 8:1 multiplexer. Simulate and
verify its working.
6. a) Design and implement code converter I)Binary to Gray (II) Gray to Binary Code using
basic gates.
7. Design and verify the Truth Table of 3-bit Parity Generator and 4-bit Parity
Checker using basic Logic Gates with an even parity bit.
8. a) Realize a J-K Master / Slave Flip-Flop using NAND gates and verify its truth
table.
b) Design and develop the Verilog / VHDL code for D Flip-Flop with positive-edge
triggering. Simulate and verify it’s working.
9. a) Design and implement a mod-n (n<8) synchronous up counter using J-K Flip-
Flop ICs and demonstrate its working.
b) Design and develop the Verilog / VHDL code for mod-8 up counter. Simulate and
verify its working.
3
Department of ISE PESIT-BSC
Analog and Digital Electronics Laboratory 17CSL37
4
Department of ISE PESIT-BSC
Analog and Digital Electronics Laboratory 17CSL37
ADE LAB
DO’S AND DON’TS
DOs DON’TS
Be regular to the Lab Do not come late to the Lab
Follow proper Dress Code Do not throw connecting wires on the
Floor
Wear your College ID card Do not operate the IC trainer kits without
permission
Avoid unnecessary talking while doing the Avoid loose connection and short circuits
experiment
Take the signature of the lab in charge before Do not interchange the ICs while doing
taking the components the experiment
Handle the trainer kit properly Do not panic if you do not get the output
Keep your work area clean after completing the
experiment.
After completion of the experiment switch off
the power and return the components
Arrange your chairs and tables before leaving
the laboratory.
Lab Teams: Lab teams consisting of three or four students will be formed during the first lab
session. It is expected that all team members will contribute to all the lab work.
Laboratory Preparation: Each student is responsible for maintaining his/her own
Laboratory Observation Notebook. Each student is required to perform pre-lab work and
enter it into his/her observation notebook.
Lab Work: Each lab team must enter the components taken for the experiment into the
checkout register with the lab instructor. Check-out will be used to confirm that the actual lab
work as recorded in the lab notebook has been completed and that the lab station has been
properly cleaned up. The faculty will initial and date all the data acquired during the lab
period. All pages will be signed by the allotted faculty on the same date in the lab itself.
Lab Completion: Each experiment should be completed during the lab period. If a group is
unable to complete the lab work, they may complete it in the Break time, if granted
permission by the instructor. The work must be checked to verify that all laboratory exercises
are complete.
In case a student is ABSENT for a particular lab session, he/she has to compulsorily finish
the experiment before the next lab session and get the observation signed . All lab work
should be completed before the next laboratory period.
5
Department of ISE PESIT-BSC
Analog and Digital Electronics Laboratory 17CSL37
Lab Grading
The faculty will examine your notebooks during lab period and assign a grade based upon the
quality and contents of your work.
There will be eleven lab experiments and a one internal lab test of 80 marks (Reduced to 20).
Each lab experiment is worth up to 20 points. Each lab contains two parts as follows.
1. Observation (10 marks per lab): Each student should read the lab material and
finish the observation before the lab. Observation should be completed before the
beginning of each lab session. Late observations will not be accepted.
2. Lab record (10 marks per lab): Students will write a lab record according to the
format specified and turn it in at the beginning of the next lab session. Late lab reports
will not be accepted.
At the end of the semester all notebooks will be collected for a final grade by the faculty.
Penalty for incomplete work: If any of the 2 parts is missed, a score of zero will be reported
by the faculty for that lab.
10 Marks will be deducted from the record for the particular experiment if the student
is absent for the lab.
10 Marks will be deducted from the observation for the particular experiment if the
student is absent for the tutorial.
6
Department of ISE PESIT-BSC
Analog and Digital Electronics Laboratory 17CSL37
1. Put your name, USN and subject on the outside front cover of the record. Put that
same information on the first page inside.
2. Update Table of Contents every time you start each new experiment or topic
3. Always use black pen and write neatly and clearly
4. Start each new topic (experiment, notes, calculation, etc.) on a right-side (odd
numbered) page
5. Obvious care should be taken to make it readable, even if you have bad handwriting
6. Date to be written every page on the top right side corner
7. On each right side page
Title of experiment
Aim/Objectives
Components Required
Theory
Procedure described clearly in steps
Result
8. On each left side page
Pin diagrams
Circuit diagram
Tables
Graphs
Use labels and captions for figures and tables
9. Do not use jargon. Avoid the use of slang or obscure language.
10. Use the correct (i.e., IEEE standard) abbreviations for all units.
11. Attach printouts and plots of data as needed. Stick printouts(A4 Size)on the right side
of the lab record
12. All pages signed by the allotted faculty before the next lab session
13. Strictly observe the instructions given by the Teacher/ Lab Instructor.
7
Department of ISE PESIT-BSC
Analog and Digital Electronics Laboratory 17CSL37
1. Put your name, USN and subject on the outside front cover of the record. Put that same
information on the first page inside.
2. Start each new topic (experiment, notes, calculation, etc.) on a right-side (odd
numbered) page
3. Obvious care should be taken to make it readable, even if you have bad handwriting
4. Date to be written every page on the top right side corner
5. Observation Notebook Format
Cover: "17CSL37"
“Analog and Digital Electronics Laboratory”
"Observation book",
Your name
Semester
USN, Lab Batch and Group Number
Year
1st page: Table of Contents -- Experiment #, Title, Date
2nd page:
6. Pre-Lab Work for each experiment
On each right side page
Title of experiment, Date
Aim/Objectives
Equipment required
Completed Theoretical Data
Result
7. On each left side page
8. Pin diagrams (Write captions for all figures and tables)
Circuit diagram
Tables
8
Department of ISE PESIT-BSC
Analog and Digital Electronics Laboratory 17CSL37
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
9
Department of ISE PESIT-BSC
Analog and Digital Electronics Laboratory 17CSL37
ELECTRONIC COMPONENTS
1. RESISTORS
A resistor is a component of an electrical circuit that resists the flow of electrical current. A
resistor has two terminals across which electricity must pass, and is designed to drop the
voltage of the current as it flows from one terminal to the next. A resistor is primarily used to
create and maintain a known safe current within an electrical component.
Resistance is measured in ohms, after Ohm's law. A 1000 Ohm resistor is typically shown as
1K-Ohm (kilo Ohm), and 1000 K-Ohms is written as 1M-Ohm (mega ohm).
2. Capacitors
The capacitor's capacitance (C) is a measure of the amount of charge (Q) stored on each plate
for a given potential difference or voltage (V) which appears across the plates. In SI units, a
capacitor has a capacitance is measured in farad (F).
10
Department of ISE PESIT-BSC
Analog and Digital Electronics Laboratory 17CSL37
3. Breadboard
A breadboard is a material or a device used to build a prototype of an electronic circuit.
The breadboard has many strips of metal (copper usually) which run underneath the board.
The metal strips are laid out as shown These strips connect the holes on the top of the board.
This makes it easy to connect components together to build circuits. To use the bread board,
the legs of components are placed in the holes (the sockets). The holes are made so that they
will hold the component in place. Each hole is connected to one of the metal strips running
underneath the board. The long top and bottom row of holes are usually used for power
supply connections.
11
Department of ISE PESIT-BSC
Analog and Digital Electronics Laboratory 17CSL37
4. Power Supply
A power supply is a separate unit or part of a circuit that supplies power to the rest of the
circuit or to a system. The power supply takes the current from your wall electrical socket
and converts it into the various voltages your circuit needs.
5. Multimeter
A meter is a measuring instrument. An ammeter measures current, a voltmeter measures the
potential difference (voltage) between two points, and an ohmmeter measures resistance. A
multimeter combines these functions and possibly some additional ones as well, into a single
instrument.
6. Signal/Function Generator
A function generator is a device that can produce various patterns of voltage at a variety of
frequencies and amplitudes. It is used to test the response of circuits to common input signals.
The electrical leads from the device are attached to the ground and signal input terminals of
the device under test.
Most function generators allow the user to choose the shape of the output from a small
number of options.
• Square wave - The signal goes directly from high to low voltage.
• Sine wave - The signal curves like a sinusoid from high to low voltage.
• Triangle wave - The signal goes from high to low voltage at a fixed rate.
The amplitude control on a function generator varies the voltage difference between the high
and low voltage of the output signal. The frequency control of a function generator controls
the rate at which output signal oscillates.
Most function generators allow the user to choose the shape of the output from a small
number of options.
• Square wave - The signal goes directly from high to low voltage.
• Sine wave - The signal curves like a sinusoid
from high to low voltage.
• Triangle wave - The signal goes from high to
low voltage at a fixed rate.
12
Department of ISE PESIT-BSC
Analog and Digital Electronics Laboratory 17CSL37
The amplitude control on a function generator varies the voltage difference between the high
and low voltage of the output signal. The frequency control of a function generator controls
the rate at which output signal oscillates.
Switch on the function generator and adjust the output level to produce a visible signal on the
oscilloscope screen. Adjust TIME/DIV and VOLTS/DIV to obtain a clear display and
investigate the effects of pressing the waveform shape buttons.
The rotating FREQUENCY control and the RANGE switch are used together to determine
the frequency of the output signal.
7. Oscilloscope
An oscilloscope is easily the most useful instrument available for testing circuits because it
allows you to see the signals at different points in the circuit. The best way of investigating an
electronic system is to monitor signals at the input and output of each system block, checking
that each block is operating as expected and is correctly linked to the next.
13
Department of ISE PESIT-BSC
Analog and Digital Electronics Laboratory 17CSL37
i. Before you switch the oscilloscope on, check that all the controls are in their
'normal' positions.
ii. Check through all the controls and put them in these positions:
iii. Set both VOLTS/DIV controls to 1 V/DIV and the TIME/DIV control to 2 s/DIV,
its slowest setting:
VOLTS/DIV TIME/DIV
iv. Switch ON, red button, top center:
The green LED illuminates and, after a few moments, you should see a small bright spot, or
trace, moving fairly slowly across the screen.
The Y-POS 1 allows you to move the spot up and down the screen. For the present, adjust the
trace so that it runs horizontally across the center of the screen.
When these are correctly set, the spot will be reasonably bright but not glaring, and as sharply
focused as possible. (The TR control is screwdriver adjusted. It is only needed if the spot
moves at an angle rather than horizontally across the screen with no signal connected.)
14
Department of ISE PESIT-BSC
Analog and Digital Electronics Laboratory 17CSL37
Adjusting the INTENSITY control changes the brightness of the oscilloscope display. The
FOCUS should be set to produce a bright clear trace. If required, TR can be adjusted using a
small screwdriver so that the oscilloscope trace is exactly horizontal when no signal is
connected.
vii. The TIME/DIV control determines the horizontal scale of the graph which
appears on the oscilloscope screen.
viii. The VOLTS/DIV controls determine the vertical scale of the graph drawn on the
oscilloscope screen.
The diagram shows a lead with a BNC plug at one end and crocodile clips at the
other. Adjust VOLTS/DIV and TIME/DIV until you obtain a clear picture of the
signal, which should look like this:
In the GND position, the input of the Y-amplifier is connected to 0 V. This allows you
to check the position of 0 V on the oscilloscope screen.
Trace selection switches: The settings of these switches control which traces
appear on the oscilloscope screen.
15
Department of ISE PESIT-BSC
Analog and Digital Electronics Laboratory 17CSL37
COMPONENTS REQUIRED:
SL No. COMPONENT SPECIFICATION
2. OR GATE IC 7432
8. IC TRAINER KIT -
9. PATCH CORD -
THEORY:
Circuit that takes the logical decision and the process are called logic gates. Each gate
has one or more input and only one output. OR, AND , NOT are basic gates. NAND, NOR
and X-OR are known as universal gates. Basic gates form these gates.
AND GATE:
The AND gate performs a logical multiplication commonly known as AND function.
The output is high when both the inputs are high. The output is low level when any one of the
inputs is low.
OR GATE:
The OR gate performs a logical addition commonly known as OR function. The output is
high when any one of the inputs is high. The output is low level when both the inputs are low.
16
Department of ISE PESIT-BSC
Analog and Digital Electronics Laboratory 17CSL37
NOT GATE:
The NOT gate is called an inverter. The output is high when the input is low. The
output is low when the input is high.
NAND GATE:
The NAND gate is a contraction of AND-NOT. The output is high when both inputs
are low and any one of the input is low .The output is low level when both inputs are high.
NOR GATE:
The NOR gate is a contraction of OR-NOT. The output is high when both inputs are
low. The output is low when one or both inputs are high.
X-OR GATE:
The output is high when any one of the inputs is high. The output is low when both
the inputs are low and both the inputs are high.
PROCEDURE:
17
Department of ISE PESIT-BSC
Analog and Digital Electronics Laboratory 17CSL37
AND GATE:
OR GATE:
18
Department of ISE PESIT-BSC
Analog and Digital Electronics Laboratory 17CSL37
NOT GATE:
X-OR GATE :
19
Department of ISE PESIT-BSC
Analog and Digital Electronics Laboratory 17CSL37
20
Department of ISE PESIT-BSC
Analog and Digital Electronics Laboratory 17CSL37
NOR GATE:
RESULT:
The truth tables of logic gates is verified.
21
Department of ISE PESIT-BSC
Analog and Digital Electronics Laboratory 17CSL37
EXPERIMENT 1
SCHMITT TRIGGER
AIM: Design and construct a Schmitt trigger circuit using op-amp for the given UTP
DESIGN :
R1Vref R2Vsat
UTP where Vsat is the positive saturation of the opamp cc
R1 R2 R1 R2
R1Vref R2Vsat
& LTP
R1 R2 R1 R2
Hence given the LTP & UTP values to find the R1 , R2 & Vref values, the following design is used.
2 R1Vref
UTP LTP - - - - - -(1)
R1 R2
2 R1Vsat
UTP LTP - - - - - -(2)
R1 R2
Let Vsat 12V, UTP 2.5 V & LTP 1V, then equation (2) yields R1 15 R2
Let R2 1K, then R1 15 K
(UTP LTP)( R1 R2 )
From equation (1) we have Vref 1.88V
2 R1
22
Department of ISE PESIT-BSC
Analog and Digital Electronics Laboratory 17CSL37
DESIGN 2)
23
Department of ISE PESIT-BSC
Analog and Digital Electronics Laboratory 17CSL37
THEORY:
PROCEDURE:
1. Before doing the connections, check all the components using multimeter.
2. Make the connection as shown in circuit diagram.
3. Using a signal generator apply the sinusoidal input waveform of peak-to-peak
amplitude of 10V, frequency 1kHz.
4. Keep the CRO in dual mode; apply input (Vin) signal to the channel 1 and observe the
output (Vo) on channel 2 which is as shown in the waveform below. Note the
amplitude levels from the waveforms.
5. Now keep CRO in X-Y mode and observe the hysteresis curve.
WAVEFORMS:
CRO in DUAL mode CRO in X-Y mode showing the Hysteresis curve
24
Department of ISE PESIT-BSC
Analog and Digital Electronics Laboratory 17CSL37
EXPERIMENT 2
AIM: Design and construct a rectangular waveform generator (op-amp relaxation oscillator)
for a given frequency and demonstrate its working.
COMPONENTS REQUIRED:
THEORY:
Op-Amp Relaxation Oscillator is a simple Square wave generator which is also called
as a Free running oscillator or Astable multivibrator or Relaxation oscillator. In this figure
the op-amp operates in the saturation region. Here, a fraction (R1/(R1+R2)) of output is fed
back to the non-inverting input terminal. Thus reference voltage is (R1/(R1+R2)) Vo and
may take values as +(R1/(R1+R2)) Vsat or - (R1/(R1+R2)) Vsat. The output is also fed back
to the inverting input terminal after integrating by means of a low-pass RC combination.
Thus whenever the voltage at inverting input terminal just exceeds reference voltage,
switching takes place resulting in a square wave output.
DESIGN:
1
The period of the output rectangular wave is given as T 2RC ln -------(1)
1
R1
Where, is the feedback fraction
R1 R2
25
Department of ISE PESIT-BSC
Analog and Digital Electronics Laboratory 17CSL37
1 1
Example: Design for a frequency of 1 kHz (implies T 3 10 3 1ms )
f 10
Choose next a value of C and then calculate value of R from equation (2).
T 10 3
Let C=0.1µF (i.e., 10-7), then R 5K
2C 2 10 7
R1
The voltage across the capacitor has a peak voltage of Vc Vsat
R1 R2
Values
C=0.1μF
R2
R1 = 10kΩ, R2 = 11.6 kΩ,R = 4.7k/5.1kΩ
R1
26
Department of ISE PESIT-BSC
Analog and Digital Electronics Laboratory 17CSL37
PROCEDURE:
1. Before making the connections check all the components using multimeter.
2. Make the connections as shown in figure and switch on the power supply.
3. Observe the voltage waveform across the capacitor on CRO.
4. Also observe the output waveform on CRO. Measure its amplitude and frequency.
WAVEFORMS
RESULT:
27
Department of ISE PESIT-BSC
Analog and Digital Electronics Laboratory 17CSL37
EXPERIMENT 3
AIM: Design and implement an astable multivibrator using 555 Timer for a given frequency
and duty cycle.
THEORY:
DESIGN:
Therefore T=1/f=1ms=Ton+Toff=1ms
Ton=0.693(RA+RB) C
Toff=0.693 RB C,
Duty cycle = Ton / T = 0.75. Hence Ton = 0.75T = 0.75 ms and Toff = T – TC = 0.25ms.
The Vcc determines the upper and lower threshold voltages (observed from the capacitor
2 1
voltage waveform) as VUT VCC & VLT VCC .
3 3
29
Department of ISE PESIT-BSC
Analog and Digital Electronics Laboratory 17CSL37
Note: The duty cycle determined by RA & RB can vary only between 50 & 100%. If RA is
much smaller than RB, the duty cycle approaches 50%.
Therefore T=1/f=1ms=Ton+Toff=1ms
To achieve a duty cycle of less than or equal to 50% is to connect a diode D across resistor
RB
For RA=RB=R,
T=0.693*2RA*C=1ms
In this case, the capacitor C charges through RA and diode D to approximately 2/3 Vcc and
discharges through RB until the capacitor voltage equals approximately 1/3 Vcc, after which
the cycle repeats.
PROCEDURE:
31
Department of ISE PESIT-BSC
Analog and Digital Electronics Laboratory 17CSL37
WAVEFORMS
Results:
An astable multivibrator of given duty cycle and frequency is designed. A comparison of the
experimental values with the given ones is represented below:
Frequency
Duty Cycle
32
Department of ISE PESIT-BSC
Analog and Digital Electronics Laboratory 17CSL37
EXPERIMENT NO.4
To design and construct half adder, full adder, half subtractor and full subtractor
circuits and verify the truth table using logic gates.
COMPONENTS REQUIRED:
THEORY:
HALF ADDER:
A half adder has two inputs for the two bits to be added and two outputs one from the
sum ‘ S’ and other from the carry ‘ c’ into the higher adder position. Above circuit is called as
a carry signal from the addition of the less significant bits sum from the X-OR Gate the carry
out from the AND gate.
FULL ADDER:
A full adder is a combinational circuit that forms the arithmetic sum of input; it
consists of three inputs and two outputs. A full adder is useful to add three bits at a time but a
half adder cannot do so. In full adder sum output will be taken from X-OR Gate, carry output
will be taken from OR Gate.
33
Department of ISE PESIT-BSC
Analog and Digital Electronics Laboratory 17CSL37
HALF SUBTRACTOR:
The half subtractor is constructed using X-OR and AND Gate. The half subtractor has
two input and two outputs. The outputs are difference and borrow. The difference can be
applied using X-OR Gate, borrow output can be implemented using an AND Gate and an
inverter.
FULL SUBTRACTOR:
The full subtractor is a combination of X-OR, AND, OR, NOT Gates. In a full
subtractor the logic circuit should have three inputs and two outputs. The two half subtractor
put together gives a full subtractor .The first half subtractor will be C and A B. The output
will be difference output of full subtractor. The expression AB assembles the borrow output
of the half subtractor and the second term is the inverted difference output of first X-OR.
A B CARRY SUM
0 0 0 0
0 1 0 1
1 0 0 1
1 1 1 0
34
Department of ISE PESIT-BSC
Analog and Digital Electronics Laboratory 17CSL37
35
Department of ISE PESIT-BSC
Analog and Digital Electronics Laboratory 17CSL37
FULL ADDER
LOGIC DIAGRAM:
TRUTH TABLE:
A B C CARRY SUM
0 0 0 0 0
0 0 1 0 1
0 1 0 0 1
0 1 1 1 0
1 0 0 0 1
1 0 1 1 0
1 1 0 1 0
1 1 1 1 1
36
Department of ISE PESIT-BSC
Analog and Digital Electronics Laboratory 17CSL37
LOGIC DIAGRAM:
37
Department of ISE PESIT-BSC
Analog and Digital Electronics Laboratory 17CSL37
HALF SUBTRACTOR
TRUTH TABLE:
A B BORROW DIFFERENCE
0 0 0 0
0 1 1 1
1 0 0 1
1 1 0 0
38
Department of ISE PESIT-BSC
Analog and Digital Electronics Laboratory 17CSL37
LOGIC DIAGRAM:
39
Department of ISE PESIT-BSC
Analog and Digital Electronics Laboratory 17CSL37
FULL SUBTRACTOR
40
Department of ISE PESIT-BSC
Analog and Digital Electronics Laboratory 17CSL37
TRUTH TABLE:
A B C BORROW DIFFERENCE
0 0 0 0 0
0 0 1 1 1
0 1 0 1 1
0 1 1 1 0
1 0 0 0 1
1 0 1 0 0
1 1 0 0 0
1 1 1 1 1
41
Department of ISE PESIT-BSC
Analog and Digital Electronics Laboratory 17CSL37
PROCEDURE:
RESULT:
42
Department of ISE PESIT-BSC
Analog and Digital Electronics Laboratory 17CSL37
EXPERIMENT 5
AIM: To simplify a given 4-variable logic expression using Entered Variable Map and to
realize the simplify logic expression using 8:1 multiplexer IC.
COMPONENTS REQUIRED:
Sl.No Components
1. Trainer Kit
2. Patch Chords
3. IC 74151
4. IC 7404
THEORY:
Multiplex means many into one. A multiplexer is a circuit with many inputs but only one
output. The inputs of the multiplexer are divided into two categories namely, data inputs and
select inputs. A multiplexer having ‘n’ data inputs have ‘m’ control signals such that n≤ 2m.
Depending on the value of the select inputs, data on one of the ‘n’ inputs is steered to the
output. The figure shows the block diagram of a multiplexer.
Multiplexer can be used to implement any logic expression. Commercial multiplexer ICs
come in integer power of 2, e.g. 2-to-1, 4-to-1, 8-to-1, 16-to-1 multiplexers. Hence to
implement a logic expression with ‘n’ variables, a multiplexer with ‘n’ select inputs is needed
i.e. 2n – to-1 multiplexer. Hence it is called as universal logic circuit.
43
Department of ISE PESIT-BSC
Analog and Digital Electronics Laboratory 17CSL37
DESIGN:
44
Department of ISE PESIT-BSC
Analog and Digital Electronics Laboratory 17CSL37
Step 1: Any 3 variables are fed as select inputs. The fourth variable is then the data input. In
the example, variables A, B and C are selected as the select inputs and D the data input.
Step 2:
ii. For each value of the 4th variable D, write the corresponding output. (Row 2 & 3)
45
Department of ISE PESIT-BSC
Analog and Digital Electronics Laboratory 17CSL37
Method 2)
f (A,B,C,D) = Σm(2,3,4,5,13,15) + d(8,9,10,11).
PROCEDURE:
1. Simplify the given logic expression using Map entered variable map.
2. Check all the IC components using digital IC tester.
3. Make connections as per the circuit diagram.
4. Give supply to the trainer kit.
5. Provide input data to the circuit via switches
6. Verify the truth table sequence. Observe the outputs.
RESULT:
A four-variable logic expression is simplified using entered variable map and is verified
using 8:1 multiplexer.
46
Department of ISE PESIT-BSC
Analog and Digital Electronics Laboratory 17CSL37
EXPT NO. :6
COMPONENTS REQUIRED:
THEORY:
A code converter is a circuit that makes the two systems compatible even though each
uses a different binary code. Each one of the four maps represents one of the four outputs of
the circuit as a function of the four input variables. A two-level logic diagram may be
obtained directly from the Boolean expressions derived by the maps.
The input variable are designated as B3, B2, B1, B0 and the output variables are
designated as C3, C2, C1, Co. from the truth table, combinational circuit is designed. The
Boolean functions are obtained from K-Map for each output variable.
47
Department of ISE PESIT-BSC
Analog and Digital Electronics Laboratory 17CSL37
Steps: The example shows the steps involved in conversion of a binary code to its gray code.
Binary code taken for the example is 1011. In the conversion process the most significant bit
(MSB) of the binary code is taken as the MSB of the Gray code. The bit positions G2, G1 and
G0 is obtained by adding (B3, B2),(B2, B1) and (B1, B0) respectively, ignoring the carry
generated. From the K-Map simplification
TRUTH TABLE:
B3 B2 B1 B0 G3 G2 G1 G0
0 0 0 0 0 0 0 0
0 0 0 1 0 0 0 1
0 0 1 0 0 0 1 1
0 0 1 1 0 0 1 0
0 1 0 0 0 1 1 0
0 1 0 1 0 1 1 1
0 1 1 0 0 1 0 1
0 1 1 1 0 1 0 0
1 0 0 0 1 1 0 0
1 0 0 1 1 1 0 1
1 0 1 0 1 1 1 1
1 0 1 1 1 1 1 0
1 1 0 0 1 0 1 0
1 1 0 1 1 0 1 1
1 1 1 0 1 0 0 1
1 1 1 1 1 0 0 0
48
Department of ISE PESIT-BSC
Analog and Digital Electronics Laboratory 17CSL37
G3 = B3
49
Department of ISE PESIT-BSC
Analog and Digital Electronics Laboratory 17CSL37
For binary to Gray code conversion the following Boolean expressions are obtained,
LOGIC DIAGRAM:
BINARY TO GRAY CODE CONVERTOR
The example shows the steps involved in conversion of a Gray code to binary code.
50
Department of ISE PESIT-BSC
Analog and Digital Electronics Laboratory 17CSL37
TRUTH TABLE:
G3 G2 G1 G0 B3 B2 B1 B0
0 0 0 0 0 0 0 0
0 0 0 1 0 0 0 1
0 0 1 1 0 0 1 0
0 0 1 0 0 0 1 1
0 1 1 0 0 1 0 0
0 1 1 1 0 1 0 1
0 1 0 1 0 1 1 0
0 1 0 0 0 1 1 1
1 1 0 0 1 0 0 0
1 1 0 1 1 0 0 1
1 1 1 1 1 0 1 0
1 1 1 0 1 0 1 1
1 0 1 0 1 1 0 0
1 0 1 1 1 1 0 1
1 0 0 1 1 1 1 0
1 0 0 0 1 1 1 1
51
Department of ISE PESIT-BSC
Analog and Digital Electronics Laboratory 17CSL37
B3 = G3
52
Department of ISE PESIT-BSC
Analog and Digital Electronics Laboratory 17CSL37
LOGIC DIAGRAM:
GRAY CODE TO BINARY CONVERTOR
In the conversion process the most significant bit (MSB) of the Gray code is taken as the
MSB of the binary code. The bit positions B2, B1 and B0 is obtained by adding (B3, G2),
(B2, G1) and (B1, G0) respectively, ignoring the carry generated. From the K-Map
simplification for Gray code to binary code conversion the following Boolean expressions are
obtained,
PROCEDURE:
RESULT:
Binary to Gray and Gray to Binary converters are designed, constructed using logic gates
and their truth table was verified.
53
Department of ISE PESIT-BSC
Analog and Digital Electronics Laboratory 17CSL37
EXPERIMENT 7
PARITY GENERATOR AND PARITY CHECKER
AIM:
Design and verify the Truth Table of 3-bit Parity Generator and 4-bit Parity Checker using
basic Logic Gates with an even parity bit.
COMPONENTS REQUIRED
THEORY:
Parity Generator: It is combinational circuit that accepts an n-1 bit stream data and generates
the additional bit that is to be transmitted with the bit stream. This additional or extra bit is
termed as a parity bit. In even parity bit scheme, the parity bit is ‘0’ if there are even number
of 1s in the data stream and the parity bit is ‘1’ if there are odd number of 1s in the data
stream. In odd parity bit scheme, the parity bit is ‘1’ if there are even numbers of 1s in the
datastream and the parity bit is ‘0’ if there are odd number of 1s in the data stream. Let us
discuss both even and odd parity generators.
Parity Checker: It is a logic circuit that checks for possible errors in the transmission. This
circuit can be an even parity checker or odd parity checker depending on the type of parity
generated at the transmission end. When this circuit is used as even parity checker, the
number of input bits must always be even. When a parity error occurs, the ‘sum even’ output
goes low and ‘sum odd’ output goes high. If this logic circuit is used as an odd parity
checker, the number of input bits should be odd, but if an error occurs the ‘sum odd’ output
goes low and ‘sum even’ output goes high.
54
Department of ISE PESIT-BSC
Analog and Digital Electronics Laboratory 17CSL37
DESIGN:
Let us assume that a 3-bit message is to be transmitted with an even parity bit. Let the three
inputs A, B and C are applied to the circuits and output bit is the parity bit P. The total
number of 1s must be even, to generate the even parity bit P. The figure below shows the
truth table of even parity generator in which 1 is placed as parity bit in order to make all 1s as
even when the number of 1s in the truth table is odd.
From the above truth table, the simplified expression of the parity bit can be written as
55
Department of ISE PESIT-BSC
Analog and Digital Electronics Laboratory 17CSL37
The above expression can be implemented by using two Ex-OR gates. The logic diagram of
even parity generator with two Ex – OR gates are shown below.
The three bit message along with the parity generated by this circuit which is transmitted to
the receiving end where parity checker circuit checks whether any error is present or not.
Consider that three input message along with even parity bit is generated at the transmitting
end. These 4 bits are applied as input to the parity checker circuit which checks the
possibility of error on the data. Since the data is transmitted with even parity, four bits
received at circuit must have an even number of 1s.
If any error occurs, the received message consists of odd number of 1s. The output of the
parity checker is denoted by PEC (parity error check).
The below table shows the truth table for the even parity checker in which PEC = 1 if the
error occurs, i.e., the four bits received have odd number of 1s and PEC = 0 if no error
occurs, i.e., if the 4-bit message has even number of 1s.
56
Department of ISE PESIT-BSC
Analog and Digital Electronics Laboratory 17CSL37
The above truth table can be simplified using K-map as shown below.
The above logic expression for the even parity checker can be implemented by using three
Ex-OR gates as shown in figure.
RESULT:
3-bit Parity generator and 4-bit parity checker using even parity is implemented using basic
gates. And truth table is verified.
57
Department of ISE PESIT-BSC
Analog and Digital Electronics Laboratory 17CSL37
EXPERIMENT NO 8
J-K MASTER/SLAVE FF USING NAND GATES
AIM: To realize a J-K Master/Slave flip flop using NAND gates and verify its truth table.
COMPONENTS REQUIRED:
THEORY:
The Q and Q' outputs will only change state on the falling edge of the CLK signal, and
the J and K inputs will control the future output
If both the J and K inputs are held at logic 1 and the CLK signal continues to change, the
Q and Q' outputs will simply change state with each falling edge of the CLK signal.
(The master latch circuit will change state with each rising edge of CLK.)
A JK master flip flop is positive edge triggered, whereas slave is negative edge triggered.
Therefore master first responds to J and K inputs and then slave. If J=0 and K=1, master
resets on arrival of positive clock edge. High output of the master drives the K input of the
slave. For the trailing edge of the clock pulse the slave is forced to reset. If both the inputs are
high, it changes the state or toggles on the arrival of the positive clock edge and the slave
toggles on the negative clock edge. The slave does exactly what the master does.
58
Department of ISE PESIT-BSC
Analog and Digital Electronics Laboratory 17CSL37
0 1 0 1 Reset
1 0 1 0 Set
1 1 Q0 Q0 toggle
59
Department of ISE PESIT-BSC
Analog and Digital Electronics Laboratory 17CSL37
RESULT:
The J-K Master / Slave Flip Flop is designed using NAND gates and its truth table is verified
60
Department of ISE PESIT-BSC
Analog and Digital Electronics Laboratory 17CSL37
EXPERIMENT NO 9:
SYNCHRONOUS UP COUNTER
AIM:
Design and implement a mod n (n<8) synchronous up counter using JK FF IC’s and
demonstrate its working.
COMPONENTS USED:
THEORY:
In digital logic and computing, a counter is a device which stores and displays the number of
times a particular event or process has occurred, often in relationship to a clock signal.
A synchronous counter is one whose output bits change state simultaneously. Such a
counter circuit can be built from JK flip-flop by connecting all the clock inputs together, so
that each and every flip-flop receives the exact same clock pulse at the exact same time. This
results in all the individual output bits changing state at exactly the same time in response to
the common clock signal with no ripple effect i.e. with no propagation delay.
By examining the four-bit binary count sequence, it noticed that just before a bit toggles, all
preceding bits are "high". That is a synchronous up-counter can be implemented by toggling
the bit when all of the less significant bits are at a logic high state. For example, bit 1 toggles
when bit 0 is logic high; bit 2 toggles when both bit 1 and bit 0 are logic high; bit 3 toggles
when bit 2, bit 1 and bit 0 are all high; and so on.
61
Department of ISE PESIT-BSC
Analog and Digital Electronics Laboratory 17CSL37
PR CLR CLK J K Q Q’
L H X X X H L
H L X X X L H
L L X X X H H
H H L L Q0 Q0’
H H H L H L
H H L H L H
H H H H Toggle
IC: 7408
62
Department of ISE PESIT-BSC
Analog and Digital Electronics Laboratory 17CSL37
63
Department of ISE PESIT-BSC
Analog and Digital Electronics Laboratory 17CSL37
64
Department of ISE PESIT-BSC
Analog and Digital Electronics Laboratory 17CSL37
Mod-5 Counter Synchronous Counter: This have five counter states. The counter design table
for such counter shows the three flip-flop and their states also (0 to 4 states). 6 inputs needed
for the three flip-flops.
0 0 0 0 0 1 0 x 0 x 1 x
0 0 1 0 1 0 0 x 1 x x 1
0 1 0 0 1 1 0 x x 0 1 x
0 1 1 1 0 0 1 x x 1 x 1
1 0 0 0 0 0 x 1 0 x 0 x
1 0 1 x x x x x x x x x
1 1 0 x x x x x x x x x
1 1 1 x x x x x x x x x
65
Department of ISE PESIT-BSC
Analog and Digital Electronics Laboratory 17CSL37
PROCEDURE:
1. Verify all the components and patch cords for good working condition.
2. Make connection as shown in the circuit diagram.
3. Give supply to the trainer kit
4. Provide input data to circuit via switches and verify the truth table.
RESULT:
The mod-n synchronous counter is successfully implemented by using the JK Flip Flop.
66
Department of ISE PESIT-BSC
Analog and Digital Electronics Laboratory 17CSL37
EXPERIMENT NO 10
AIM: Design and implement asynchronous counter using decade counter IC to count up from
0 to n (n≤9) and demonstrate its working.
COMPONENTS USED: IC 74LS90, Patch chords, Power chords and Trainer kit.
THEORY:
Asynchronous counter is a counter in which the clock signal is connected to the clock input
of only first stage flip flop. The clock input of the second stage flip flop is triggered by the
output of the first stage flip flop and so on. This introduces an inherent propagation delay
time through a flip flop. A transition of input clock pulse and a transition of the output of a
flip flop can never occur exactly at the same time. Therefore, the two flip flops are never
simultaneously triggered, which results in asynchronous counter operation.
PIN DIAGRAM
67
Department of ISE PESIT-BSC
Analog and Digital Electronics Laboratory 17CSL37
CIRCUIT DIAGRAM:
Function Table:
Clock Qa Qb Qc Qd
0 0 0 0 0
1 0 0 0 1
2 0 0 1 0
3 0 0 1 1
4 0 1 0 0
5 0 1 0 1
6 0 1 1 0
8 0 1 1 1
9 1 0 0 0
RESULT:
An asynchronous counter using a decade counter is designed and the truth table is verified for
the same.
68
Department of ISE PESIT-BSC
Analog and Digital Electronics Laboratory 17CSL37
EXPERIMENT NO 11
AIM: - To Study 4 Bit ALU (IC74181).
APPARATUS REQUIRED: IC 74181, etc.
THEORY:
The 74181 is a 7400 series medium-scale integration (MSI) TTL integrated circuit,
containing the equivalent of 75 logic gates and most commonly packaged as a 24-pin DIP.
The 4-bit wide ALU can perform all the traditional add / subtract / decrement operations with
or without carry, as well as AND / NAND, OR / NOR, XOR, and shift. Many variations of
these basic functions are available, for a total of 16 arithmetic and 16 logical operations on
two four-bit words. Multiply and divide functions are not provided but can be performed in
multiple steps using the shift and add or subtract functions. Shift is not an explicit function
but can be derived from several available functions including (A+B) plus A.
69
Department of ISE PESIT-BSC
Analog and Digital Electronics Laboratory 17CSL37
70
Department of ISE PESIT-BSC
Analog and Digital Electronics Laboratory 17CSL37
VIVA QUESTIONS
1. Draw the basic structure of an N channel junction field effect transistor.
2. Why is FET known as a unipolar device?
3. What are the advantages and disadvantages of JFET over BJT?
4. What is a channel?
5. Distinguish between JFET and MOSFET.
6. What is an effect of cascading?
7. What are all the factors affecting the bandwidth of the RC Coupled amplifier?
8. Explain bypass capacitor?
9. What is meant by coupling capacitor?
10. Why does amplifier gain reduce?
11. Explain the different regions in frequency response?
12. State the types of distortions in amplifier?
13. What is cross over distortion? How it can be eliminated?
14. Define noise?
15. Draw the symbol of JFET and MOSFET.
16. What are the two modes of MOSFET?
17. Define pinch-off voltage
18. What is feedback and what are feedback amplifiers?
19. What is meant by positive and negative feedback?
20. What are the advantages and disadvantages of negative feedback?
21. Differentiate between voltage and current feedback in amplifiers?
22. What is the type of feedback used in an op- amp Schmitt trigger?
23. Give the expression for the frequency of oscillations in an op-amp sine wave oscillator?
24. What are the conditions for sustained oscillations or or what is Barkhausen criterion
25. What are the classifications of Oscillators?
26. What are the types of feedback oscillators?
27. Define Piezo-electric effect?
28. Draw the equivalent circuit of crystal oscillator?
29. How does an oscillator differ from an amplifier?
71
Department of ISE PESIT-BSC
Analog and Digital Electronics Laboratory 17CSL37
73
Department of ISE PESIT-BSC