Professional Documents
Culture Documents
Digital Lab Manual To Print 2 Verified
Digital Lab Manual To Print 2 Verified
IC PIN OUT
74LS00 74LS02
74LS04 74LS08
74LS10 74LS11
74LS20 74LS32
IC PIN OUT
74LS83A 74LS86
74LS151 74LS73A
74LS74A 74LS76
A Y
0 1
1 0
AND
A B Y
0 0 0
0 1 0
1 0 0
1 1 1
OR
A B Y
0 0 0
0 1 1
1 0 1
1 1 1
NAND
A B Y
0 0 1
0 1 1
1 0 1
1 1 0
NOR
A B Y
0 0 1
0 1 0
1 0 0
1 1 0
XOR
A B Y
0 0 0
0 1 1
1 0 1
1 1 0
PRE-REQUISITES
Logic functions of various gates
Truth table of various gates
HALF ADDER
Truth table & Expression Circuit Diagram
Input Output
A B S C out
0 0 0 0
0 1 1 0
1 0 1 0
1 1 0 1
Sum = 𝐴 𝐵 + 𝐴𝐵
=𝐴 ⊕ 𝐵
Carry = AB
HALF SUBTRACTOR
Truth table & Expression Circuit Diagram
Input Output
A B D Bo
0 0 0 0
0 1 1 1
1 0 1 0
1 1 0 0
Difference = 𝐴 𝐵 + 𝐴𝐵
=𝐴 ⊕ 𝐵
Borrow =𝐴𝐵
FULL ADDER
Truth table & Expression Circuit Diagram
Input Output
A B C in S C out
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
= A⊕B⊕𝐶𝑖𝑛
FULL SUBTRACTOR
Truth table & Expression Circuit Diagram
Input Output
A B C in D Bo
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
= A⊕B⊕𝐶𝑖𝑛
Half subtractor
A combinational circuit that performs the subtraction of two bits is called a half
subtractor. It has two binary inputs and two binary outputs. The output variables produce the sum
and the carry. We assign symbols A and B to the two inputs and D (for difference) and BO (for
borrow). The simplified sums of products expressions for the outputs are
Difference = 𝐴 𝐵 + 𝐴𝐵
=𝐴 ⊕ 𝐵
Borrow =𝐴𝐵
Full subtractor
A full subtractor is a combinational circuit that performs the subtraction of three bits. It
consists of three inputs and two outputs. Two of the input variables represent the two significant
bits to be subtracted. The third input represents the borrow from the previous lower significant
position. The outputs are designated by the symbols D for difference and BO for borrow. The
simplified sums of product expressions for the outputs are
Difference = A⊕B⊕𝐶𝑖𝑛
Borrow=(𝐴 ⊕ 𝐵)𝐶𝑖𝑛 +𝐴 B
PROCEDURE:
1. Verify whether the components are good or not.
2. Set up the half adder circuit and feed the input bit combinations.
3. Observe the output corresponding to input combination and enter the input in truth table.
4. Repeat the above steps for full adder circuit.
5. Set up the half subtractor circuit and feed the input bit combinations.
6. Observe the output corresponding to input combination and enter the input in truth table.
7. Repeat the above steps for full subtractor circuit.
RESULT:
The adder and subtractor circuits are set up and verified the operation with the truth table
VIVA QUESTIONS:
1. What is the difference between a half adder and full adder?
2. What is Carry Look Ahead Addition?
3. What is the difference between half subtractor and full subtractor?
4. Implement full adder and full subtractor using universal gates.
5. What are the applications of adders and subtractors?
6. Realize a full adder using two half adders.
7. Realize a full subtractors using two half subtractors.
8. Construct a circuit to add two 2 bit numbers using Half and Full adders.
4 BIT ADDER
OBSERVATION:
A=___________________B=__________________S=__________________
A=___________________B=__________________S=__________________
4 BIT SUBTRACTOR
OBSERVATION:
X=___________________Y=__________________Z=__________________
X=___________________Y=__________________Z=__________________
PRE-REQUISITES
Concept of half and full adders, parallel adders
Concept of binary addition and binary subtraction using 2’s complement method
Concept of preparing truth tables
In 4 bit subtractor, the operation is based on the 2’s complement addition for the
subtraction operation
Z= X-Y =X + (-Y). Here –Y is assumed as the 2’s complement. In order to avoid the
negative numbers in subtraction, take X>Y and discard Z5.
The addition subtraction processes are combined in a single circuit by using a mode
control. If the mode M=0, then the two 4 bit numbers will get added and if M=1, then the 2’s
complement of second number is added to the first number to perform subtraction.
M=0 X=___________________Y=__________________Z=__________________
M=1 X=___________________Y=__________________Z=__________________
M=1 X=___________________Y=__________________Z=__________________
PROCEDURE:
1. Test all components and IC packages using multimeter and digital IC tester.
2. Connect the circuit as in diagram
3. Apply two 4 bit numbers X and Y as the inputs.
4. Apply M=0 and verify the sum output at Z=X+Y.
5. Apply X and Y such that X>Y
6. Apply M=1 and verify the difference result Z = X-Y. Discard the value of Z5.
RESULT:
The four bit adder / subtractor circuit is designed and setup using IC-7483 and the
output is verified.
VIVA QUESTIONS:
1. Write down the internal operation of a parallel adder?
2. Design a subtractor to perform X-Y if X < Y.
3. How the speed of addition can be improved?
4. Explain how two bytes are added with adder ICs.
BCD ADDER
If A+B >9, then, the sum is added with 6 (0110) and the result will be 000S5 S4S3S2S1
S4 S3 S2 S1 Y
0 0 0 0 0
0 0 0 1 0
0 0 1 0 0
0 0 1 1 0
0 1 0 0 0
0 1 0 1 0
0 1 1 0 0
0 1 1 1 0
1 0 0 0 0
1 0 0 1 0
1 0 1 0 1
1 0 1 1 1
1 1 0 0 1
1 1 0 1 1
1 1 1 0 1
1 1 1 1 1
Y= CO+S4(S3+S2)
A) Y = f(A, B, C, D) = ∑m(1, 2, 7 )
Input Output
A B C in Y
0 0 0 0
0 0 1 1
0 1 0 1
0 1 1 0
1 0 0 0
1 0 1 0
1 1 0 0
1 1 1 1
B) FULL ADDER
Input Output
A B C in S C out
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
VIVA QUESTIONS:
1. Compare multiplexer with de-multiplexer based on their applications
2. Derive the Boolean expression for multiplexer and de-multiplexer.
3. Implement an 8:1 MUX using 4:1 MUXs?
SR Flip Flop
Inputs Output
Comments
S R Q n+1
0 0 Qn No change
0 1 0 Reset/clear
1 0 1 Set
1 1 X Indefinite
D Flip Flop
Inputs Output
Comments
D Q n+1
0 0
Same as input
1 1
JK Flip flop
Inputs Output
Comments
J K Q n+1
0 0 𝑄𝑛 No change
0 1 0 Reset/clear
1 0 1 Set
1 1 𝑄𝑛 Toggle
Inputs Output
Comments
J K Q n+1
0 0 𝑄𝑛 No change
0 1 0 Reset/clear
1 0 1 Set
1 1 𝑄𝑛 Toggle
T Flip Flop
Inputs Output
Comments
T Q n+1
0 𝑄𝑛 No change
1 𝑄𝑛 Toggle
In JK=flip flop, when J=K=1, the output will toggle multiple times irrespective of the
clock. This will happen when the clock applied is much higher compared to the total time delay
of the circuit. This phenomenon is called Race around Condition. By using MS JK flip flop, the
race around condition is avoided as the circuit will operate only due to the negative edge of the
clock.
D Flip Flop
It has only one input referred to as D input or delay input. The input data appears at the output
after a clock pulse applied. D flip flop can be derived from a JK flip flop by using J input as the
D input and J is inverted and fed to K input.
T Flip Flop
In T flip flop, T stands for toggle. The output toggles when a clock input is applied.ie output of
the flip flop changes state for an input pulses. T flip flop can derive from JK flip flop by shorting
J and K inputs.
PROCEDURE:
1. Test all components and IC packages using multimeter and digital IC tester.
2. Set up the flip flops using gates and verify their truth tables.
RESULT:
Various flip flops are implemented using NAND gates.
VIVA QUESTIONS:
1. How many bits can be stored in a single flip-flop?
2. Compare edge triggering and level triggering.
3. What is the advantage of Edge triggering over level triggering?
4. What is race-around condition? How can you avoid it?
5. What is the difference between Flip-Flop & latch?
6. Give examples for synchronous & asynchronous inputs?
7. Convert the J K Flip-Flop into D flip-flop and T flip-flop?
RING COUNTER
Clk Q1 Q2 Q3 Q4
0 0 0 0 0
1 1 0 0 0
2 0 1 0 0
3 0 0 1 0
4 0 0 0 1
5 1 0 0 0
PRE-REQUISITES
Concept of various shift registers
Truth tables and waveforms of register counters
COMPONENTS REQUIRED:
ICs 7473
7408
7432
7476
7474
IC trainer kit.
THEORY:
A register is a group of flip-flops that can be used to store a binary number. Shift
register accepts a binary number and shifts it. The data can be entered to the shift register either
serially or in parallel. Similarly, the output can be taken from it either in serial or in parallel.
Ring counter and Johnson counter are basically shift registers.
Ring counter
The ring counter utilizes one flip-flop for each state in its sequence. As it can be seen
from the truth table, there are four unique output states for this counter, rendering a mode 4 ring
counter. Ring counter is called a divide by N counter where N is the number of flip-flops.
Johnson counter
The modulo number of a ring counter can be doubled by making a small change in the
ring counter circuit. The Q and Q outputs of the last flip-flop are connected to the J and K inputs
of the first flip-flop respectively. This is the Johnson counter. Johnson counter is also called
twisted ring counter or divide by 2N counter.
PROCEDURE:
1. Test all IC packages using digital IC tester.
2. Connect the circuit as per the circuit
3. Apply clock pulses of frequency 1 Hz or provide clock by mono pulser
JOHNSON COUNTER
Clk Q1 Q2 Q3 Q4
0 0 0 0 0
1 1 0 0 0
2 1 1 0 0
3 1 1 1 0
4 1 1 1 1
5 0 1 1 1
6 0 0 1 1
7 0 0 0 1
8 0 0 0 0
Shift Register:
1. Clear all flip flops. And keep clear pin at high afterwards
2. Give serial inputs to the first flip flop
3. Observe the propagation of data through the proceeding flip flops
4. Get the serial output from the last flip flop
Ring Counter:
1. Clear all flip flops. And keep clear pin at high afterwards
2. Give separate preset for the first flip flop. Keep it low for a small duration so that the
first flip flop output becomes 1. Immediately return the preset to high.
3. Verify the output as per the truth table.
Johnson Counter:
1. Clear all flip flops. And keep clear pin at high afterwards
2. Observe the output as per the truth table.
RESULT:
Designed and setup 4 bit serial in serial out shift register, 4 bit Ring and Johnson.
VIVA QUESTIONS:
1. Differentiate between shift registers and counters.
2. Give example of a serial in serial out shift register IC.
3. How can a serial in parallel out register be used as a serial in parallel out register?
4. Give an application of a shift register.
5. How can a shift register be used to count a binary number by 2?
6. How can a shift register be used to divide a binary number by 2?
7. What is the delay introduced by a SISO shift register to an applied digital signal?
8. What is the basic difference between a Ring counter and Johnson counters?
9. What is a twisted ring counter?
10. How many states are there in an N stage Johnson counter?
11. How many states are there in an N stage Ring counter?
4 BIT UP COUNTER
Clk Q4 Q3 Q2 Q1
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
7 0 1 1 1
8 1 0 0 0
9 1 0 0 1
10 1 0 1 0
11 1 0 1 1
12 1 1 0 0
13 1 1 0 1
14 1 1 1 0
15 1 1 1 1
16 0 0 0 0
Clk Q4 Q3 Q2 Q1
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
7 0 1 1 1
8 1 0 0 0
9 1 0 0 1
10 0 0 0 0
4 BIT UP COUNTER
QUESTIONS:
1. What are synchronous counters?
2. What are the advantages of synchronous counters?
3. What is an excitation table?
4. Write the excitation table for D, T FF
5. Design mod-5 synchronous counter using T FF
4 BIT UP COUNTER
Clk Q3 Q2 Q1 Q0
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
7 0 1 1 1
8 1 0 0 0
9 1 0 0 1
10 1 0 1 0
11 1 0 1 1
12 1 1 0 0
13 1 1 0 1
14 1 1 1 0
15 1 1 1 1
16 0 0 0 0
DECADE COUNTER
Clk Q3 Q2 Q1 Q0
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
7 0 1 1 1
8 1 0 0 0
9 1 0 0 1
10 0 0 0 0
SEQUENCE GENERATOR
Q2 Q1 Q0 Y
0 0 0 1
0 0 1 0
0 1 0 1
0 1 1 1
1 0 0 0
1 0 1 X
1 1 0 X
1 1 1 X Y= Q1+𝑄2 𝑄0
Inputs Output
Comments
J K Q n+1
0 0 Qn No change
0 1 0 Reset/clear
1 0 1 Set
1 1 Q’ n Toggle
AIM:
To design and simulate
Adder/Subtractor circuits
JK Master Slave flip-flops using gates
Shift register
UP/DOWN Counter
Arbitrary Sequence Generator
THEORY:
Electronic circuit simulation uses mathematical models to replicate the behavior of an
actual electronic device or circuit. Simulation software allows for modeling of circuit operation
and is an invaluable analysis tool. Simulating a circuit’s behavior before actually building it can
greatly improve design efficiency by making faulty designs known as such, and providing insight
into the behavior of electronics circuit designs.
Circuit Wizard is a revolutionary new system that combines circuit design, PCB design,
simulation and CAD/CAM in one complete package. Circuit Wizard provides us with all the
tools necessary to produce an electronics project from start to finish – even including on-screen
testing of the PCB prior to construction.
PROCEDURE:
1. Open circuit wizard.
2. Select components from gallery
3. Arrange and connect components
4. Apply input and connect output components
5. Run the simulation
6. Verify truth tables
RESULT:
The outputs and waveform were observed and compared with the designed theoretical
results
VIVA QUESTIONS:
1. Simulate a code converter using circuit wizard.
2. Explain how the asynchronous inputs are used in simulation
ASTABLE MULTIVIBRATOR
Design:
Take VCC = 10 V and t c=1 ms and t d = 0.5 ms
We have t c =0.69 R1 + R 2 C and t d =0.69R A C
The R1 and R 2 should be in the range of 1K to 10 K to limit collector current of internal resistor
Take R1 = R 2 = 6.8𝐾
Let C=0.1μF, 𝐶𝑖 =0.01 μF
MONOSTABLE MULTIVIBRATOR
Design:
T=1.1RC
Then C=0.1 μF
completing one charge and discharge cycle of the output is therefore given as: t1 = 0.693
(R1+R2)C, t2 = 0.693 R2C, T = t1 + t2
PROCEDURE:
1. Connect the components/equipment as shown in the circuit diagram.
2. Switch ON the power supply.
3. Connect function generator at the trigger input.
4. Connect channel-1 of CRO to the trigger input and channel-2 of CRO to the output (Pin
3).
5. Using Function Generator, apply 1 KHz square wave with amplitude of approx. equal to 9
Vpp at the trigger input.
6. Observe the output voltage with respect to input and note down the pulse width and
amplitude.
7. Now connect channel-2 of CRO across capacitor and observe the voltage across the
capacitor and note it down.
8. Compare the practical pulse width noted in the step above with its theoretical value
(tp=1.1 RC)
RESULT:
The waveform was traced and compared with the designed theoretical one.
Viva questions:
1. What is the other name for monostable multivibrator (MSMV)?
2. When MSMV is in stable state, what is the output level?
3. Why trigger is required in the case of MSMV?
4. Which type of trigger pulse is required for MSMV?
5. What is the formula for the output pulse width of MSMV?
6. How long MSMV stays in unstable state?
7. What are the different types of multivibrator circuits?
8. What is the disadvantage of an astable multivibrator?
9. How does a monostable multivibrator work in terms of the astable multivibrator?
𝑌0 = 𝑀𝐷2 ⊕ 𝐷1 ⊕ 𝐷0 1 0 1 1 0 1 0
1 1 0 0 1 1 1
1 1 0 1 1 1 0
1 1 1 0 1 0 0
1 1 1 1 1 0 1
𝑌1 = 𝐷1 ⊕ 𝐷0 𝑌2 = 𝐷2