DEC Lab Manual
DEC Lab Manual
a
1 Working of 74153 IC- Dual 4 X 1 Multiplexer,
74139 IC- Dual 1 X 4 De-multiplexer
n
7485 – 4-bit
m
i
5
8) using 7476 ICs. The timing waveforms on CRO. Different Mod
u
values
r
e
(N ≤ 16). Timing waveforms on CRO. Different Mod values.
u
The DEC lab is to be evaluated for 15 marks which will be added to the IA marks of the theory
to generate the final IA marks of the integrated course.
⮚ Lab marks is for 15
∙ Each student should complete all the experiments listed under preliminary
experiments.
∙ The duration fixed for completing the preliminary experiments is 4 lab sessions.
∙ 6 lab sessions are reserved for completing the open ended experiments. ∙ The list
of open ended design problems will be announced on notice board. ∙ All the results
and observations must be documented in the observation / record book.
Dr.HRB, DEC Course coordinator
JDR and HVM Page 1
ECE department, BMSCE Digital Electronics Lab (15ES3GCDEC) III semester, ECE
Introductory experiment
Aim: (i) Realization of parallel adder / subtractor using 7483 ( 4 bits parallel adder) chip.
(ii) BCD to Ex-3 code conversion and Ex-3 to BCD code conversion. ( i ) Parallel adder /
subtractor using 7483
Eg : 1) A4A3A2A1 = 0111
B4B3B2B1 = 0110
Steps:
2. If an end-around carry occurs , add it to the least significant digit of the result obtained in
step 1 .The final result is +ve .
1. If there is no end –around carry, take 1’s complement of the result obtained in step1 .
The result is -ve .
Procedure :
1. Keep M = 1.,Cin = 0.
2. Apply A & B.
3. Verify the result on S4S3S2S1.and Cout.
S4S3S2S1 = 1001 , Cout = 0 EAC = 0 .Therefore the result is –ve and is in 1”s
3. If there is no end –around carry, take 2’s complement of the result obtained in step1 and
place a -ve sign in front.
Procedure :
1. Keep M = 1, . & Cin =1
2. Apply A & B.
3. Verify the result on S4S3S2S1.
S4S3S2S1 = 1010 , Cout = 0 EAC = 0 .Therefore the result is –ve and is in 2”s
complement form
ii) BCD to EX-3 conversion using 7483 IC : BCD to EX-3 number is obtained by adding 3 to
BCD number.
1. Set A to a BCD number (ie., A can vary from 0000 to 1001) and set B = 0011 2
Observe Ex-3 code of A on E4E3E2E1. and verify the truth table as shown below.
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
Procedure:
1. Apply BCD number on A lines.
2. Set B input to 0011.
3. Mode control M = 0 & Cin = 0.
4. Observe Ex-3 code on the sum lines.
5. Verify the truth table .
iii) EX-3 to BCD number: If 3 is subtracted from EX- 3 code we get BCD code. 2’s
complement method of subtraction can be used.
Experiment No.1
Aim: MUX / DEMUX , use of 74153, 74139 for arithmetic circuits and code conversion.
74153N
DUAL 4 X 1 mux
a0 a1 a2 a3 b0 b1 b2
b3 s0 s1 E1 E2
6
5
4
3
10111213142
1
15
1C 0 1C 1 1C 2 1C 3 2C 0 2C 1 2C 2
2C 3 A
B
~1 G ~2 G
1 Y7 2 Y9
Y1 Y2
PS: Pin no 16 is Vcc and pin 8 is ground for this IC
E1 is enable input for MUX-1 and E2 is enable input for MUX-2.( both are active
low) S0,S1 are select lines common to both multiplexers.
a0-a3 = inputs of MUX-1 ,Y1 = output of MUX-1.
b0-b3 = inputs of MUX-2, Y2 = output of MUX-2.
a0 a1 a2 a3
1 0 0 0 0 X X X 0
0 0 1 X X X 1
1 0 0 1 X 0 X X 0
0 1 X 1 X X 1
1 0 1 0 X X 0 X 0
1 0 X X 1 X 1
1 0 1 1 X X X 0 0
1 1 X X X 1 1
Procedure:
1. Refer the pin details of 74153 and make the connections as shown in the fig. 2. Data
inputs ,enable inputs and select inputs are connected to the toggle switches and outputs
are connected to LEDs.
3. Verify the truth table.
15 ~1G ~2G
1
1A 74139D
2A
1Y0 1Y1 1Y2 1Y3 2Y0 2Y1 2Y2 2Y3 6 12 11 10 9
4 7
5
74139 can also be used as a 2 : 4 decoder by keeping Do = 0 and S1 ,S2 as data inputs. It can be
constructed using NAND
gates only. 0 1 1 1
Select inputs Data input
1 0 0 1
S1 S0 D0 Y3
1 0 1 1
0 0 0 1
1 1 0 0
0 0 1 1
1 1 1 1
0 1 0 1
Dr.HRB, DEC Course coordinator
JDR and HVM Page 8
ECE department, BMSCE Digital Electronics Lab (15ES3GCDEC) III semester, ECE
Experiment No.2
Half adder :
Procedure : 1.Ground the two enable pins .
2. Take S1 as A input and S2 as B input.
3. Inputs of MUX1 take the Sum values and those of MUX2 take the carry values.
Circuit diagram (S1 and S2 are common to both MUX1 and MUX2)
B
INPUTS ~G
SUM Carry
INPUTS
A B CDr.HRB, DEC Course
A B SUM coordinator
(S) 0 0 0logic 0
0 0 1logic 1
0 0
0 1 0
A
0 1
0 1 1
B
1 0 Y
D0D1
1 0 0DD 23
1 1 A
1 0 1B
~G
1 1 0Y
D0D1
1 1 1A
D3
JDR and HVM Page 9
ECE department, BMSCE Digital Electronics Lab (15ES3GCDEC) III semester, ECE
D0D1D2D3 B
cin 12 ~G sum
A
D0D1D2D3 YY
A
A
B
B
~G
SUM = Σm(1,2,4,7,)
CARRY = Σm(3,5,6,7)
Procedure : 1.Ground the two enable pins in order to enable the 74153. 2.
Connect S1 as A input and S2 as B input.
3. Complete the circuit as shown in the fig and verify the truth table of the
Full adder.
Learn Code converters using 74153 and 74139. Eg.Binary to Gray code converter.
Dr.HRB, DEC Course coordinator
JDR and HVM Page 10
ECE department, BMSCE Digital Electronics Lab (15ES3GCDEC) III semester, ECE
Experiment No. 3
Aim: Realization of one/two bit comparator and study of 7485 magnitude comparator.
9
1 081 2
A0 B0 A< B A = B A > B
3
0 0 0 1 0 ( A > B) = A0B0
0 1 1 0 0
1 0 0 0 1
1 1 0 1 0
A0 B0
54
1 31 1
A<B
1 4 9
1 08 A=B
2 5
12
36
1
1 31 1 23
A>B
The above circuit can also be constructed using basic gates and Ex-Or gates as shown in the fig
below.
A0 B0
1
34
1 3
A0 B0
2 4
A B 56
3
2
6 AB
5 AB
74LS85
1 5A 3 1 3A 2 1 2A 1 1 Data inputs C
A&B
0A 0 1B 3 1 4B 2 1 1B 1 A
Procedure: Connections are made using the pin details of 7485 I.C. Connect A>B
and A<B cascading inputs to the logic 0 and A=B input to logci 1 level Connect the
inputs A and B ,the outputs to LEDs and verify the truth table.
Experiment No. 4
Aim: Use of a) decoder chip to drive LED/LCD display
and b) Priority encoder
ICs required : 7446 (decoder / driver)
MAN72
a) Priority Encoder –
74147 - Decimal to BCD encoder
74148 - Octal to Binary encoder
10 9 5 ~EI
8 7
74147N 74148N
74147 is a 9 to 4 lines priority encoder. It accepts data from nine active –low inputs and
provides a BCD output on four active-low outputs. A priority is assigned to each input so that
when two or more inputs are simultaneously active(logic 0 ) ,the input having highest priority is
represented on the output. Input 9 (pin 10 ) has the highest priority.
When all inputs are high then four outputs are high which is nothing but
‘zero’ Truth table of 74147:
Active-low decimal inputs Active –low BCD outputs
1 2 3 4 5 6 7 8 9 D C B A
1 1 1 1 1 1 1 1 1 1 1 1 1
0 1 1 1 1 1 1 1 1 1 1 1 0
X 0 1 1 1 1 1 1 1 1 1 0 1
X X 0 1 1 1 1 1 1 1 1 0 0
X X X 0 1 1 1 1 1 1 0 1 1
X X X X 0 1 1 1 1 1 0 1 0
X X X X X 0 1 1 1 1 0 0 1
X X X X X X 0 1 1 1 0 0 0
X X X X X X X 0 1 0 1 1 1
X X X X X X X X 0 0 1 1 0
Procedure: Connect inputs to toggle switches and outputs to LEDs. Verify the truth table.
Dr.HRB, DEC Course coordinator
JDR and HVM Page 14
ECE department, BMSCE Digital Electronics Lab (15ES3GCDEC) III semester, ECE
74148 is an octal to binary encoder. Like 74147 this also has active low inputs and active low
outputs. In addition an enable input ( EI – pin 5) and an enable output( EO- pin 15 ) are provided
for cascading purposes. The enable input must be asserted low state to enable the chip while the
enable output goes to low state only when all its inputs are inactive (i.e., all high). Also there is
one more output namely GS ( pin 14 – SELECT) which goes low whenever one of it’s inputs is
active(i.e., low state).
Truth table of 74148:
EI Active –low inputs Active-low outputs
0 1 2 3 4 5 6 7 C B A G EO
S
1 X X X X X X X X 1 1 1 1 1
0 0 1 1 1 1 1 1 1 1 1 1 0 1
0 X 0 1 1 1 1 1 1 1 1 0 0 1
0 X X 0 1 1 1 1 1 1 0 1 0 1
0 X X X 0 1 1 1 1 1 0 0 0 1
0 X X X X 0 1 1 1 0 1 1 0 1
0 X X X X X 0 1 1 0 1 0 0 1
0 X X X X X X 0 1 0 0 1 0 1
0 X X X X X X X 0 0 0 0 0 1
0 1 1 1 1 1 1 1 1 1 1 1 1 0
Truth table verification of J-K Master Slave Flip Flop, T-type FF and D – type FF.
0 0 0 1 0 1 No change
1 0 1 0
0 1 0 1 0 1 Reset
1 0 0 1
1 0 0 1 1 0 Set
1 0 1 0
1 1 0 1 1 0 Toggles
1 0 0 1
7476 I.C is a dual J-K FF having preset and clear inputs. Refer the pin details of 7476 and
construct T- FF and D- FF .
Verify the truth tables of each circuit.
~1CLR ~2CLR
ii)T-type FF using MS JK FF 0 X Qn
0 Qn
pr
1 Qn
SET
Inputs T Qn+1
clk
K ~Q
T clk Q
J
RESET
cr
iii) D-type FF using MS JK FF
pr
clk
SET
Inputs D Qn+1
clk
0 X Qn
0 0
1 1
Q
K
12 ~Q
RESET
cr
Procedure: 1. Connections are made as shown in figs.
2. Truth tables of JK-FF, D-FF and T-FF are verified.
Experiment No 5
Asynchronous counters using 7476 JK Flip flops
Aim: Realization of 3 bit Asynchronous counters as a sequential circuit and mod-N counter
design.
Preset
Logic 1
Connections: 1.J and K inputs are shorted together and both are kept at logic 1.
2.When pr = 1, clr = 0, counter is cleared. Q0 = Q1 = Q2 = 0.
3.When pr = 0, clr = 1, counter is preset. Q0 = Q1 = Q2 = 1. 4. Keep pr = 1,
clr = 1, to put the counter in count mode.
Truth table :
Clock Q2 Q1 Q0
inputs
0 0 0 0
1 0 0 1
2 0 1 0
3 0 1 1
4 1 0 0
5 1 0 1
6 1 1 0
7 1 1 1
8 0 0 0
The waveforms at the outputs of the counter can be seen on CRO by applying a
clock signal of frequency 1khz and above.The waveforms are as shown in the
fig.
0 1 1 1
1 To Clear input
Q23
Q1 2
p r(LSB)
Q0 Q1
Q2
LSBMSB 1 2
S ET Q J Q 4 J
J S ET S ET
1 31 1
Q
3
1
2
9
1 08
~Q ~Q 6 ~Q
FF0 FF1 FF2
R ES E T 45 6 12 3 R ES E T K
M K
clr 12 5
R ES E T K
The above circuit can be converted into a MOD N counter using suitable feedback to CLR
input as explained in the previous section.
Dr.HRB, DEC Course coordinator
JDR and HVM Page 20
ECE department, BMSCE Digital Electronics Lab (15ES3GCDEC) III semester, ECE
Experiment No 6
Asynchronous counters ICs
7490 is a decade counter ( BCD counter or a Mod-10 counter). It contains a mod-2 and mod-5
counter which can be cascaded to give a mod-10 counter.
74LS90
6MS1 7MS2 2MR1
3
MR2
14 CP0 1
CP1
Procedure:
11 8 9
Q3 Q2 Q1
12
Q0
MR1 MR2 MS1
1 1 0
0 0 X
1 1 X
1. Connect MS1(pin 6 ) and MS2(pin 7) inputs GND .
2. MR1(pin 2) is connected to logic 1.
3. MR2( pin 3 ) is momentarily connected to logic 1 and then connected to logic 0 for
COUNT mode.( Refer to the functional table of 7490).
4. Connect Q0(pin 12 ) and CK B (pin 1 ) are shorted to convert the counter into
mod-10 counter.
5. Apply the clock pulses to CK A ( pin 14 ) and verify the count sequence. 6.
Apply a clock signal of frequency 1 khz or above and observe the waveforms at
Q0,Q1,Q2,and Q3.
14 QA 12
clkQ0 A
1 2 R 9(1) R 9(2) R 0(1) R 0(2) 8
QBQCQD
Q2
11
6 3
9
7 B
Q1 Q3
34
1
6
2
5
TO use 7493 as a Mod-16 counter and also to get mod-N counter (N [ 15 ) 7493 has a
mod-2 and a mod- 8 counter which can be cascaded to get mod-16 counter. Pin details
and functional table of 7493 are given below.
Procedure: 1. Connect the circuit as shown in the fig.
2. MR1(pin 2) is connected to logic 1.
3. MR2( pin 3 ) is momentarily connected to logic 1 and then connected to logic 0
for COUNT mode.( Refer to the functional table of 7493). 4. Connect Q0(pin 12 )
and CK B (pin 1 ) are shorted to convert the counter into a mod-16 counter.
5.Apply the clock pulses to CK A ( pin 14 ) and verify the count sequence.
6.Apply a clock signal of frequency 1 khz or above and observe the
waveforms at Q0,Q1,Q2,and Q3.
MR1 MR2 Q3 Q2 Q1 Q0
1 1 0 0 0 0
0 1 Count mode
1 0 Count mode
1 1 Count mode
74LS93
2MR1 3MR2 1 4 CP0 1 1 1 Q 38 Q 29 Q
CP1
11 2
Q 0
Let N = 6.
In binary 6 Q2 and Q1 are 1 . So, Q2 and Q1 outputs of the counter are used to reset the
counter. As soon as Q2 and Q1 both becomes 1 the output of the second Nand gate
becomes 1 which takes the counter to reset mode.
Similarly other mod counters can be realized.(See the pin details of 7493)
14
Q A12
CLK Q0
6 3 A 3 1
Q B9 Q C8 Q D11
1 B 2
4
2 R0(1) R0(2)
5 Q1 Q2 Q3
Design and realization of 3 bit synchronous counters using 7476 I.C. 1. Design of
0 0 0 0 State table :
Prese Next J K
1 0 0 1 nt state
State o/p
2 0 1 0 o/p
3 0 1 1 0 0 0 X
4 1 0 0 0 1 1 X
5 1 0 1 1 0 X 1
6 1 1 0 1 1 X 0
7 1 1 1
Present state Next state FF A FF B FF C
A B C A B C JA KA JB KB JC KC
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 1 0 1 X 1 0 X 0 X
1 0 1 1 1 0 X 1 0 X X 1
1 1 0 1 1 1 X 1 X 1 0 X
1 1 1 0 0 0 X 1 X 1 X 1
Use K-maps to get the expressions for J –K inputs of the three FFs.
JA = BC ; JB = C ; JC = 1 ; KA = BC ; KB = C ; KC = 1
Preset S ET S ET S ET
1 6
34 5
2
Logic 1 J ~Q Q J ~Q
Q J ~Q Q
FFC FFB FFA
clock Clear R ES E T K R ES E T K R ES E T K
Procedure: Connect the circuit as shown in the fig. Verify the truth table of the
counter.
Ex: The synchronous counter can be designed for any count sequence.
3 bit synchronous up/down counter:
Mode A B C
M
1 0 0 0
1 0 0 1
1 0 1 0
1 0 1 1
1 1 0 0
1 1 0 1
1 1 1 0
1 1 1 1
0 0 0 0
0 1 1 1
0 1 1 0
0 1 0 1
0 1 0 0
0 0 1 1
0 0 1 0
0 0 0 1
0 0 0 0
Learn the design and calculate the expressions for JK inputs
2 J Q 12 3 S ET 2 Q 12 S ET
pr S ET 1 31 2 1 31 1
1 J 1 J
3 9 Q
1 08
~Q ~Q ~Q
FFC FFB FFA
R ES E T K 45 6 345 6
1 clr clk R ES E T K R ES E T K
15
Load Clear 1 0
1
109 3
ABCD X 1 0 0
2
QAQBQCQD
1 0 1 06
7
1113
~L OA D ~B O
1412
4 UP
5 C LR
D OW N 74192N
~C O
P.S : Carry and borrow outputs are normally at logic 1, but if the outputs change from 1001 to
0000 then carry = 0 and then changes back to 1( up counting)
1113D
~L OA D 1
~B O
3
1412 5
9
2 4 6
45 C LR ~C O
8
D OW N U P
1113
~L OA D 1
~B O
1412
3
5
2 4
45 C LR ~C O
6
D OW N U P
2 0 01
3 1 101
4 0 0101
1 1 1
2 0 01
3 1 101
4 0 0101 010 01
5 0
Procedure.
1.Mode control = 0.
2.Apply clock to pin 9 –clk 1
3.Apply the serial data to be converted into serial output to DS input.
4. After 4 clock pulses the serial data appears on parallel outputs Q3Q2Q1Q0. 5.Apply another
4 clock pulses to move the data out serially at Q0 output as shown in the truth table.
Clock1 101 10 1
-1 2 3
Procedure :
1.Connect Q0 and D1 input, Q1 and D2 input ,Q2 and D3 inputs.
2.Mode control = 1.
3.Serial data to be shifted left is entered at D0 input.
4.Apply clock input to pin 8 and observe the data shifting left on Q3 line for each clock pulse.
Dr.HRB, DEC Course coordinator
JDR and HVM Page 32
ECE department, BMSCE Digital Electronics Lab (15ES3GCDEC) III semester, ECE
Q3 Q2 Q1 Q0 Shift left Clock
data input
(DS)
1 11 110 1 Clock2 1
1101 1 2
0 3
1 4
74LS9
6
5 S
9 CP1 8 CP2 5D3 4D2 3D1 2D0 1 10 Q3
DS
11 Q2 12 Q1 13
Q0
Experiment No. 10
Aim : To design and test a Ring counter / Johnson counter using 7495 I.C
Clock 1 1 0 0100 00
2 10 0001 1
3 0 0 0 and so
4 on
Procedure:
1. Mode control is made = 1.
2. A 4 bit word say 0000 is applied at the D3 D2 D1 D0 parallel inputs. 3. A single
clock pulse is applied at pin 8 to get the data on Q3 Q2 Q1 Q0 output lines 4.Change
the clock to pin 9 and change the mode to 0.
5. Apply clock pulses and observe the outputs changing as shown in the truth table.
Also it starts repeating after 8 clock pulses .
6.Observe the wave forms at the outputs.
1 0 0 0 0 1 0 0
2 0 1 1 0 0 1 1
3 1 0 1 1 1 1 0
4 1 1 1 0 0 1 1
5 0 0 0 1 0 0 0
6 0
7
8
9