PROCEDURE
1. Check all the components and IC packages using multimeter and digital IC tester.
Also assure whether all the connecting wires are having continuity using 5V supply and
LEDs of IC trainer kit itself.
2. Place the ICs properly on the bread board.
3. Connect pin14 to power supply and 7 to ground for each IC.
4. Select good logic input switches to provide inputs for the gates and output lines to
monitor the outputs.
5. Provide the possible combinations (as in truth table) using logic switches. Check the
output in each case. The LED indicator connected to the output terminal should glow
indicating a HIGH level at the output and should not glow indicating a LOW level.
VIET
RESULT
The various digital IC packages are studied and their truth tables are verified.
VIET
Symbol
Truth Table
A
0
0
1
1
B
0
1
0
1
Y
0
0
0
1
Symbol
Truth Table
A
0
0
1
1
B
0
1
0
1
Y
0
1
1
1
Symbol
Truth Table
A
0
1
Y
1
0
VIET
Symbol
Truth Table
Symbol
Truth Table
A
0
0
1
1
Symbol
B
0
1
0
1
Y
1
0
0
0
Truth Table
A
0
0
1
1
B
0
1
0
1
Y
0
1
1
0
EXPERIMENT NO: 2
VIET
CHARACTERISTICS OF TTL
AIM
To find the transfer characteristics of TTL gates.
COMPONENTS AND EQUIPMENTS REQUIRED
IC 7400, voltmeter and trainer kit
THEORY
Internal circuit diagram of a basic TTL NAND gate is shown in fig(1). If any of the
input is low level, the output will be in high level.
Transfer Characteristics
If any input of a NAND gate is low, Q2 & Q3 will be turned OFF and Q4 will be
turned ON to give a logic 1 output. Then Vo will be having a value Vcc-( VBE + VD )
where VBE is the base emitter potential of transistor and VD is the diode voltage drop
collector potential of Q2 is Vcc through R1 and base emitter of Q1.
If input voltage Vi is raised generally, current gets diverted from the emitter of Q1
to its collector causing Q2 to conduct. Q2 is then operates in its linear region with a gain
R2/R3. Since Q4 remains ON and acts as an emitter follower, the output decreases at a rate
ot 1.6, when the input of Q2 fall drastically, then output falls with a steep slope.
Logic swing and Transition width
These two quantities are given by the expression
Logic swing
= VOH VOL
Transition width = VIH VIL
Noise Margin
It is an amount of noise voltage that an input can tolerate without causing a false
change in input state. Noise margin at high level are given by the expressions below.
NMH = VOH VIH
NML = VIL VOL
VIET
PROCEDURE
1. Check all the components and IC packages using multimeter and digital IC tester
2. Set up the circuit to measure sourcing current. Ensure that the gate output is in
logic 1. Take the reading from the ammeter.
3. Set up the circuit to measure sinking and sourcing current. Ensure that the gate
output is in logic 0. Take the voltmeter readings. Draw the characteristics with Vi on
X-axis Vo on Y- axis.
4. To display transfer characteristics on CRO, Feed a 5V wave form to the input of the
gate. Fed the signal to the channel A and B.
RESULT
The transfer characteristics of TTL gate were obtained.
VIET
Vcc
+V
R2
R4
Q4
R1
Vi
NPN
Q2
Vo
Q3
R3
5V
+ Vi
0-5V
-
+ Vo
0-5V
-
Circuit diagram 1
VIET
Vi
Vo
EXPERIMENT NO: 3
VIET
COMPONENTS REQUIRED
IC Trainer Kit, IC 7400, IC7432, IC 7402, IC 7408, IC 7404.
THEORY
De Morgans theorem
De Morgans theorem states that,
(i) The complement of a sum equals the product of the complements
(A + B) = A. B .eqn(i)
(ii)
.eqn(ii)
VIET
10
.eqn(ix)
.eqn(x)
PROCEDURE
VIET
11
1) Make sure that the functional units of the IC trainer kit are working properly
2) Test and ensure that all the selected logic gates in the component ICs are good.
3) Construct the truth table for the logic expressions as stated by the eqns ( i through
xiv)
4) Realize the expressions as stated by the equations ( i through xiv) using suitable
logic gates[for
eqns. i through viii realize the LHS and RHS simultaneously from
RESULT
Studied and verified De Morgans theorem and postulates of Boolean algebra.
VIET
12
( A . B) = A + B ..eqn(ii)
(A+B)'
(A.B)'
A'.B'
(A+B)
A.B
0
0
1
1
0
1
0
1
1
1
0
0
1
0
1
0
1
0
0
0
1
0
0
0
A'+B'
0
0
1
1
0
1
0
1
(A.B)
1
1
1
0
(A+B)
1
1
0
0
1
0
1
0
1
1
1
0
VIET
13
A+ B = B + A .eqn(iii)
A
A . B = B. A eqn(iv)
A+B
B+A
B
A
A+B
B+A
0
0
1
1
0
1
0
1
0
1
1
1
0
1
1
1
A.B
B.A
A.B
B.A
0
0
1
1
0
1
0
1
0
0
0
1
0
0
0
1
2. Associative law
A + ( B + C ) = ( A + B ) + C eqn(v)
A
A .( B .C ) = (A .B ) .C ..eqn(vi)
A
C
A+B
C
A.B
A+(B+C)
A+(B+C)
(A+B)+C
0
0
0
0
1
1
1
1
0
0
1
1
0
0
1
1
0
1
0
1
0
1
0
1
0
1
1
1
1
1
1
1
0
1
1
1
1
1
1
1
VIET
(A.B).C
B.C
B+C
A.(B.C)
(A+B)+C
A.(B.C)
(A.B).C
0
0
0
0
1
1
1
1
0
0
1
1
0
0
1
1
0
1
0
1
0
1
0
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
1
14
3. Distributive law
A. (B +C) = A. B + A. C .eqn(vii)
A
A + ( B .C ) =( A + B ). (A + C) .eqn(viii)
A.(B+C)
A+(B.C)
B+C
B.C
A.B
A+B
(A.B)+(A.C)
A.C
A(B+C)
AB+AC
0
0
0
0
1
1
1
1
0
0
1
1
0
0
1
1
0
1
0
1
0
1
0
1
0
0
0
0
0
1
1
1
0
0
0
0
0
1
1
1
(A+B).(A+C)
A+C
A+(BC)
(A+B)(A+C)
0
0
0
0
1
1
1
1
0
0
1
1
0
0
1
1
0
1
0
1
0
1
0
1
0
0
0
1
1
1
1
1
0
0
0
1
1
1
1
1
4. Complementary law
VIET
15
A. A = 0
0 1
1 0
A
0 1
1 0
AA
0
0
A+A
1
1
5. Identity law
A .1 = A
A+0=A
A
0
A A.1
0 0
1 1
A A+0
0 0
1 1
6.Idempotent law
A+ A= A
A A+A
0 0
1 1
VIET
A. A=A
A A.A
0 0
1 1
16
EXPERIMENT NO: 4
COMPONENTS REQUIRED
1) IC Trainer Kit
2) IC 7400-NAND: 2 nos
3) IC 7402 NOR: 2nos
THEORY
Logic gates are the fundamental building blocks of digital systems. A gate is a digital
circuit with one or more input and having only one output. The two universal gates are
NAND & NOR which can perform all the three basic logic functions. Basic logic gates are
AND, OR & NOT which can be derived from universal gates .Moreover XOR & XNOR can
also be derived using these gates .Hence they are called as universal gates.
NOR gate: NOR gate is a combination of NOT & OR. Here the output of OR gate is
NOT ed .The Boolean expression for a NOR gate is
VIET
17
PROCEDURE
1. Verify whether all the components and wires are in good condition.
2. Place the ICs on the trainer kit and make sure that the seventh pin is connected to
ground and 14th to Vcc.
3. Set up the ckt and feed the i/p combinations
4. Observe the o/p corresponding to the i/p applied
5. Verify the corresponding truth table for i/p o/p relationship.
6. Repeat the above for all the ckts
RESULT
All the logic gates were realized using the universal gates (NAND/NOR).
VIET
18
b)AND
A
B
1
2
1
1
0
1
0
1
c)OR
VIET
19
10
4
d)NOR
1
10
4
12
11
13
e)XOR
4
A
B
12
13
2
9
8
10
VIET
11
20
f)XNOR
4
6
5
A
B
1
2
12
3
13
9
10
VIET
1
11
2
21
CIRCUIT DIAGRAM
a)NOT
A
2
b)OR
A
0
1
1
0
1
1
c)AND
3
8
9
5
6
VIET
10
22
3
8
10
13
12
9
6
11
e)XOR
8
10
9
2
2
3
11
13
12
f)XNOR
11
13
12
2
1
8
9
5
VIET
3
10
5
6
23
COMPONENTS REQUIRED
IC 7400 -NAND : 3 nos
IC 7486 XOR :1 no:
THEORY
Half adder is a circuit used for adding 2 bits. The sum and the carry will be present at
the output. There are two inputs to the full adder A & B.The full adder will also
produce a sum and carry at the output.
From the K-mp it is clear that, the equation for sum of half adder is,
S= AB+AB
The expression for carry-out of a half adder is,
C= AB
The expression for the sum of full adder is
The expression for carry-out of a full adder is,
PROCEDURE
1. Obtain and verify the components
2. Set up the circuits using 7486 and 7400 ICs
3. Provide the inputs and verify the outputs.
RESULT
The circuits for half adder and full adder using X-OR and NAND gates were
designed and verified the truth table.
VIET
24
HALF ADDER
TRUTHTABLE
K-MAP
a)FOR SUM
A 0
1
B
CARRY
S=AB'+A'B
=A+B
A
B
0
1
b)FOR CARRY
0
1
0
C=AB
S=A+B
C=A.B
5
1
12
S=A+B
13
9
11
10
C=A.B
VIET
25
FULL ADDER
K-MAP
TRUTH TABLE
a)FOR SUM
A
Cin
Cout
A
B
AB 00
Cin
0
1
01
11
10
b)FOR CARRY
AB 00
Cin
0
01
11
10
3
4
Cin
2
5
3
9
10
A
B
1
2
12
3
9
10
13
11
1
6
5
12
11
13
2
9
Cin
10
Cout
VIET
26
COMPONENTS REQUIRED
IC 7400 -NAND : 3 nos
IC 7486 XOR : 1 no:
THEORY
Half subtractor is a circuit used for subtracting 2 bits. The difference and
borrow will be present at the output. There are two inputs to the full subtractor A & B.
The full subtractor will also produce a difference and
borrow at the output.
From the K-map it is clear that, the equation for difference of half subtractor is,
D = AB+AB
The expression for borrow of a half subtractor is,
Bo = AB
The expression for the difference of full subtractor is
PROCEDURE
1. Obtain and verify the components
2. Set up the circuits using 7486 and 7400 ICs
3. Provide the inputs and verify the outputs.
VIET
27
RESULT
The circuits for half subtractor and full subtractor using X-OR and NAND
gates were designed and verified the truth table.
VIET
28
HALF SUBTRACTOR
K-MAP
A
a)DIFFERENCE
Bo
A
B
0
b)BORROW OUT
A
B
0
1
D=AB'+A'B
Bo=A'B
A
B
2
4
10
Bo
A
B
12
11
13
8
10
1
2
VIET
4
5
8
10
Bo
29
FULL SUBTRACTOR
K-MAP
FOR DIFFERENCE
AB 00
01
10
Cin
0
1
0
0
TRUTH TABLE
A
Cin
Bo
11
1
D=A+B+Cin
FOR BORROW OUT
AB 00
Cin
0 0
1
01
10
11
Bo=A'B+Cin(A+B)
B
Cin
A
2
5
9
6
10
8
12
13
Bo
11
A
B
12
11
10
VIET
5
3
Cin
13
1
2
6
12
9
10
13
11
8
1
Bo
30
VIET
31
RESULT
Designed and setup the following arithmetic circuit
a) 4- bit binary adder
b) 4-bit binary subtractor
c) BCD adder
VIET
32
A3A2A1A0
+5V
1 3 8 10
B3
16
B2
B1
B0
11
13
7483
15
1 3 8 10
Vcc
16 4
11
13
Cin
5
7483
14
Cout
15 2 6 9
S3S2S1S0
33
EXPERIMENT NO: 8
THEORY
Astable multivibrator
Here the output switches between two unstable states. Refer the circuit. In one
state Vo1 is high and Vo2 is low and vice versa in other state. Consider the moment Vo2 is
high. Capacitor C1 starts charging through R1.When voltage at Vi1 becomes lower than
threshold voltage Vt of the gate, Vo1 becomes high. At the same moment, Vo2 goes low
since the sudden rise of voltage at Vo1 gets transferred to Vi2 by the capacitor C2.Now C2
VIET
34
Monostable multivibrator
Monostable multivibrator has one stable state.When trigger input is applied,it
goes to quasi-stable state ,comes back and settles after designed time period.
In the stable state, the trigger input is held at logic 1 level. A resistor is wired
from the input of the inverter to ground. Now both inputs to NAND gates are at logic 1
and output at logic 0.In this state capacitor is discharged.
When a trigger pulse(logic 0)appears at one input of first NAND gate, output
goes high as inputs are 0 and 1.The capacitor acts as a short circuit for sudden rise of
voltage at the input of the inverter and the output becomes 0.Capacitor suddenly charges
and settles the circuit in stable state after T=0.693RC.
PROCEDURE
1. Setup multivibrator circuits on the bread board after verifying the ICs.
2. Vcc and GND of ICs used must be given properly.
3. In case of monostable multivibrator,feed a pulse train of designed frequency and
amplitude 5V(obtained from the functional generator)at trigger input and observe
the output waveform.
Time period of trigger pulse should be less than the designed time period of
monostable multivibrator.
VIET
35
RESULT
Designed and setup astable and monostable multivibrators using gates for the
desired frequency and output waveforms were plotted.
Astable multivibrator
Design:Frequency = 1 KHz
Duty cycle of waveform=1/3
We have,T= T1+T2=1ms
Since duty cycle=T1/ (T1+T2)= 1/3,we get T1=0.33ms and T2=0.66ms.
T1=0.33ms=0.69R1C1.
T2=0.66ms=0.69R2C2.
Take R1=R2=R.
By considering internal block diagram of TTL NAND gate, voltage developed across R at
logic 0 state should be < Vil=0.7V (il=input low)
Then (Vcc-VBE) R/(R+4K) <Vil
Substituting the values, we get, R < 778
Circuit diagram
VIET
36
Monostable multivibrator
VIET
37
EXPERIMENT NO: 9
VIET
38
THEORY
Flip flop is the basic building block in any memory systems. Its output will
remain in its state until it is forced to change by some means.
Clocked RS flip-flop: R & S stands for reset and set .There are 4 input combinations
possible at the inputs. But S=R=1 is forbidden since output will be an indeterminate
form. When the flip-flop is switched ON, its output state will be uncertain. When an
initial state is to be assigned, two separate inputs called preset and clear are used which
are active low.
J-K Flip-flop: The indeterminate output state of RS flip-flop is avoided by converting it
into J-K flip-flop. In J-K flip-flop the indeterminate form is changed by the compliment
of previous output.
Master-Slave J-K flip-flop: The race-around condition of J-K flip-flop is restricted in
Master-Slave J-K flip-flop. Racing is the toggling of the output more than once during a
positive clock edge. MS J-K flip-flop is created by cascading two J-K flip-flops. The
clock fed to the first stage eliminates the change of racing. The clock is inverted and fed
to the second stage .This ensures that the slave follows master and eliminates the change
of racing.
D flip-flop: It has only one input referred to as D-input or data input. Its also called delay
input. The input data is transferred to the output after a clock pulse is applied.
T flip-flop: It stands for toggle. The output toggles when a clock pulse is applied, i.e. the
output of T flip-flop changes state for an input pulse. T flip-flop can be derived from J-K
by shorting J & K inputs.
PROCEDURE
1. Test all components and IC packages using multimeter digital IC tester.
2. Place the ICs on the kit and make sure that the Vcc and GND are properly done.
3. Set up the circuit and feed the input combinations
4. Verify the truth table of the circuit by feeding the input bit combinations for SR, JK,
MSJK, D and T flip-flops
RESULT
Designed and set up the following flip-flops using gates
1. Clocked RS flip flop
2. J-K flip flop
3. Master Slave J-K flip-flop
4. D flip flop
5. T flip flop
VIET
39
VIET
40
VIET
41
VIET
42
VIET
43
SHIFT REGISTERS
AIM
To design and set up shift registers in different modes of operation.
COMPONENTS REQUIRED
IC 7404,IC 74OO, IC7432, IC 7408, IC 7474
THEORY & PROCEDURE
Shift registers are a type of sequential logic circuit, mainly for storage of digital data.
They are a group of flip-flops connected in a chain so that the output from one flip-flop
becomes the input of the next flip-flop. Most of the registers possess no characteristic
internal sequence of states. All the flip-flops are driven by a common clock, and all are
set or reset simultaneously.
The basic types of shift registers studied are
Serial in - Serial Out,
Serial in - Parallel Out,
Parallel In - Serial Out,
Parallel In - Parallel Out,
And bidirectional shift registers. .
Serial In - Serial Out Shift Registers
A basic four-bit shift register can be constructed using four D flip-flops, is shown
in fig.1. The operation of the circuit is as follows. The register is first cleared, forcing all
four outputs to zero. The input data is then applied sequentially to the D input of the first
flip-flop on the left (FF0). During each clock pulse, one bit is transmitted from left to
right. Assume a data word to be 1001. The least significant bit of the data has to be
shifted through the register from FF0 to FF3.
In order to get the data out of the register, they must be shifted out serially. This
can be done destructively or non-destructively. For destructive readout, the original data
is lost and at the end of the read cycle, all flip-flops are reset to zero.
VIET
44
VIET
45
The serial in -serial out shift register can be used as a time delay device. The
amount of delay can be controlled by:
1. the number of stages in the register
2. the clock frequency
To simplify combinational logic.
VIET
46
VIET
47
VIET
48
EXPERIMENT NO: 11
VIET
49
VIET
50
VIET
51
VIET
52
EXPERIMENT NO: 12
SYNCHRONOUS COUNTERS
AIM
To design and set up the following counter circuits.
1. Synchronous MOD 10 counter
2. Synchronous UP/DOWN MOD 6 counter
COMPONENTS REQUIRED
ICs 7476, 7400, 7408, digital IC trainer kit etc
THEORY
In synchronous counters all flip-flops are working in synchronism with the input clock
pulse. The additive propagation delay in asynchronous counters in synchronous counters.
If M is the modulus of the counter and N is the minimum number of flip-flops used, then
N=log 2M
DESIGN
For designing the synchronous counter, first write down the counting sequence. If we are
designing the counter using the JK flip-flop, consider the excitation table of JK flip-flop.
Qn represents the state before the clock pulse is applied and Qn+1 represent the state
after the application of pulse. From the excitation table find out the inputs J & K to get
Qn+1(next state) from Qn (present state). The excitation of JK flip-flop is given below
VIET
53
Qn Qn+1 J
Consider the counter sequence. For e.g., let the first state be 0011 (Q 3Q2Q1Q0) and the
next state be 0100.Q3 changes from 0 to 0 (i.e. change).From the excitation table the J 3 &
K3 inputs for this state is obtained as 0X.Similarly Q2 changes from 0 to 1, for this J2 and
K2 inputs are obtained as 1X .Similarly from 1 to 0 J 1 and K1 are X1and from 1 to 0 they
are again X1.In order to find the equation for J and K plot all the combinations in the Kmap. Similarly for all other inputs find out the equations for J & K using K-map. The
excitation table of the MOD 10 counter is shown. The realization of J & K inputs using
K=maps is also shown.
mod 6 up/down counter
VIET
54
RESULT
The following counter circuits were designed and set up.
1. Synchronous MOD 10 counter
2. Synchronous UP/DOWN MOD 6 counter
4 BIT UP COUNTER
VIET
55
VIET
56
J K flipflop inputs
0
0
0
0
0
0
0
0
1
1
0
0
0
0
1
1
1
1
0
0
0
0
1
1
0
0
1
1
0
0
0
1
0
1
0
1
0
1
0
1
1
X
1
X
1
X
1
X
1
X
X
1
X
1
X
1
X
1
X
1
0
1
X
X
0
1
X
X
0
0
X
X
0
1
X
X
0
1
X
X
0
0
0
1
X
X
X
X
0
0
X
X
X
X
0
0
0
1
X
X
0
0
0
0
0
0
0
1
X
X
X
X
X
X
X
X
X
X
0
1
J1=Q3Q0
VIET
K1=Q0
57
J2=Q0Q1
J3=Q0Q1Q2
VIET
K2=Q1Q0
K3=Q0
58
J2 = MQ1Q0+MQ1Q0
VIET
K2 = MQ0+MQ0
59
J1 = MQ2Q0+MQ2Q0
J0 = 1
VIET
K1 = MQ0+MQ0
K0 = 1
60
EXPERIMENT NO: 13
SEQUENCE DETECTOR
AIM
To design and set up a sequence detector to detect the sequence 101
STATE GRAPH
VIET
61
PROCEDURE
1. Test all components and IC packages using multimeter digital IC tester.
2. Place the ICs on the kit and make sure that the Vcc and GND are properly done.
3. Set up the circuit as shown in the figure.
4. Check whether it detects the sequence 101
RESULT
Designed a logic circuit to detect the sequence 101 and verified the output.
VIET
62
STATE TABLE
Next State
X=0 X = 1
Present
state
S0
S1
S2
S0
S2
S0
S1
S1
S1
QA
QB
0
0
1
0
1
0
QA + 1
QB + 1
X=0
X=1
00
10
00
01
01
01
Z (O/P)
X=0
X=1
0
0
0
0
0
1
QA +1 = QB X
QB + 1 = X
Z= QAX
VIET
63
VIET
64
65
VIET
66
VIET
67
S0
S1
O0
O1
O2
O3
1
0
0
1
0
0
0
1
0
1
0
1
0
0
1
1
0
0
0
1
0
1
1
1
0
0
0
1
For a TRUE i/p the truth table for the de multiplexer may be constructed as shown and
the logic expressions for distinct output lines may be individually derived from the truth
table. Thus,
O0
O1
O2
O3
VIET
=
=
=
=
S0S1D
S0S1D
S0S1D
S0S1D
68
AIM
To implement different logic functions using multiplexer and decoder
a) full adder
b) full subtractor
COMPONENTS REQUIRED
IC trainer kit, ICs 74151 & 74138, 7400
THEORY
Multiplexer is a combinational logic circuit, which can select any of the inputs and route
it to the output. Various multiplexer ICs are available with 4,8 and 16 inputs and one
output. They have control inputs to carry out this operation. The 74151 is an 8 line to 1
line multiplexer. It has three select inputs A0, A1 ,A2 and an active low enable input EN.
The data inputs are designated as D0 through D7.The binary number at the data select
input at the select lines select the data to be directed to output. For example if A2A1A0 is
001, D1 will be available at the output .The enable input is used to activate or deactivate
the chip. Multiplexer can be used to realize logic circuits .A MUX with n inputs can be
used to realize a n variable Boolean expression. With additional gates or circuits, an n +1
variable expression can be realized with the same MUX.
A decoder is a combinational logic circuit which has n input lines and 2 n output lines. It
activates a single output lines at a time according to the input combinations. It has a one
to one correspondence between the 2n output lines and the possible 2n input combinations.
So the output lines can be considered as minterm in case of active low decoders .IC
74138 decoder accepts three binary weighted inputs A0A1A2 and when enabled
provides eight mutually exclusive active low inputs, which has three enable inputs, two
active low inputs and one active high input.
PROCEDURE
1. Obtain and test the components.
2. Set up the circuits.
3. Provide the inputs and verify the outputs
VIET
69
VIET
70
FULL ADDER
FULL SUBSTRACTOR
TRUTH TABLE
TRUTH TABLE
A
Cin
Cout
VIET
Cin
Bo
71
VIET
72
VIET
73
VIET
74
PROCEDURE
Using XOR gate for any number of inputs, output is high if the no: of 1s are odd.
This condition +Pi should give you Po
Accordingly, construct the truth table.
Encoded data will be of the form D3 D2 D1 D0 Po
This encoded data is now the input to the checker .Now Pi =Po =1.
The same generator circuit now generates bit Po=0 for opposite parity(odd parity in this
case.). OR . TRUE condition (Logic HIGH) of Po is a check for even parity.
Let us discuss in detail with an example;
Let D3 D0 be the data bits. Assume that you have to set even parity and this has
to be set by setting Pi =0.
P =0. ----Even parity
P =1. -----Odd parity
RESULT
A 4 bit parity generator/checker circuit has been designed and set up and out put
verified for all possible combinations of the four bit data.
VIET
75
Parity
generator
/checker
Truth table:
Data bits
D3
D2
0
0
0
0
0
0
0
0
0
1
0
1
0
1
0
1
1
0
1
0
1
0
1
0
1
1
1
1
1
1
1
1
D1
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1
D0
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
Pi=0
Po
0
1
1
0
1
0
0
1
1
0
0
1
0
1
1
0
Pi=1
Po
1
0
0
1
0
1
1
0
0
1
1
0
1
0
0
1
D1
D2
optional
Po
D3
D4
Pi
VIET
76
EXPERIMENT NO: 17
MAGNITUDE COMPARATOR
AIM
To design and set up magnitude comparators to compare two n bit binary
numbers A & B and hence visually indicate the relative magnitudes ( ie: if A is
greater than B, A is equal to B Or A is less than B)
COMPONENTS REQUIRED
IC 7408, IC 7404, IC 7486, IC 7432
THEORY
VIET
77
RESULT
A one bit and two bit magnitude comparators has been designed and set up and outputs
verified in each case.
VIET
78
Inputs
Outputs
A B A<BA=B A>B
0 0
0
1
0
0 1
1
0
0
1 0
0
0
1
1 1
0
1
0
KARNAUGH MAPING:
A>B
BBB
B
A=B
A<B
figure of a 1-bit magnitude comparator.
VIET
79
B1
Ao
Bo
A>B
A=B
A<B
EXPERIMENT NO: 18
VIET
80
CODE CONVERTERS
AIM
To design and setup to following code converter circuits
(ii)
4 bit binary to gray code
(iii)
4 bit gray to binary code
(iv)
BCD to XS-3 code
COMPONENTS REQUIRED
(i)
(ii)
IC Trainer kit
IC 7486, IC 7408, IC 7404. IC 7432
THEORY
To convert a binary number to corresponding gray code, the following rules are
applied. The MSB in the gray code is same as the corresponding digit in the binary code.
While going from left to right each adjacent pair of binary digit is added to get the next
gray code digit.
As first step to design a binary to gray code converter setup a truth table with
binary number B3 B2 B1 B0 and corresponding gray code number G3 G2 G1 G0. Setup a
circuit realizing the simplified logic expressions obtained using Kmap for Gs as function
of Bs.
To convert the gray code to binary code the following rules are used. The MSB of
the binary number is the same as the corresponding digit in gray code. Add each binary
digit generated to the gray code and digit in next adjacent position. Disregard the carry.
To design Gray to binary converter setup the truth table and get simplified expression
using Kmap.
To convert BCD to XS-3 code, a binary three(0011) is added with the
corresponding BCD and thus obtained the XS-3 code.BCD codes are valid up to binary
nine and after that it is of invalid state.
PROCEDURE
VIET
81
VIET
82
G3 = B3
VIET
83
Circuit Diagram
G0
B0
B1
G1
B2
G2
B3
G3
Grey to Binary
VIET
G3
G2
G1
G0
B3
B2
B1
B0
0
0
0
0
0
0
0
0
1
1
1
1
1
1
1
1
0
0
0
0
1
1
1
1
0
0
0
0
1
1
1
1
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
0
0
0
0
0
0
0
1
1
1
1
1
1
1
1
0
0
0
0
1
1
1
1
1
1
1
1
0
0
0
0
0
0
1
1
1
1
0
0
1
1
0
0
0
0
1
1
0
1
1
0
1
0
0
1
1
0
0
1
0
1
1
0
84
B3 = G 3
G3
B3
G2
B2
B1
G1
B0
G0
BCD to XS-3
Truth table
B3
B2
X3
X 2 X1
X0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
1
1
1
1
0
0
0
0
1
1
0
0
1
1
0
0
0
1
0
1
0
1
0
1
0
1
0
0
0
0
0
1
1
1
1
1
0
1
1
1
1
0
0
0
0
1
1
0
1
0
1
0
1
0
1
0
VIET
1
0
0
1
1
0
0
1
1
0
85
X0 = B0
X3 = B3+B2(B1+B0)
Circuit Diagram
B0
X0
X1
B1
B2
B3
VIET
X2
X3
86
COMPONENTS REQUIRED
CRO, bread board, 555 IC, dc supply, resistors and capacitors.
THEORY
Monostable multivibrator
A 555 timer is a highly stable device for generating accurate time delay or
oscillation. Internally it contains upper and lower comparators, RS FLIP FLOP two
transistors and a power amplifier circuit which is an inverter.
In the stable state ,FF holds transistor Q1 ON, thus clamping external capacitor
C to ground. Then output remains at low state. As trigger passes through Vcc/3, FF is set,
(Q=1) which makes tr Q1 off and short circuit across timing capacitor C is released. As
Q=1, output goes high .Since C is unclamped, voltage across it rises exponentially
through R towards Vcc with a time constant RC. After a time period T, the capacitor
voltage is just greater than 2/3Vcc and Upper Comparator resets FF (R=1 and S=0).This
makes Q=0 and tr Q1 goes ON, there by discharging capacitor C rapidly to ground
potential. The output returns to stand by state.
The voltage across capacitor is given by
Vc=Vcc(1- e-t/RC )
At t=T, Vc=2Vcc/3
Therefore, 2Vcc/3 = Vcc (1- e-T/RC)
Or, T=RC ln 1/3
Or, T= 1.1RC (in seconds)
Thus timing interval is independent of supply voltage. Once triggrerd, output remains in
high state until time T elapses, which depends only upon R & C.
VIET
87
Astable multivibrator
When the power supply Vcc is connected, the external timing capacitor C charges
towards Vcc with a time constant (RA+RB) C. By this time R=0, S=1 and so Q=0 .So
output is High. When capacitor voltage equals 2/3Vcc, upper comparator (UC) triggers
the control FF
so that Q=1.This makes transistor Q1 ON and capacitor C starts discharging towards
ground through RB and transistor Q1 with a time constant RB C
During discharge of timing capacitor C, as it reaches Vcc/3, the lower comparator is
triggered and at this stage S=1,R=0 which turns Q=0.This makes Q1 OFF and again
capacitor C starts to charge. Thus capacitor periodically changes between 2/3Vcc and
1/3Vcc.
The charging period of capacitor C = 0.69(RA+RB) C
The discharging period of capacitor C = 0.69(RB) C
PROCEDURE
1. Verify conditions of 555 IC using IC tester
2. Setup circuit on the breadboard of the IC trainer kit.
3. For mono stable multi-vibrator, adjust function generator to get a square wave output
of T = 3ms.
4. Connect the output pin of functional generator to the trigger input by using probes.
5. Observe waveform at pin no:3 ( output pin) and also across timing capacitor C and
ground.
RESULT
Designed and set up a stable and mono stable multi vibrator using 555.
VIET
88
VIET
89
Astable multivibrator
Design
Take Vcc = 10V and
VIET
90
SEQUENCE GENERATOR
AIM
Design of Sequence Generator.
COMPONENTS REQUIRED
IC 7495, IC 7486
THEORY
To generate a sequence of length S it is necessary to use at least N number of
Flip-Flops, which satisfies the condition S= 2
-1.
N
The given sequence length S = 15.
Therefore N = 4.
Note: - There is no guarantee that the given sequence can be generated by 4 f/fs.
If the sequence is not realizable by 4 f/fs then 5 f/fs must be used and so on.
PROCEDURE
1. Connections are made as per the circuit diagram.
2. Clock pulses are applied one by one and truth table is verified.
RESULT
Designed and set up a sequence generator.
VIET
91
Truth Table:Map
Value Clock QA QB QC QD o/p D
15
VIET
1
1
0
1
0 0
92
0 0
1 0
12
10
11
0 0
0 1
11
1 0
12
1 1
10
13 1
0 1
13
14 1
1 1
14
15 1
0 1
VIET
93