Hardware Lab-I: (CS-217) Instruction Manual
Hardware Lab-I: (CS-217) Instruction Manual
Hardware Lab-I: (CS-217) Instruction Manual
(CS-217)
INSTRUCTION MANUAL
1. Verification of the truth tables of TTL gates, e. g., 7400, 7402,7404, 7408,
7432, 7486.
2. Design, fabrication and testing of low frequency TTL clocks using NAND
gates.
3. Verification of the truth table of the Multiplexer 74150.
4. Verification of the truth table of the De-Multiplexer 74154.
5. Design and verification of the truth tables of
(a) half adder circuits
(b) full adder circuits
using gates 7483.
6. (a)Design and test of an SR flip flop using Nor/Nand gates.
(b)Verify the truth table of a J-K flip flop.(7476)
(c)Verify the truth table of a D-flip flop (7474) and study its operation in the
toggle and asynchronous modes.
7. (a) To study the operation of 2 bit and 4 bit asynchronous counters.
(b) To study the operation of 2 bit and 4 bit synchronous counters.
8. To study the operation of 2 bit and 4 bit Johnson counters.
EXPERIMENT NO.1
AIM: Verification of truth table of TTL gate e.g. 7400, 7402, 7408, 7432, 7486, 7404.
EQUIPMENT: IC:-7400, 7402, 7432, 7486, 7404; Logic trainer board; Binary
Switches.
THEORY: The logic gate is a circuit which has two or more inputs and only one output
signal. Gates are digital circuits because the signals are either high or low. OR, NOR,
AND are basic gates. NAND and NOR are universal gates. The truth table is the table
which shows all the output possibilities for all input combinations for a logic circuit.
AND: Two or more inputs and only one output is in AND gate. The input must be high to
obtain high output.
Truth Table:
A B Y=A.B
0 0 0
0 1 0
1 0 0
1 1 1
OR: Two or more inputs and only one output are in OR g~o get a high output any
one of all the input may be high.
Truth Table:
A B Y=A.B
0 0 0
0 1 0
1 0 0
1 1 1
NOT: One input and only one output is in NOT gate. The output state is always the
inverted of input.
Truth Table:
A Y=A’
0 1
1 0
NAND: NAND gate is combination of AND gate and NOT gate.
Truth Table:
A B Y=A.B’
0 0 1
0 1 1
1 0 1
1 1 0
Truth Table:
A B Y=A+B’
0 0 1
0 1 0
1 0 0
1 1 0
PROCEDURE:
1. First of all IC 7400 was inverted on IC base of logic trainer board.
2. 5V supply was given to pin14 and ground was connected to pin7.
3. Input A&B was given to pinl and pin2 using binary switches.
4. Output pin3 was connected to LED.
5. Then the trainer was switched on.
6. Output of LED was observed and noted corresponding to input values.
7. .Different combinations of input were fed and output was noted.
8. The same thing is repeated for all IC's.
RESULTS:
PRECAUTIONS:
1. Reverse connection to pin14 and pin7 of an IC can cause error.
2 .Output of LED should be written carefully corresponding to respective input.
CONCLUSION: Output of IC 's were composed with truth tables of different gates and
it was concluded that 7400 is an IC of NAND gate, 7402 is an IC of NOR gate, 7404 is
an IC of NOT gate, 7408 is an IC of AND gate, 7432 is an IC of OR gate AND 7486 IS
an IC of XOR gate.
EXPERIMENT NO.2
AIM:Design, fabrication and testing of low frequency TTL clocks using NAND gates.
EQUIPMENT:-IC 7400,Connecting nobs.
THEORY: Transistor–Transistor Logic (TTL) is a class of digital circuits built from
bipolar junction transistors(BJT), and resistors. It is called transistor–transistor logic
because both the logic gating function and the amplifying function are performed by
transistors .Integrated circuits (IC) family used in many applications such as computers,
industrial controls, test equipment and instrumentation, consumer electronics etc.
Because of the wide use of this logic family, signal inputs and outputs of electronic
equipment may be called "TTL" inputs or outputs, signifying compatibility with the
voltage levels used.
TTL integrated circuits are examples of small-scale to large-scale integration.
Each "chip" contains the equivalent of a few dozen to a few hundred transistors,
contrasting with early very-large-scale integration devices that had the equivalent of up
to 10,000 transistors, and modern microprocessors that are equivalent to tens of millions
of transistors.
Low-power TTL, which traded switching speed (33ns) for a reduction in power
consumption (1mW). TTL IC s use a relatively small amount of power individually,but in
moderate to large systems,using many IC packages power drain can very quickly add up.
To alleviate this problem,special Low power TTL IC s are sometimes used. These low
power units are numbered in same way as regular TTL devices ,but with L added in the
middle to indicates to low power status requires only tenth part of power as much require
for standard TTL version.
In low power TTL gate,the resistor values are higher than in the standard gate to reduce
power dissipation,but the propagation delay is increased.
TTL versions and Characteristics:
Name Abbreviation Propagation Power
delay (ns) dissipation(mW)
Standard TTL TTL 10 10
Low power TTL LTTL 33 1
High speed TTL HTTL 6 22
Schottky TTL STTL 3 19
EXPERIMENT NO.3
Theory:Multiplex means many input and one output. A multiplexer is a circuit with
many data inputs but only one output. By applying control signals (called select or
address lines), you can steer any input to the output. Multiplexers are available as
for 2: 1, 4: 1, 8:1 and 16:1 multiplexed operations.
CIRCUIT DIAGRAM:
PROCEDURE:
1. Give high/low inputs to the select lines with the help of binary switches
2. Give high input to the corresponding selected data line.
3. Observe the output from LED.
4. Note down in the observation table.
5. Repeat the steps for all combinations of address lines.
OBSERVATIONS:
D C B A Y
0 0 0 0 Eo
0 0 0 1 E1
0 0 1 0 E2
0 0 1 1 E3
0 1 0 0 E4
0 1 0 1 E5
0 1 1 0 E6
0 1 1 1 E7
1 0 0 0 E8
1 0 0 1 E9
1 0 1 0 E10
1 0 1 1 E11
1 1 0 0 E12
1 1 0 1 E13
1 1 1 0 E14
1 1 1 1 E15
RESULT:
Truth table of IC 74150 is verified.
PRECAUTIONS.
1. Output of LED should be written carefully corresponding to the respective inputs.
2. Connections should not be loose,
EXPERIMENT NO.4
BLOCK DIAGRAM:
-'-"
PROCEDURE:
1. Strobe is active low in this IC. F:irstof all give high signal to the strobe and
observe the output.
2. Give low signal to the strobe and hence activate IC
3. Give inputs to the two input lines with the help of binary switches
4. Observe the output from LED.
5. Record the readings in a table.
6. Repeat the procedure for all possible combinations of the inputs.
OBSERVATIONS:
G S1 So Yo Y1 Y2 Y3
H * * H H H H
L 0 0 L H H H
L 0 1
L 1 0
L 1 1
RESULT:
Truth table of IC 74154 is verified.
PRECAUTIONS:
1. Output of LED should be written carefully corresponding to the respective
inputs.
2. Connections should not be loose.
EXPERIMENT NO. 5(a)
EQUIPMENT: IC 7483, 7408, 7486, Logic trainer board and binary switches.
THEORY: Half adder can add two bit at a time. It is seen that binary addition generates
a sum and carry. The rules for addition are tabulated in the truth table.
The truth table leads to the following logic equations for sum(S) and carry (C).
S=AXORB
C=A.B
TRUTH TABLE
A B S C
0 0 0 0
0 1 1 0
1 0 1 0
1 1 0 1
Half adder can not accept a carry from a previous addition, hence use of half added is
limited.
LOGIC CIRCUIT:
PROCEDCURE:.
1. To verify truth table using AND & XOR gates setup the circuit as shown in
diagram.
2. Give different combinations of inputs to A & B and note down outputs
corresponding to Carry and Sum.
3. To verify truth table using IC 7483, give 5V supply to pin5 and ground to pinI2.
4. Give different combinations of inputs to pinl0 & pin11 only.
5. Note down the output from pin9 (Sum) and pin6 (Carry) and make observation
table. Also make Al and BI zero.
RESULT: Output of XOR gate and pin9 of lC 7483 is same as that of TT for Sum and
output of AND gate and pin6 of lC 7483 is same that of TT for Carry.
CONCLUSION: Half adder can be realized using either AND or XOR gate or IC 748l
EXPERIMENT NO.5(b)
EQUIPMENT: IC 7483, 7400, 7486, Logic Trainer Board and Binary switches.
THEORY: Full adder is used to add three or more bits. The addition is complex. Any
process to add multi bit numbers should have provision to accept carries from an addition
of bits to the right & to pass carries to the left. .
Sum (S) =AXORB XORC
Carry(C) = AB+AC+BC
TRUTH TABLE :
Z X Y S C
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
Binary adder circuit requires combination of half adder & full adder. Four bit binary
adder circuit has been given in figure.
PROCEDURE:
1. To verify truth table using NAND and XOR gates, setup the circuit as shown
in circuit diagram.
2. Give different combinations of inputs to A, B, C and note down the output
corresponding to Carry and Sum.
3. Give different combinations of four bit input to pin 1,3,8,10 and pin 16,4,7,11
corresponding to A3,A2,Al,AO,B3,B2,Bl,BO respectively.
4. Note down the output from pins 15,2,6,9 corresponding to S3,S2,S1,S0and
pin14 corresponding to Sum and Carry.
RESULT: The truth table of full adder has been verified using XOR & NAND gates and
IC 7483.
CONCLUSION: Full adder is the fundamental building block of 4-bit binary adder(IC
7483).
EXPERIMENT No.6(a)
THEORY:
The SR ff is the most basic of all ff s and can be realized using NOR/NAND gates.
Figure1 shows the RS ff in NOR logic whereas figure2 shows the RS ff in NAND logic.
In NOR logic, low R and low S results in inactive state. Low R and high S results in set
state, high R and low S results in reset state,whereas both Rand S high results in invalid
state. NOR gate gives output one if all the inputs are low. The results are summarized in
following truth table.
CIRCUIT DIAGRAM:
TRUTH TABLE :
S R Q
0 0 No change
0 1 0
1 0 1
1 1 ?
NAND gate gives output zero iff all the inputs are high. In NAND,logic low Rand S
results in forbidden state, low S and high R results in set state. Low R and high S results
in reset state whereas both Rand S high results in no change in state.
TRUTH TABLE:
S R Q
0 0 ?
0 1 0
1 0 1
1 1 No Change
PROCEDURE:
1. Insert IC 7400 on IC base of logic trainer board.
2. Give +5V supply to pin 14 and ground pin 7.
3. Form RS ff as shown in fig.2.
4. Give binary inputs and observe outputs.
5. Note down the outputs in a table.
6. Insert IC 7402 on IC base of logic trainer board.
7. Give +5V supply to pin 14 and ground pin 7.
8. Form RS ff as shown in fig.1.
9. Give binary inputs and observe outputs.
10.Note down the outputs in a table.
OBSERVATIONS:
R S NOR NAND
LOGIC O/P LOGIC O/P
0 0
0 1
1 0
1 1
PRECAUTIONS:
1. Output should be written carefully corresponding to the respective inputs.
2. Connections should not be loose.
EXPERIMENT NO.6(b)
SYMBOL:
PIN OUT OF IC 7476:
PROCEDURE:
1. Connect the Vcc to pin5 & ground to pin 13 of the IC.
2. Connect the preset terminal to "a" and clear terminal to "1" & observe the output.
3. Connect the preset to "1" and clear terminal to "a" & observe the output.
4. Connect the preset and clear terminals to "1".Apply clock to the clock terminal.
5. Observe the output for all possible combinations of inputs to J & K Input terminals.
6. Note down all the observations in the table.
OBSERVATIONS:
RESULT:
Slave ff just copies the action of master ft. M-S JK ff is capable of solving
the race problem of SR FF.
PRECAUTIONS:
1. Output should be written carefully corresponding to the respective inputs.
2. Connections should not be loose.
EXPERIMENT NO. 6(c)
AIM: Verify the truth table of aD ff (7474) & study its operation in the
toggle and asynchronous modes.
TRUTH TABLE:
In asynchronous mode, preset and clear (called asynchronous inputs) are used. Applying
'0' to preset will force the O/P to be 1 even if 0 I/P is '0'. Similarly applying '0' to clear
will force the O/P to be '0' irrespective of the 0 I/P.
PROCEDURE:
1. Give power supply to IC chip (i.e. Vcc to pin14 & ground to pin?).
2. To verify truth table of 0 ff, apply i/p to 01 (pin2). Initially don't give clock
and observe the output from pin5.
3. Apply clock to pin3 & observe the output for different inputs. t.
4. To study asynchronous mode operation, apply different inputs to preset
& clear terminals (pin4 & 1 respectively) and observe the output from
pin5.
5. Note down all the observations in the table
OBSERVATIONS:
Pr Clr Clk D Q
I/P O/P
0 0 * *
0 1 * *
1 0 * *
1 1 0 *
1 1 1 0
1 1 1 1
RESULT:
Same input appear at output after some time i.e. when active clock appears, hence the
name Delay (D) ff. Race problem of SR ft has been solved in D.
PRECAUTIONS:
1. Output should be written carefully corresponding to the respective inputs.
2. Connections should not be loose.
EXPERIMENT NO.7(a)
Asynchronous: The events do not have a fixed time relationship with each other and do
not occur at the same time .The clock pulse fed into FF0 is rippled through the other
counters after propagation delays, like a ripple on water, hence the name Ripple counter.
The external clock is connected to the clock input of the first flip-flop (FF0) only. So,
FF0 changes state at the falling edge of each clock pulse, but FF1 changes only when
triggered by the falling edge of the Q output of FF0. Because of the inherent propagation
delay through a flip-flop, the transition of the input clock pulse and a transition of the
Q output of FF0 can never occur at exactly the same time. Therefore, the flip-flops
cannot be triggered simultaneously, producing an asynchronous operation.
The 2-bit ripple counter circuit above has four different states, each one
corresponding to a count value. Similarly, a counter with n flip flops can have 2 to the
power n states. The number of states in a counter is known as its mod (modulo) number.
Thus a 2-bit counter is a mod-4 counter.
TRUTH TABLE:
Count Q1 Qo
0 0 0
1 0 1
2 1 0
3 1 1
A 4 bit ripple counter is shown in the figure. It consists of 4 edge triggered JK flip flop.
As indicated by small circles at the CLK input of FF, the triggering occurs when CLK
input gets a negative edge. Q0 is the least significant bit(LSB) and Q3 is the most
significant bit(MSB). The FF’s are connected in series. The Q0 output is connected to
CLK terminal of second FF. The Q1 output is connected to CLK terminal of third FF and
so on. By adding more FF’s, a counter of any length can be built. It is known as a ripple
counter because the carry moves through the FF. Initially, CLR is made low and all the
FF’s reset giving an output Q=0000.When CLR becomes high, the counter is ready to
start. As LSB receives its clock pulse, its output changes from 0 to 1and the total output
Q=0001.When second CLK pulse arrives,Q0 resets and carries (i.e., from 0 to 1 and
,second FF receive CLK input). Now the output is Q=0010.The third CLK changes Q0
to 1 giving a total output Q=0011.The fourth CLK pulse causes Q0 to reset and carry and
Q1 also resets and carries giving a total output Q=0100 and the process is goes on. The
number of output states of a counter is known as modulus or mod. A ripple counter with
4 FF’s can count from 0 to 15 and known as mod-16 counter.
CIRCUIT DIAGRAM:
TRUTH TABLE: – 4 -BIT RIPPLE COUNTER
Count 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
PROCEDURE:
1.Insert IC in the IC base of logic trainer board and construct the circuit.
2.Clear the output to 0000.
3.Apply clock pulses using clock generator. Observe the LEDs.
EXPERIMENT NO. 7(b)
THEORY:Synchronous Counters
In synchronous counters, the clock inputs of all the flip-flops are connected together and
are triggered by the input pulses. Thus, all the flip-flops change state simultaneously (in
parallel).
FF1 FF0
0 0
0 1
1 0
1 1
In this counters, the clock inputs of all the flip-flops are connected together and are
triggered by the input pulses. Thus, all the flip-flops change state simultaneously (in
parallel).JK flip flops are used.
4-BIT SYNCHRONOUS BINARY COUNTER AND ITS CLOCK PULSE
PROCEDURE:
1.Insert IC in the IC base of logic trainer board and construct the circuit.
2.Clear the output to 0000.
3.Apply clock pulses using clock generator. Observe the LEDs.
EXPERIMENTNO.8
EQUIPMENT: Johnson counter, Bounce less pulse generation,Set of patch chords &
manual.
.
JOHNSON COUNTER:
TRUTH TABLE:
A B C D Count
0 0 0 0 0
1 0 0 0 1
1 1 0 0 2
1 1 1 0 3
1 1 1 1 4
0 1 1 1 5
0 0 1 1 6
0 0 1 1 7
PROCEDURE:
1. Switch 'ON' the experimental kit.
2. Connect the monopluse output to the clock input of Johnson counter.
3. Reset the counter with reset switch.
4. Observe the counter outputs and verify the truth table.