ADC Lab Manual
ADC Lab Manual
Institute
To be a Centre of excellence in technical education and research.
Vision
Institute
To address the emerging needs through quality technical education and advanced research.
Mission
Department Vision:
To cultivate technical and innovative proficiency by fostering collaborative learning in Cutting edge Integrated
Circuit technologies to excel in global challenges
Department Mission:
M1:
To foster analytical thinking, creativity and technical expertise through theoretical foundation and hands-on
experience in cutting edge technologies/tools.
M2:
To nurture a collaborative learning environment and promote research excellence through industry interaction.
M3:
To inculcate good practices that emphasizes critical thinking, and ethical practices for the betterment of the society.
PEOS
PEO1:
Graduates will have a strong foundation in electronics principles with specialized knowledge in VLSI design and
related tools, enabling them to solve complex engineering problems in the domain of microelectronics (foundation
in engineering)
PEO2:
Graduates will be successful in their professional careers by exhibiting the ethical standards, leadership skills and
effective communication. (successful career and professionalism / professional ethics)
PEO3:
Graduates will engage in lifelong learning adapting to technological advancements, pursuing higher education,
research and professional development in emerging fields of VLSI.(innovation and lifelong learning)
PEO4:
Graduates will contribute to sustainable solutions for real time societal problems by collaborating across multi-
disciplinary teams/approaches (problem solving/interdisciplinary collaboration/social responsibility/ sustainablility).
PSOs
PSO1:
Ability to apply the acquired knowledge for electronic system design using Integrated Circuit technologies.
PSO 2:
Analyze and solve the complex Electronic System Design problems using software and hardware tools.
PSO3:
Will be competent enough to carry research and contribute to the societal needs.
CBIT (A) Revised AICTE Model Curriculum with effect from AY 2024-25 R-22 (A)
8. Individual and Collaborative Function effectively as an individual, and as a member or leader in diverse
Team Work teams, and in multidisciplinary settings.
22EV03
ELECTRONICS ENGINEERING (VLSI Design and Technology)
ANALOG AND DIGITAL CIRCUITS LAB
Prerequisite: Student should have knowledge on Electronic Devices lab and Network lab.
COURSE OBJECTIVES:
This course aims to:
1. The Understand the design of biasing and amplifiers.
2. AnalysisofBJT&FETinvariousconfigurationsusingsmallsignalequivalentmodelsandtheir
frequency response.
3. Know the concept of logic gates and ICs.
COURSE OUTCOMES:
Upon completion of this course, students will be able to:
1. Design of BJT/FET biasing circuits.
2. Experiment with single and multi-stage amplifiers.
3. Compare different performance of different oscillators.
4. Compare and contrast different types logic gates operation.
5. Implement different logic functions using different ICs.
List of experiments
1. Design of a Common Emitter BJT amplifier and study of its frequency response.
2. Frequency response of two stage RC - Coupled Common Source FET amplifier
3. Design of a voltage shunt amplifier and study of its frequency response.
4. Design of current series amplifier and study of its frequency response.
5. Design and implementation of RC Oscillator.
6. Design and implementation of LC Oscillator
7. Design of Class-B power amplifier.
8. Functional verification of logic gates using ICs.
9. Implementation of logic function using decoder IC.
10. Implementation of logic function using Multiplexer IC.
11. Implementation of code converter.
12. Implementation of BCD Adder.
➢ Structured enquiry: Design a Frequency Divider Circuit using ICs
➢ Open-ended Enquiry: Design and implement a classroom sound monitoring system
using BJTs and a 0.5W speaker.
EXPERIMENT - 01
Common Emitter BJT amplifier and study of its frequency response
AIM: To design a BJT common emitter amplifier using voltage divider bias and determine the
gain-bandwidth product from its frequency response.
APPARATUS:
1. CRO
2. Power Supply
3. Function Generator
4. Breadboard, Transistors, Resistors, and Capacitors
5. Decade Resistance Box and Connecting wires.
CIRCUIT DIAGRAM:
FORMULAE:
Bandwidth (BW) = fH–fL.
EXPECTED GRAPH:
A graph is plotted between f on X–axis and 20 log V0 / VI on Y-axis. It will be as shown in
Fig.2.
BW =fH – f L
RESULT:
1. Mid-band gain (dB) =
2. Bandwidth (KHz)=
3. Gain-Bandwidth product (dBKHz) =
PRE-LAB QUESTIONS:
1. Explain the importance of DC biasing in the common emitter amplifier circuit. What
is the purpose of establishing a proper quiescent operating point?
2. Why is the circuit called Single Stage RC coupled Amplifier?
3. In which frequency range this circuit is used?
4. Indicate the bypass capacitor and coupling capacitor in the circuit?
VIVA-VOCE QUESTIONS:
5. Why the gain of the circuit decreases in low frequency region and high
frequency region?
6. What is the -3 dB bandwidth of an amplifier, and how is it related to its
frequency response?
7. How does the common emitter amplifier amplify AC signals while maintaining the
DC biasing point?
8. Explain the significance of emitter bypass capacitor.
EXPERIMENT – 02
Frequency response of Two RC - Coupled CS FET amplifier
AIM
To calculate the voltage gain and to obtain the frequency response characteristics of a
single stage and two stage R-C coupled amplifier using FET.
APPARATUS
1. DC power supply
2. Signal generator
3. Dual trace oscilloscope
4. Patch cords
5. FET- BFW10/ BFW11
6. Resistors and Capacitors.
CIRCUIT DIAGRAM
OBSERVATIONS:
EXPECTED GRAPH:
A graph is plotted between by taking frequency (f) on X –axis and magnitude ( 20* log10 V0 /Vi )
on the Y axis. It will be as shown in the Fig.2.
BW = fH– f L
RESULT:
4. What is the effect of cascading on the overall lower and upper 3dB frequencies?
VIVA-VOCE QUESTIONS:
7. What are the parameters that will affect the low frequency and high frequency response
in RC coupled amplifier.
9. How does the number of RC stages affect the frequency response of the amplifier?
10. Compare single, multistage amplifiers interms of gain, bandwidth, and G-BW product.
EXPERIMENT –03
VOLTAGE SHUNT FEEDBACK AMPLIFIER
AIM: To find the frequency response and calculate the bandwidth of Voltage Shunt feedback.
amplifier circuit with and without feedback.
APPARATUS:
1. CRO
2. Power Supply - (0-30)V
3. Function Generator
4. Breadboard
5. BJT
6. Resistors
7. Capacitors
8. Connecting wires
CIRCUIT DIAGRAM:
CALCULATIONS:
1. Bandwidth:
Without feedback (KHz) = F2 – F1
With feedback (KHz) = F2* – F1*
2. Gain bandwidth product:
Without Feedback (KHzdB) = Av * BW
With Feedback (KHzdB) = Av’ * BW’
OBSERVATIONS:
1. Max. signal handling capacity (Vimax)=
2. Amplitude of input signal applied (Vi) =
S.N Frequency Vo Vof AV1=V0/Vi AVf=V0f/Vi Gain in dB Gain in dB
o. (V) (V) 20 log10 AV1 20 log10 AVf
1 20
2 40
3 60
4 80
5 100
6 500
7 1K
8 5K
9 10K
10 40K
11 80K
12 100K
13 200K
14 400K
15 600K
16 800K
17 1M
MODEL GRAPH:
Fig.2 Frequency response of Voltage shunt feedback amplifier with and without feedback
RESULT:
With Feedback Without Feedback
Gain
Bandwidth
Gain Bandwidth Product
PRE-LAB QUESTIONS:
1. CRO
2. Power Supply
3. Function Generator
4. Breadboard, Transistors, Resistors, and Capacitors
5. Decade Resistance Box and Connecting wires.
CIRCUIT DIAGRAM:
CALCULATIONS:
1. BW Without Feedback=FH - FL
2. BW With Feedback= FH* - FL *
3. Gain bandwidth product
Without Feedback = Av * (BW)
With Feedback = Avf * (BWf)
OBSERVATIONS:
1 20
2 40
3 60
4 80
5 100
6 500
7 1K
8 5K
9 10K
10 40K
11 80K
12 100K
13 200K
14 400K
15 600K
16 800K
17 1M
Frequency Response Curve:
Fig.2 Frequency response of Current Series Feedback Amplifier with and without feedback
Graphs are plotted between f on X – axis and 20 log V0/ VI on Y axis for both with and without
feedback.
RESU
LT:
1. Frequency response curves are plotted.
2. Bandwidths (with feedback) =
(Without feedback) =
3. Gain (with feedback) =
(Without feedback) =
PRE-LAB QUESTIONS:
1. What is the effect of current series feedback on input and output impedances?
2. By applying negative feedback what happens to input and output impedances of
circuit?
3. What happens to Bandwidth and gain of the circuit if negative feedback is
applied?
4. How the voltage gain of an amplifier is stabilized by applying negative feedback?
VIVA-VOCE QUESTIONS:
AIM: To verify the frequency of oscillation theoretically and practically for the given RC phase
shift oscillator.
APPARATUS:
CIRCUIT DIAGRAM:
PROCEDURE:
1. Connect the circuit as shown in Fig.1 and switch on the DC power supply (25V )
to the circuit.
2. Now observe the period of oscillation in CRO and calculate the corresponding
frequency.
3. Verify with theoretical value using the formulae:
fo=1/(2πRC√(6+4K)) where K = Rc/R
EXPECTED GRAPH:
RESULT:
The frequency of oscillation for the given RC phase shift oscillator has been computed
theoretically and is found to be Hz. The practical frequency is Hz.
PRE-LAB QUESTIONS:
1. What is the difference between amplifier and oscillator?
2. What are the key components of a phase-shift oscillator, and how do they contribute to
oscillation?
3. Explain the principle behind the RC phase-shift oscillator. How does it generate
oscillations?
4. What is the significance of the phase-shift network in the RC phase-shift oscillator?
VIVA-VOCE QUESTIONS:
AIM:
To design a Colpitt’s oscillator and measure its frequency of oscillation.
APPARATUS:
i) CRO
ii) Power Supply
iii) Bread board , Transistors ,Resistors and Capacitors
iv) Decade Capacitance Box ,Decade Inductance Box and Connecting wires
DESIGN:
1
Given Frequency f = ------------ =
2 LC
L = 5 mH then C = ------------ where C = (C1 C2)/( C1 + C2)
Let C1 = - - - - -------- Then C2 = - - - - - - - --
CIRCUIT DIAGRAM:
PROCEDURE:
3. Compare the practical frequency with theoretical frequency. Inspect for frequency
values above 100 kHz.
OBSERVATIONS:
Sl.No. Condition Frequency of Oscillations
1 T F=1/T V
2 LC
1.
2.
3.
EXPECTED GRAPH:
FORMULAE:
1
Given Frequency fth =
2 LC
where C = C1 C2
C1 + C2
RESULT: The functioning of Colpitt’s oscillator is verified and the frequency of oscillations
generated is found to be ______________ Hz.
VIVA VOCE:
1. What is meant by frequency stability of oscillator?
APPARATUS:
i) CRO
ii) Power Supply
iii) Bread board , Transistors ,Resistors and Capacitors
iv) Decade Capacitance Box ,Decade Inductance Box and Connecting wires
CIRCUIT DIAGRAM:
PROCEDURE:
EXPECTED GRAPH:
FORMULAE:
1
Given Frequency fth =
2 LC
where L= L1+L2
RESULT: The Hartley oscillator has been verified and the frequency of oscillations generated is
found to be ______________ Hz.
VIVA VOCE:
1. Give the conditions for oscillations in Hartley Oscillator?
2. What is meant by frequency stability of oscillator?
3. Which component is responsible, for the feedback in the circuit of Hartley
Oscillator ?
4. What is the difference between amplifier and oscillator?
5. What is the frequency range that can be generated using the above circuit?
EXPERIMENT-07
CLASS - B POWER AMPLIFIER
Aim: To design a Class – B power amplifier and determine its efficiency at optimum load.
APPARATUS:
i) CRO
ii) Power Supply
iii) Breadboard , Transistors ,Resistors and Capacitors
iv) Audio Frequency power output meter
v) Decade Resistance Box and Connecting wires
CIRCUIT DIAGRAM:
OBSERVATIONS:
SL.No Load Output Input power n = (Pac / Pdc)
impedance Power X100%
EXPECTTED GRAPH
RESULTS:
1. The optimum load for the circuit is ..........................
2. Efficiency of the amplifier is......................... %
PRE-LAB QUESTIONS:
1. What are the different classes of amplifiers?
2. Explain the operation of class B amplifier.
3. Compare the efficiencies of different amplifiers.
4. What are the disadvantages of class B amplifiers?
5. What is distortion?
VIVA-VOCE QUESTIONS:
6. What are the typical applications of Class B power amplifiers in electronic systems?
7. What measures can be taken to minimize crossover distortion in Class B power
amplifiers?
8. Compare and contrast Class A and Class B power amplifiers in terms of
efficiency, distortion, and linearity.
EXPERIMENT - 8
Logic Gates using ICs
Aim:-
Introduction to digital ICs, and verification of the truth tables of logic gates using ICs.
Apparatus Required:-
Digital lab kit, single strand wires, breadboard, TTL IC’s
Gates IC NO.
AND 7408
OR 7432
NAND 7400
NOR 7402
NOT 7404
XOR 74136
Theory:-
Logic gates are idealized or physical devices implementing a Boolean function, which it
performs a logical operation on one or more logical inputs and produce a single output.
Depending on the context, the term may refer to an ideal logic gate, one that has for
instance zero rise time and unlimited fan out or it may refer to anon-ideal physical device.
1. Basic Gates
2. Universal Gates
3. Advanced Gates
Basic Gates
1. AND gate: - Function of AND gate is to give the output true when both the inputs
are true. In all the other remaining cases output becomes false. Following table
justifies the statement:-
1 1 1
1 0 0
0 1 0
0 0 0
IC 7408
2. OR gate: - Function of OR gate is to give output true when one of the either inputs
are true .In the remaining case output becomes false. Following table justify the
statement:-
0 0 0
0 1 1
1 0 1
1 1 1
IC 7432
3. NOT gate: -Function of NOR gate is to reverse the nature of the input .It
converts true input to false and vice versa. Following table justifies the statement :-
Input Output
1 0
0 1
IC 7404
Universal Gates
1. NAND gate: -Function of NAND gate is to give true output when one of the two
provided input are false. In the remaining output is true case .Following table
justifies the statement :-
1 1 0
1 0 1
0 1 1
0 0 1
IC 7400
2. NOR gate: - NOR gate gives the output true when both the two provided input
are false. In all the other cases output remains false. Following table justifies the
statement :-
1 1 0
1 0 0
0 1 0
0 0 1
IC 7402
Advanced Gates
1. XOR gate: - The function of XOR gate is to give output true only when both the
inputs are true. Following table explain this:-
1 1 0
1 0 1
0 1 1
0 0 0
IC 74136
Procedure:-
• Place the breadboard gently on the observation table.
• Fix the IC which is under observation between the half shadow line of
breadboard, so there is no shortage of voltage.
• Connect the wire to the main voltage source (Vcc) whose other end is connected
to last pin of the IC (14 place from the notch).
• Connect the ground of IC (7th place from the notch) to the ground terminal
provided on the digital lab kit.
• Give the input at any one of the gate of the ICs i.e. 1st, 2nd, 3rd, 4th gate by using
connecting wires.(In accordance to IC provided).
• If led glows red then output is true, if it glows green output is false, which is
numerically denoted as 1 and 0 respectively. The Color can change based on the
IC manufacturer it’s just verification of the Truth Table not the color change.
Result:-
Precautions:-
• All connections should be made neat and tight.
• Digital lab kits and ICs should be handled with utmost care.
• While making connections main voltage should be kept switched off.
• Never touch live and naked wires.
Ans: Logic gate is a physical device implementing a Boolean function and performs
Logical operation on one or more logic inputs and produces a single logic output.
Ans: NAND and NOR gates are called universal gates as any type of logic gates or logic
5. What is the primary motivation for using Boolean algebra to simplify logic expressions?
2. Which of the two input logic gate can be used to implement an inverter circuit? Ans: Ex-NOR
gate
3. Which are the logic gates whose all output entries are logic 1 except for one entry there is logic
0?
Pin Diagram:
IC 74ALS 138
Logic Diagram
IC 7400 IC 7432
Circuit Diagrams:
Logic Function F1= Σ m (2,3,5,7)
Some decoders do not utilize all of the possible input codes but only certain ones. For example, a BCD-to-
decimal decoder has a four-bit inputcode and ten output lines that correspond to the ten BCD code groups
0000 through 1001. Decoders of this type are often designed so that if any of
the unused codes are applied to the input, none of the outputs will be activated.
This decoder can be referred to in several ways. It can be called a 3-lineto- 8-line decoder because it has
three input lines and eight output lines. It can also be called a binary-to-octal decoder or converter because
it takes a three bit binary input code and activates one of the eight (octal) outputs corresponding to that code.
It is also referred to as a 1-of-8 decoder because only 1 of the 8 outputs is activated at one time.
ENABLE Inputs
Some decoders have one or more ENABLE inputs that are used to control the operation of the
decoder. For example, refer to the decoder and visualize having a common ENABLE line connected to a
fourth input of each gate. With this ENABLE line held HIGH, the decoder will function normally, and the
A, B, C input code will determine which output is HIGH. With ENABLE held LOW, however, all of the
outputs will be forced to the LOW state regardless of the levels at the A, B, C inputs. Thus, the decoder is
enabled only if ENABLE is HIGH.
By examining the logic diagram of 74ALS138 decoder carefully, we can determine exactly how this
decoder functions. First, notice that it has NAND gate outputs, so its outputs are active-LOW. Another
indication is the labeling of the outputs as O7,O6,O5 and so on; the over bar indicates active-LOW outputs.
The input code is applied atA2,A1 andA0 , where A2 is the MSB. With three inputs and eight outputs, this is
a 3-to-8 decoder or, equivalently, a 1-of-8 decoder.
Inputs ̅̅̅̅
𝐸1 , ̅̅̅̅
E2 and E3 are separate enable inputs that are combined in the AND gate. In order to enable
the output NAND gates to respond to the input code at A2A1A0, this AND gate output must be HIGH. This
̅̅̅̅= E2
will occur only when 𝐸1 ̅̅̅̅= 0 and E3 = 1.In other words, ̅̅̅̅
𝐸1 and ̅̅̅̅
𝐸2are active-LOW, E3 is active-
HIGH, and all three must be in their active states to activate the decoder outputs. If one or more of the
enable inputs is in its inactive state, the AND output will be LOW, which will force all NAND outputs to
their inactive HIGH state regardless of the input code. This operation is summarized in the truth table in
Figure 9-3(b). Recall that x represents the don’t-care condition. The logic symbol for the 74ALS138 is
shown in Figure 9-3(c). Note how the active-LOW outputs are represented and how the enable inputs are
represented. Even though the enable AND gate is shown as external to the decoder block, it is part of the
IC’s internal circuitry. The 74HC138 is the high-speed CMOS version of this decoder.
Procedure:
1. Using the 3:8 Decoder(IC74ALS 138) with NAND gate IC 7400 and OR gate IC7432 Connect the
circuit as shown in the fig 2.1and 2.2
2. Connect the data inputs as per the truth tables.
3. Tabulate the outputs of the logic function F1 and F2 in the observation table.
4. Also verify the truth tables of logic functions using Boolean algebraic expressions.
Precautions:
1. Connect the circuit properly without any loose connections and ensure the proper ground
connections.
2. Make sure that power supply should not exceed more than +5V
Result:
The Logic functions are designed & realized using 3:8 decoder 74ALS138 & their truth tables are
verified.
Discussion Questions:
1. Explain the importance of decoders?
2. Implement 4X16 and 5X32 decoders by using 74ALS 138IC.
3. Explain the various applications of decoders?
4. Write the differences between decoder, encoder and priority encoder?
Experiment No. 9
Logic function Implementation using Multiplexers
Aim:
To verify full adder and full Subtractor using 8:1 MUX (IC74LS151) and 4:1 MUX (IC74LS153)
Apparatus:
1. IC 74LS151 1no
2. IC74LS153 1 no
3. IC7404 1no
4. Trainer Board 1no
5. Regulated Power supply 1no
6. Single strand wires
Pin Diagram:
IC 74151
IC 74153
Circuit Diagrams:
Full adder using 8:1 MUX
Fig.3.1 FA- Sum output circuit by using 74151 Fig.3.2 FA- Carry output circuit by using 74151
Fig.3.3 FS- Difference output circuit by using 74151 Fig.3.4 FS- Borrow output circuit by using 74151
Full adder using 4:1 MUX
Fig.3.5 FA- Sum and carry output circuit by using 74153
Truth tables:
Theory:
Multiplexer is a digital switch. It allows digital information from several sources to be routed onto a single
output line. The basic multiplexer has several data input lines and a single output line. The selection of a
particular input line is controlled by a s set of selection lines. Normally, there are 2 n input lines and n select lines
whose bit combinations determine which input is selected. Therefore, multiplexer is ‘many into one’ and it
provides the digital equivalent of an analog selector switch.
A full –adder is a combinational circuit that forms the arithmetic sum of three input bits. It consists of three
inputs and two outputs. The outputs are designated by symbol ‘S’ for sum and ‘C’ for carry. The truth table of the
full adder is shown in the table 1. A full subtractor is a combinational circuit that performs a subtraction between
two bits, taking into account that a 1 may have been borrowed by a lower significant stage. This circuit has three
inputs and two outputs. The two outputs D and B represent the difference and output borrows respectively.
In implementation these circuits by using the multiplexers, we choose the required order of the multiplexer
based on the inputs and if the input value is ‘1’ those are connected to the VCC and if the input are ‘0’ are given to
ground. By the proper selection of input we will get the corresponding outputs.
Procedure:
1. Using the 8:1 MUX(IC74151) Connect the circuit as shown in the fig 3.1, 3.2 , 3.3 and 3.4
2. Connect the data inputs as per the truth tables of select inputs.
3. Tabulate the output result of sum (S), carry (C), difference (D) and borrow (B) in the observation table.
4. Also verify the truth tables of full adder / Subtractor using 4:1 MUX (IC74153) as shown in fig 3.5 and 3.6.
Precautions:
1. Connect the circuit properly without any loose connections and ensure the proper ground connections.
2. Make sure that power supply should not exceed more than +5V
Result:
The Full Adder and Full Subtractor are designed & realized using 8:1 MUX (IC74151) and 4:1 MUX (IC74153)
& their truth tables are verified
Discussion Questions:
Theory:
There is a wide variety of binary codes used in digital systems. Some of these codes are binary-
coded- decimal (BCD), Excess-3, Gray, octal, hexadecimal, etc. Often it is required to convert
from one code to another. For example the input to a digital system may be in natural BCD and
output may be 7-segment LEDs. The digital system used may be capable of processing the data
in straight binary format. Therefore, the data has to be converted from one type of code to
another type for different purpose. The various code converters can be designed using gates.
1) Binary Code:
It is straight binary code. The binary number system (with base 2) represents values using two
symbols, typically 0 and 1.Computers call these bits as either off (0) or on (1). The binary code
are made up of only zeros and ones, and used in computers to stand for letters and digits. It is
used to represent numbers using natural or straight binary form.
It is a weighted code since a weight is assigned to every position. Various arithmetic operations
can be performed in this form. Binary code is weighted and sequential code.
2) Gray Code:
It is a modified binary code in which a decimal number is represented in binary form in such a
way that each Gray- Code number differs from the preceding and the succeeding number by a
single bit. (E.g. for decimal number 5 the equivalent Gray code is 0111 and for 6 it is 0101.
These two codes differ by only one bit position i. e. third from the left.) Whereas by using binary
code there is a possibility of change of
all bits if we move from one number to other in sequence (e.g. binary code for 7 is 0111 and
for 8 it is 1000). Therefore it is more useful to use Gray code in some applications than binary
code.
The Gray code is a nonweighted code i.e. there are no specific weights assigned to the bit
positions. Like binary numbers, the Gray code can have any no. of bits. It is also known as
reflected code.
Applications:
1. Important feature of Gray code is it exhibits only a single bit change from one code word to the next in
sequence. This property is important in many applications such as Shaft encoders where error
susceptibility increases with number of bit changes between adjacent numbers in sequence.
2. It is sometimes convenient to use the Gray code to represent the digital data converted from the analog
data (Outputs of ADC).
3. Gray codes are used in angle-measuring devices in preference to straight forward binary encoding.
The disadvantage of Gray code is that it is not good for arithmetic operation
0 0 1 1 Binary code
+ + +
0 0 1 0 Gray code
(MSB) (LSB)
1 0 1 1 Gray code
+ + +
1 1 0 1 Binary code
(MSB) (LSB)
Fig. 2 Gray to Binary Conversion
3) BCD Code:
Binary Coded Decimal (BCD) is used to represent each of decimal digits (0 to 9) with a 4-bit
binary code. For example (23)10 is represented by 0010 0011 using BCD code rather than
(10111)2 This code is also known as 8-4-2-1 code as 8421 indicates the binary weights of
four bits(23, 22, 21, 20). It is easy to convert between BCD code numbers and the familiar
decimal numbers. It is the main advantage of this code. With four bits, sixteen numbers (0000 to
1111) can be represented, but in BCD code only 10 of these are used. The six code combinations
(1010 to 1111) are not used and are invalid.
Applications: Some early computers processed BCD numbers. Arithmetic operations can be
performed using this code. Input to a digital system may be in natural BCD and output may be 7-
segment LEDs.
It is observed that more number of bits are required to code a decimal number using BCD code
than using the straight binary code. However in spite of this disadvantage it is very convenient
and useful code for input and output operations in digital systems.
4) EXCESS-3 Code:
Excess-3, also called XS3, is a non weighted code used to express decimal numbers. It can be
used for the representation of multi-digit decimal numbers as can BCD.The code for each
decimal number is obtained by adding decimal 3 and then converting it to a 4-bit binary number.
For e.g. decimal 2 is coded as 0010
+ 0011 = 0101 in Excess-3 code.
This is self complementing code which means 1‘s complement of the coded number yields 9‘s
complement of the number itself. Self complementing property of this helps considerably in
performing subtraction operation in digital systems, so this code is used for certain arithmetic
operations.
For converting 4 bit BCD code to Excess – 3, add 0011 i. e. decimal 3 to the respective code
using rules of binary addition.
The 4 bit Excess-3 coded digit can be converted into BCD code by subtracting decimal value 3
i.e. 0011 from 4 bit Excess-3 digit.
Design:
A) Binary to Gray Code Conversion:
1) 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
2) K-Map for Reduced Boolean Expressions of Each Output:
Fig. 4 K-Map for Reduced Boolean Expressions of Each Output (Gray Code)
3) Circuit Diagram:
1) 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
Digital Electronics Lab (Pattern 2015)
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
Digital Electronics Lab (Pattern 2015)
Fig. 6 K-Map for Reduced Boolean Expressions of Each Output (Binary Code)
G1G0G2G3 00 01 11 10
00 0 11 0 1
1 1 Note:-Use this k-map instead one that
01 1 0 1 0 is given above.
1 1
11 0 0 1
1 1
10 1 0 1 0
1 1
3) Circuit Diagram:
1) Truth Table:
B3 B2 B1 B0 E3 E2 E1 E0
0 0 0 0 0 0 1 1
0 0 0 1 0 1 0 0
0 0 1 0 0 1 0 1
0 0 1 1 0 1 1 0
0 1 0 0 0 1 1 1
0 1 0 1 1 0 0 0
0 1 1 0 1 0 0 1
0 1 1 1 1 0 1 0
1 0 0 0 1 0 1 1
1 0 0 1 1 1 0 0
1 0 1 0 x x x x
1 0 1 1 x x x x
1 1 0 0 x x x x
1 1 0 1 x x x x
1 1 1 0 x x x x
1 1 1 1 x x x x
Digital Electronics Lab (Pattern 2015)
Fig. 8 K-Map for Reduced Boolean Expressions Of Each Output (Excess-3 Code)
3) Circuit Diagram:
1) Truth Table:
E3 E2 E1 E0 B3 B2 B1 B0
0 0 0 0 X X X X
0 0 0 1 X X X X
0 0 1 0 X X X X
0 0 1 1 0 0 0 0
0 1 0 0 0 0 0 1
0 1 0 1 0 0 1 0
0 1 1 0 0 0 1 1
0 1 1 1 0 1 0 0
1 0 0 0 0 1 0 1
1 0 0 1 0 1 1 0
1 0 1 0 0 1 1 1
1 0 1 1 1 0 0 0
1 1 0 0 1 0 0 1
1 1 0 1 X X X X
1 1 1 0 X X X X
1 1 1 1 X X X X
2) K-Map for Reduced Boolean Expressions of Each Output:
Fig 10 K-Map For Reduced Boolean Expressions of Each Output (BCD Code)
3) Circuit Diagram:
Outcome:
Thus, we studied different codes and their conversions including
applications. The truth tables have been verified using IC 7486, 7432,
There is a wide variety of binary codes used in digital systems. Often it is required to convert
from one code to another. For example the input to a digital system may be in natural BCD and
output may be 7- segment LEDs. The digital system used may be capable of processing the data
in straight binary format. Therefore, the data has to be converted from one type of code to
another type for different purpose.
It is a modified binary code in which a decimal number is represented in binary form in such a
way that each Gray- Code number differs from the preceding and the succeeding number by a
single bit.
(e.g. for decimal number 5 the equivalent Gray code is 0111 and for 6 it is 0101. These two
codes differ by only one bit position i. e. third from the left.) It is non weighted code.
Important feature of Gray code is it exhibits only a single bit change from one code word to the
next in sequence. Whereas by using binary code there is a possibility of change of all bits if we
move from one number to other in sequence (e.g. binary code for 7 is 0111 and for 8 it is 1000).
Therefore it is more useful to use Gray code in some applications than binary code.
1. Important feature of Gray code is it exhibits only a single bit change from one code word to the next in
sequence. This property is important in many applications such as Shaft encoders where error
susceptibility increases with number of bit changes between adjacent numbers in sequence.
2. It is sometimes convenient to use the Gray code to represent the digital data converted from
the analog data (Outputs of ADC).
3. Gray codes are used in angle-measuring devices in preference to straight forward binary encoding.
In weighted codes each digit position of number represents a specific weight. The codes
8421, 2421, and 5211 are weighted codes.
Non weighted codes are not assigned with any weight to each digit position i.e. each
digit position within the number is not assigned a fixed value. Gray code, Excess-3 code
are non-weighted code.
With four bits, sixteen numbers (0000 to 1111) can be represented, but in BCD code only
10 of these are used as decimal numbers have only 10 digits fro 0 to 9. The six code
combinations (1010 to 1111) are not used and are invalid.
Experiment No.12
Binary Parallel Adder & Subtractor, BCD Adder using ICs
Aim:
a) To design controllable binary parallel Adder & Sub tractor using IC 7483
b) To design BCD adder using two 4-bit binary parallel adder IC 7483 and AND/OR gates
Apparatus:
Theory:
4-bit Binary Parallel Adder
IC7483 is a 4-bit full adder. It has 16 pins, out of which 4 are used as inputs A, another 4 as inputs B. The
sum is available in 4 pins. There is Carry –in, Carry-out pins.Fig15.1 shows pin diagram.
• A input -10, 8, 3, 1
• B input - 11,7, 4, 16
• Sum - 9, 6 ,2, 15
• Carry-in -13
• Carry –out – 14
• Vcc -5
• GND -12
In the controllable binary parallel adder and Subtractor circuit is controlled by the control input ‘M’. If
M=0 the parallel adder will perform the addition operation for the given two inputs and if M=1 the parallel
adder will perform the subtraction operation for the given two inputs
Full Adder:
A full Adder should be able to add 2 binary digits plus a carry from the preceding addition. Therefore it must
have three inputs. The output however is the sum and carry.
The Boolean expressions are
Sum - A B C
Carry - AB+BC+AC
The difference of A& B input.
BCD Adder:
The 4-bit binary adder IC7483 can be used to perform the addition of BCD numbers. In this, if the 4 bit sum
output is not valid BCD digit or if carry C3 is generated then decimal 6 (110 binary) is to be added to the sum
to get the correct result. Fig shows a 1 –digit BCD adder. BCD address can be cascaded to add numbers with
several digits long by connecting the carry - out of a stage to the carry –in of the next stage.
Procedure:
a) Full Adder/ Subtractor
1. Connect the circuit as shown in the fig.4. 1
2. Connect a 4-bit word (say 0101) to A input & other word (say 0110) to B.
3. Set M to 0. So that it will function as an Adder. Connect the output of Adder S to LED
display to observe the output
4. Find the output in S and carry out. The answer should be the sum of A and B inputs ( in this case
sum=1011)
5. Try for other combinations
6. Set M to 1 so that the circuit function as 4 – bit Subtarctor
7. Find the output in S & borrow out. The answer should be 0101.
8. Tabulate the results in table.
1. Connect the circuit in trainer kit as per the circuit diagram shown in fig 4. 2.
2. Apply input A and input B
3. Check the output of S0, S1, S2, S3, for different values of A and B.
4. Tabulate the readings in table
Observations:
M=0 M=1 BCD adder
S.No A B
Sum Carry Difference Borrow Sum Carry
Precautions:
1. Circuit must be connected without loose connection and with proper ground connections.
2. Make sure that power supply should not exceed more than +5V
Results:
The Arithmetic Circuits 4-bit binary parallel Adder & Sub tractors, BCD Adder are verified
practically.
Discussion Questions:
1. CRO
2. Power Supply
3. Function Generator
4. Breadboard, Transistors, Resistors and Capacitors
5. Decade Resistance Box and Connecting wires.
CIRCUIT DIAGRAM:
1 20
2 40
3 60
4 80
5 100
6 500
7 1K
8 5K
9 10K
10 40K
11 80K
12 100K
13 200K
14 400K
15 600K
16 800K
17 1M
Frequency Response Curve:
Graphs are plotted between f on X–axis and 20 log V0/ Vi on Y axis for both with and without
feedback.
Structured enquiry-2
AIM: To design an Astable multivibrator and study the output waveforms at the Base and Collector
terminals of the Transistors (collector coupled).
APPARATUS:
1. C.R.O
2. Power Supply
3. Transistors, Resistors and Capacitors
4. Connecting wires.
CIRCUIT DIAGRAM :
+Vcc
10V
4.7Kohm R1 R2 4.7Kohm
100Kohm 100Kohm
C1
C2
0.01uF
.002uF
B1 B2 2N2369
T1
2N2369 T2
OUTPUT WAVEFORMS:
Monostable Multivibrator
PROCEDURE:
1. Connect the circuit as shown in the figure 1.
2. Without applying the trigger input check d.c conditions (VBE,VCE).
3. Apply a square wave of 8v(p-p),20KHz as input form a signal generator
4. Observe Vout at the collector of transistor2 and measure pulse width (Tp) .Verify it with theoretical
value of 0.69RC.
5. Note down the waveforms at Collector and Base of transistors T1 and T2. Draw the relevant graphs
with the time scale.
OUTPUT WAVEFORMS: