Professional Documents
Culture Documents
.. UNIVERStTY
•l'•oM: ~•·•r ,o rwt .-o,ua
Fundamentals of Digital logic Lab
EXPERIMEN T N O.8
Objective: Verification of Counter circuit.
1. ~eration of a 4-Bit Binary counter using ICs 7493
2. Ring counter using ICs 7495.
3. Johnson Ring counter using !Cs 7495.
Apparatus: IC 7495, IC 7404, Patch Cords & IC Trainer Kit.
Theory: A counter is a register capable of counting number of clock pulse arriving at its clock
input. Counter represents the number of clock pulses arrived. Ring counter is a basic register
with direct feedback such that the contents of the register simply circulate around the register
when the clock is running. Here the last output that is QD in a shift register is connected back to
the serial input. A basic ring counter can be slightly modified to produce another type of shift
register counter called Johnson counter. Here complement of last output is connect:d back to
the not gate input and not gate output is connected back to serial input. A four btt Johnson
counter gives 8 state output.
PROCEDURE:
• Check all the components for their working.
• Insert the appropriate IC into the IC base.
• Make connections as shown in the circuit diagram.
• Apply clock to pin number 9 and observe the output
,,.~v
s
v,,
'~ A
8
IC
7f9!5
,o
t:,,J
CLK
0
OA OB oc OD
Fundamentals of Digital logic Lab
0 0 0 0
1 0 0 0 1
2 0 0 I 0
3 0 0 I l
4 0 1 0 0
5 0 1 0 1
6 0 1 I 0
7 0 1 I I
8 I 0 0 0
9 1 0 0 1
10 l 0 1 0
11 l 0 1 1
12 l 1 0 0
13 1 1 0 1
14 l 1 1 0
'15 l 1 l 1
- .. , . - .. .
-- -·
.. ...
ad Q, Q,
0
,,.
0 1.. o···
re ,an .... , . · o·· ·----
0
·---··· ..
0. 1
,. ..
--J·-1_f 0
·-·
0 .
..
,r
S - 0.
I 0 0
- ····-
0.
0
.
0
0
l
0
•---
Ooct Qa Qc Qo
'I ii~ 0A - -
0 0 Q
0 0
14 12 1110 9 ,. I 0 0 0
2 l J 0 0
IC lUS
l 1 t 0
's
= -
4 1
0
l
1
I
l
l
l
0 0 1 I
'
7
I
0
0
0
0
0
0
I
0 '
Result-
Theory: A Multi vibrator is a regenerative circuit with two active devices designed so that one
device conducts while the other is cut off. Multi vibrator can store binary numbers. So it can
perform essen~al ~ctions like counting of pulses, synchronizing arithmetic Operations etc.
Such type of ctrcwt ts known as FLIP-FLOP circuits. Here we are going to study all types of
FLIP-FLOPs:
I. R-S Latch
2. R-S Flip-Flop
3. D Flip-Flop
4. J-K Flip-Flop
5. T Flip-Flop
Procedure:
I. Connect the trainer kit to A.C power supply.
2. Construct an R-S latch by connecting two NANO gates as per logic diagram.
3. Connect logic sources to R, S inputs and outputs Q, Q' to logic indicators.
4. Apply various R-S combinations and observe Q, Q' outputs.
5. Verify the truth table.
6. Switch off the ac power supply.
S.R Latch- S-R (Set, Reset) latch is a digital storage device. lt can store one bit at time. lts
output depends upon the combination of inputs and previously stored bit.
An S-R latch can be constructed by using two cross couples NAND/ NOR gates. We will use
NOR gates and construct aii active high S-R latch.
Working-
!. S=O, R=O: this is the rest state of the NOR latch. This input has no effect on the output
state. Outputs (Q, Q') will remain in whatever state they were prior to the occurrence of
this input combination.
2. S=l, R=O: this will always set the latch (Q=l, Q'=0), it will remain in this state even
after S returns to 0.
3. S=O, R=l: this will always reset the latch (Q=O, Q'=l), it will remain in this state even
after R returns to 0.
4. S=l, R=l: this condition tries to set and reset the latch at the same time and produces
Q=O, Q'=0. If inputs are returned to 0 at same time, the resulting output state is
unpredictable. This input condition should not be used.
BML MUNJAL
UNIVERSITY
j f•OW Hf•~ lO HO IIJO•LO
Fundamentals of Digital logic Lab
S.R Latch Circuit Truth Table-
9
1
S R Q Q'
1 O 0 1
1 '1 O 1 °t~.aftsr 5=1 ,-R=O)
0 1 1 0
1 o_
I0-"6--Q - .1 1
I_;
1 f ;
P.J.iq:P. .$T~:
'T
· :No. 1>rmous ;
:¢.1iange . -·
. f_,,,
orbjdde
·,-r-,,r,
'.I!.
,,
-~ 0
<!
...... ,0
r
,,
BML MUN JAL
UN IVERSITY
,aoM HUl •o ,.,. no•Le
Fundamentals of Digital logic Lab
D Flip Flop using N AN O Gate. Truth Table
• 1
t =p--r-------....1..ft
' ----1· 0
D Flip flop- D flip-flop is shown in figure. This Flip-Flop is constructed from R-S Flip-Flop.
The S Input ofR-S Flip-Flop is kept as it is and R input is shorted with S input through a NOT
gate. D flip flop is also known as Delay flip flop since it generated the same output as input
when the clock pulse arrives. D flip flop is used in the construction of shift registers, counte.rs
and various other applications.
Working:
D input is 0, the output is 0.
DWhen D input is I, the output is I.
Hence, D Flip-Flop gives the same output as the input and therefore D stands for DATA.
Truth Table-
Clock T
1 1
1 0
T- Flip flop- T flip-flop is the flip-flop that satisfies only the first two and the last two
condition of the JK flip-flop. As flip-flop is called toggle flip-flop by virtue of its property that
the state stored 'toggles' on receiving a clock pulse (when T=l) goes to the opposite state. A JK
flip-flop can easily be converted into a T flip-flop by connecting its two inputs together. T flip-
flop finds applications in digital counters.
Working:
T=O=>Q(t+l)=Q
T=l =>Q(t+l)=Q'
-
BML MUNJAL
~•o.,UNIVERSITY
ftl&l •o 11,t wou 11
Fundamenlals of Digital logic Lab
,,
J.K Flip Flop using NAND Gate. Truth Table
CK
Ku-___,
Inputs Outputs
Comments
E J K Q._, Q.,:
1 0 0 Q
-Q. No change
1 0 1 0 1 Rset
1 1 0 1 0 Set
1 1 1 Q. Q. Toggle
J.K Flip flop- J-K flip-flop can be used to build a counter that counts the number of positive or
negative clock edges driving its clock input. For the purpose of counting, the J-K flip-flop is the
ideal element to use. The circuit diagram of J-K flip-flop is as shown.
Working:
When J & K both are at low state, both AND gate are disabled and so clock pulse has no
Effect i.e. Q retains its last value. When J=O & K=l upper gate is disabled so there is no way to
set the flip-flop. The only possibility is RESET. When Q is high, the power gate passes a
RESET triggers as soon as the riext positive clock edge arrives. This forces Q to become low.
When J=l & K=O, lower gate is disable so it is impossible to RESET the flip-flop. We can SET
the flip-flop, when Q is low DQ is high. Therefore the upper gate passes a SET trigger on the
next positive clock edge. This drives Q in to high state i.e. Q= 1.
GNO
7
Result:
EXPERIMEN T N O.IO
Fundamentals of Digital logic Lab
Objective: _Construction of 4 bit SISO, SIPO, PlSO, PIPO Shift Registers and verification of
their operation.
Theory: A Flip-Flop can store only one bit of data. If we want to store a group of bits, a series
of flip- ~ops ~e ~ter-connected in cascade. This cascaded group of flip-flop as a whole. is
called a Register . The fundamental operations, which make a register very useful, are its
"Shift right" and "Shift left'' operation. There are two methods for shifting binary infonnation
into a register.
1. shifting the information into a register one bit at a time in a series fashion and leads to the
development of a serial shift register.
2. Shifting all the bits into the register at a same time and leads to the development of a
Parallel shift register.
Application:Shift register is used to move the data. To move data, it must be stored. So shift
register actually stores data and moves it to left, right as per signal given to it.
Serial In: Output of one flip flop is input of another. Data is seriatly given i.e. only first flip
flop receives data; it is shifted to next flip flops.
Serial Out: Data is taken out from last flip flop
Parallel In: All flip flops are loaded simultaneously
Parallel Out: data is taken parallel by taking outputs from all flip flops at same time.
2. Shift Right Mod~: S~ift right is accomplished synchronously with the rising edg~ of_ the
clock pulse when SO 1s high and SI is low. Serial data for this mode is entered at the shift nght
data input.
3. Shift Left Mode: When SO is low and SI is high, 1 bit data shifts one position to the left
synchronously and new data is entered at the serial-left serial input at every clock pulse.
4. Inhibiting Mode: Clocking of the flip-flops is inhibited when both mode control inputs are
low.
Procedure:
I. Connect flip flops (ICs 7495) as per given diagram on the bread board.
2. Prepare circuitry using connecting wires. .
3. Apply different level logic combinations to the inputs and observe the correspondmg
Outputs.
4. Note down observed output level in corresponding observation table.
5. Switch off supply.
Circuit diagram for shift left to right/ right to left (Bi dierctional) shift.
'
t
Truth Table-
Fundamentals of Digital logic Lab
Mode ' Clock Shift SerialLeft To Mode Clock Shift serial Right To left
Right -+
+-
M==O CLK- QA QB QC QD M=l CLK- QA QB QC QD
1 2
0 1 I I 1 1
0 2 I 1 I 2 I I
0 3 1 1 1 1 3 1 I 1
0 4 1 1 1 1 1 4 I 1 I 1
L
,I
- ,. 'ii!
. q ( I,.
Truth Table
1'0 'tWI._ WOtll.L.D
Serial ,c: l
SDI (l.A.
(lB
.A. QC
& QD
C
D 749~
Clock 1/P 0
He - _ __;e~J··cu(1
::.,.. 1 __. 'v'CC
·- C: L~=;::;:
.. _.__ ~-- 6
, ....... d e ~ · - · t,_-,o DE GUD
Clock....--Mll:..
NC,,. 1
SOI QA
(· 2 QB
Parallel ,;. 3 .A. QC
IIP Data '~ 4
B QO
,..., 5 C
D 7~5
g
NCC 8 ;CLK1 1 -.>VCC
Clock 1/P (: · CLK2 ·vi::c
,•, 6
~bde (M) MODE GNO
,.or~r41Vffl'l:'0110
.,
·.o Serial Out (PISO) Fundamentals of Digital logic Lab
4) I
gUFI'/Dl=O
N C,,...1
SDI QA
.~ 2 QB
Parallel J A QC
1/P Data ·::: 4 B ClD
[ C
:~ 5 D 749~
9
N C <:>-- -8 - .· CLK1 1 ~·VCC
Clock 1/P <: . CLl<:2 \ICC
.,.. 6 7
fubde (M) . MODE GND
i ,,11 . ,.,.
B
t1NI VERSITV
C TO 11<L WitllLD
tb fable- Fundatn
ff11 entals of Digital logic Lab
'
Mode . Clock A B
M==J CLK-2 l 0
l 1
1 2
1 l
l
0
0
D
l
I
I 3 l 0
I
4 0
I 0 0 I
I
't}
' ., ,'~
·~ -- ..
'
'
&csul