Professional Documents
Culture Documents
Objective
To understand the working and purpose of the equipment present in the Lab.
1. The Breadboard
While most of the circuits you come across in your
everyday life are in the form of Printed Circuit Boards
(PCBs), every circuit starts off as an implementation on
a breadboard. A breadboard is a prototyping board
made of insulated material with a perforated top in
which wires and components can be inserted. The
perforations in the board are connected in a special
manner through internal wiring at the bottom of the
board. The fact that wires and components are inserted,
and not soldered, means they can be easily removed,
replaced or have their interconnections altered easily.
In contrast, to make changes on a PCB, a new PCB
needs to be designed which incurs costs in terms of both
time and resources. Therefore, breadboards are ideal for
testing and lab work since, in both cases, circuits
undergo a lot of changes. Figure 1 shows the layout of
a basic breadboard. In order to allow for large circuits to be made, as is the case with some of the
later labs, two such breadboards are sometimes placed.
Figure 2a shows the manner in which the inner perforations are connected. Each row of 5 holes
is “shorted”, that is, each hole in a row is connected to each other through an internal wire. The
large rectangle in the center represents a grove. It should be noted here that holes on one side of
the grove are not connected to the holes on the other side. Figure 2b shows the connections of the
outer perforations. The holes are shorted column wise with no connections between the adjacent
columns. Also, while the number of perforations in a column may vary with the length of the
breadboard, there is always a break in connection at the half way point in a column as shown in
the figure. This means that each column is essentially split into two smaller columns.
When using multiple trainer boards, make sure that the ground pin of the trainer boards are shorted
to ensure that the reference voltage is the same throughout the circuit.
3. Logic Switches
The inputs to a logic circuit are composed of a collection
of ON/OFF signals. An ON signal (or logic ‘1’) is
generated by applying +5V to an input pin while an OFF
signal (or logic ‘0’) is generated by applying 0V to an
input pin. Figure 5 shows the internal structure of a
switch in the ON and OFF state. When the switch is
closed (by moving the switch down), it outputs +5V
while when the switch is opened (by moving it up), the
output of the same pin is now 0V.
This is called “Positive Logic Connection”. To provide
these ON/OFF signals, the trainer boards are equipped with the following logic switches:
(iii)Debouncing Switches
When a normal switch is “thrown”, that is its state is changed, the resulting output voltage does
not immediately go to and stay at the new value. Rather, it oscillates between 5V and 0V for a
short period before settling at desired output. In sensitive circuits, this will lead to the circuit
producing incorrect results. A debouncing switch employs a circuit to remove these oscillations
and produce a clean transition when the switch is thrown.
4. LED output
The outputs of logic circuits, like the inputs, are composed of ON/OFF signals. They can be
verified by using the LEDs available on the trainer boards. LED stands for Light Emitting Diode;
a two terminal device only conducts in one direction, as is the case with a typical diode. They
convert electrical energy into light energy. The conversion results in a drop in voltage across the
terminals of the LED, which is typically around 2V. LEDs offer a big advantage over traditional
bulbs in that they consume negligible amount of power. The disadvantage of LEDs is their inability
to withstand high voltages or currents. Therefore, when using an LED, always connect a resistor
(100-200Ω) in series with it.
The LEDs present in the trainer board already have one terminal connected to the ground and
resistor connected to the other terminal internally. Therefore, you do NOT need to connect a
resistor when using the LEDs on the trainer board. To test an output of an IC, connect it directly
to the input terminal of an LED made available on the trainer board. If an LED turns on, then the
output state at that pin is ON (+5V). If it remains off, then the pin is in OFF state (0V). Remember
to turn on the trainer board before using the LEDS (in case you are using an external supply to
power up your circuit).
6. Clock
The trainer board provides a square wave that oscillates between a minima of 0V and a maxima of
5V. This is called a clock. The clock is used to drive “sequential” logic devices, which you will
come across in the later labs. Essentially, this clock is used for the same purpose as the clock in
you computers. The trainer board provides the option of varying the frequency of this clock, but
the amplitude is fixed.
OBJECTIVE
Familiarization with the AND, OR, NOT, and XOR gates.
Inputs Outputs
Desired Observed
A B
x= A . B
0 0 0
0 1 0
1 0 0
1 1 1
PROCEDURE
1. Insert the IC 7408 on the trainer’s breadboard.
2. Use any two Logic Switches (S2 to S9) of the trainer for Input and any one of the LEDs
(L0 to L15) of the trainer for Output indication.
3. Connect +5V to pin 14 (Vcc) and Ground to pin 7 (GND) of the IC.
4. By setting various combinations of the two switches verify that the output of the AND
gate is in accordance with the Truth Table shown above. Record your observation.
Inputs Outputs
Desired Observed
A B x= A + B
0 0 0
0 1 0
1 0 0
1 1 1
PROCEDURE
1. Insert the IC 7432 on the trainer’s breadboard.
2. Do the same procedure and verify the results.
Inputs Outputs
Desired Observed
A
x= A’
0 1
1 0
PROCEDURE
1. Insert the IC 7404 on the trainer’s breadboard.
2. Do the same procedure and verify the results.
Inputs Outputs
Desired Observed
A B x= A Θ B
0 0 0
0 1 1
1 0 1
1 1 0
PROCEDURE
1. Insert the IC 7486 on the trainer’s breadboard.
2. Do the same procedure and verify the results.
TASK 5
Repeat Task for IC 7400, IC 7402. Draw truth table and show your results to lab
instructor [For IC configuration see datasheet].
OBJECTIVE
To learn the implementation of any logic expression by using only NAND or NOR gates.
THEORY
Digital circuits are more frequently constructed with NAND or NOR gates than with AND and
OR gates. NAND and NOR gates are easier to fabricate with electronic components and are the
basic gates used in all IC digital logic families. Because of the prominence of NAND and NOR
gates in the design of digital circuits, rules and procedures have been developed for conversion
from Boolean function given in terms of AND, OR, and NOT into equivalent NAND and NOR
logic diagram.
Inputs Output
A Desired Observed
B x=A.B
0 0 0
0 1 0
1 0 0
1 1 1
Inputs Output
A Desired Observed
B x=A+B
0 0 0
0 1 1
1 0 1
1 1 1
Verify NOT gate operation using NAND gates (See Fig. 1c).
Show your results to the lab instructor.
Inputs Output
A Desired Observed
X=A'
0 1
1 0
Alternate symbols of the basic gates are given below. Find out which gate each of these
represents.
Inputs Output
A Observed
B
0 0
0 1
1 0
1 1
Inputs Output
A Observed
B
0 0
0 1
1 0
1 1
Inputs Output
A Observed
0
1
LAB ASSIGNMENT
1. Implement AND, OR and NOT operation using NOR gate. Show truth table and
logic diagram.
2. Find the equivalence of the following alternate logic gate. Also show truth table.
OBJECTIVE
To understand the minimization of Boolean functions and their hardware implementation.
TASK 1:
1. Write the Boolean expression of the following two functions. Simplify the expression using
algebraic manipulation and draw the logic diagram.
F (A, B, C) = Σ (2, 3, 7)
G (A, B, C) = Σ (4, 5, 7)
2. Mention the number of literals and gates needed for implementing the above function in
hardware.
TASK 2:
Implement the Boolean functions in hardware you simplified in your Task 1. Make truth table
and Schematic. Mention what and how many gates you would be using?
Truth Table:
Schematic:
TASK 3:
Implement the reduced expressions in Sum-of-Product (SOP) and Product-of-Sum (POS) forms
using AND, OR, and NOT gates. Show proper wiring in prototyping your circuit.
OBJECTIVE
To understand the binary codes for decimals and their hardware realization.
TASK 1:
Implement a gray to binary and binary to gray code converter. Make a truth table for both the
codes by filling in the following tables and Simplify the expressions for W,X,Y,Z in terms of
A,B,C,D and vice versa.( Use backside of the page if necessary). Also give some applications in
which gray code could be used.
Binary Gray
Decimal
A B C D W X Y Z
HINT:
The inputs and outputs are
of 4-bit each. You will
have to make 4 K-Maps
Arrive at the simplest
expression for each
output.
W=
X=
Y=
Z=
Gray Binary
Decimal
W X Y Z A B C D
HINT:
The inputs and outputs are
of 4-bit each. You will
have to make 4 K-Maps
Arrive at the simplest
expression for each
output.
A=
B=
C=
D=
TASK 2:
Draw the logic diagram for the Binary-to-Gray and Gray-to-Binary code converters using two-
input gates in the space provided below.
TASK 3:
Implement the Binary to Gray Code Converter using exclusive- OR gates. Make the Schematic
Diagram. Show the results to your Teacher. What and how many gates did you use? Use LEDs
to show input-output relationship.
TASK 4:
Implement the Gray to Binary Code Converter using exclusive- OR gates. Make the Schematic
Diagram. Show the results to your Teacher. What and how many gates did you use? Use LEDs
to show input-output relationship.
TASK 5:
Now cascade the two circuits in series by connecting the outputs of binary-to-gray converter to
the inputs of the gray-to-binary converter. You should be able to get the binary input at output as
well. Show the results to your Lab Engr. Use LEDs to show input-output relationship.
OBJECTIVE
To learn about BCD to Seven Segment Display Code.
THEORY
The availability of large variety of codes for the same discrete elements of information results in
the use of different codes by different digital systems. Some times it becomes necessary to use
output one system as input to another system. A conversion circuit must be inserted between the
two systems, if each uses different code for the same information. When a decimal number is
decoded such that each digit of the number is represented by a 4-bit binary number, it is called a
8421 Binary Coded Decimal Code or more simply a BCD code. Here , ten out of sixteen
possible combinations of the code are selected to represent decimal 0 through 9. Most
commonly used BCD codes are given below:
DECIMAL BCD
0 0000
1 0001
2 0010
3 0011
4 0100
5 0101
6 0110
7 0111
8 1000
9 1001
TASK 1:
Most Digital equipment has some means for displaying information in a form that can be
understood readily by the user or operator. One of the simplest and most popular methods for
displaying numerical digits uses a 7-segment configuration. To form decimal characters 0
through 9 and some times hex characters A through F. A BCD to 7-Segment Driver (IC 7447) is
used to take four bit BCD input and provide the outputs that will pass current through the
appropriate segment of the display to generate desired output/ number. Truth Table for Active
High and Active Low cases are shown below:
INPUT –BCD Deci Output- Seven Segment Decoder (Active High) Display
So S1 S2 S3 mal a b c d e f g Output
0 0 0 0 0 1 1 1 1 1 1 0 0
0 0 0 1 1 0 1 1 0 0 0 0 1
0 0 1 0 2 1 1 0 1 1 0 1 2
0 0 1 1 3 1 1 1 1 0 0 1 3
0 1 0 0 4 0 1 1 0 0 1 1 4
0 1 0 1 5 1 0 1 1 0 1 1 5
0 1 1 0 6 0 0 1 1 1 1 1 6
0 1 1 1 7 1 1 1 0 0 0 0 7
1 0 0 0 8 1 1 1 1 1 1 1 8
1 0 0 1 9 1 1 1 0 0 1 1 9
INPUT –BCD Deci Output- Seven Segment Decoder (Active Low -IC Display
mal 7447) Output
So S1 S2 S3 a b c d e f g
0 0 0 0 0 0 0 0 0 0 0 1 0
0 0 0 1 1 1 0 0 1 1 1 1 1
0 0 1 0 2 0 0 1 0 0 1 0 2
0 0 1 1 3 0 0 0 0 1 1 0 3
0 1 0 0 4 1 0 0 1 1 0 0 4
0 1 0 1 5 0 1 0 0 1 0 0 5
0 1 1 0 6 1 1 0 0 0 0 0 6
0 1 1 1 7 0 0 0 1 1 1 1 7
1 0 0 0 8 0 0 0 0 0 0 0 8
1 0 0 1 9 0 0 0 1 1 0 0 9
The segments of Seven Segment display are made of LEDs. Depending on the arrangements of
the LEDs, the display could be Common Anode or Common Cathode type. We are using
common anode type of display, which would require that either pin 3 or pin 8 is connected to
Vcc and the input is active low.
Procedure
1. Wire the circuit as per figure 1 above. Connect pin 3 or pin 8 to Vcc.
2. By setting various combinations of the switches verify the result.
TASK 2:
Design a circuit which calculates 9’s complement of a four bit number (BCD) and show the
results on seven segment display.
Truth Table
Logic Diagram
OBJECTIVE
(1) To learn Half and Full Adder Operations.
(2) To learn 4- Bit Binary Parallel Adder Operations.
THEORY
a. Half Adder: The possible operations, when we want to add only two bits, would be the
followings:
0+0=0
0+1=1
1+0=1
1 + 1 = 0 & Carry 1
Above mentioned operation could be performed by a Half Adder circuit.
b. Full Adder : We know that in practice, all addition operations must take into account the
Carry bit (or digit) from the previous operation. Adders in digital computers also take into
account the Carry bit from last operation and add it with the Augend and Addend bits of the
present operation to complete the addition operation. The possible operations are:
0 + 0 + 0 (carry) = 0
0 + 0 + 1 (carry) = 1
0 + 1 + 0 (carry) = 1
0 + 1 + 1 (carry) = 0 & carry 1 (to be added to next higher digit)
1 + 1 + 0 (carry) = 0 & carry 1 (to be added to next higher digit)
1 + 1 + 1 (carry) = 1 & carry 1 (to be added to next higher digit)
The adder that performs the addition of three bits (two significant bits and a previous carry)
is called a Full Adder.
Desired Observed
A B S Cout S Cout
0 0 0 0
0 1 1 0
1 0 1 0
1 1 0 1
The simplified Boolean function for the two outputs can be written from this truth table as:-
S = A'.B +A.B' or A⊕B
Cout = A.B
The circuit diagram for the Half Adder to implement above mentioned Boolean function could
be quite a few. We will however verify only one.
PROCEDURE
Implement the circuit as per figure 1 above.By setting various combinations of the two switches
verify that the output of the circuit is in accordance with the Truth Table shown above. Record
your observation.
Simplified Boolean function for the two outputs can be written from this truth table as:-
S = A ⊕ B ⊕ Cin
PROCEDURE
Implement the Full Adder circuit as per figure 2 above.By setting various combinations of the
two switches verify that the output of the circuit is in accordance with the Truth Table shown
above. Record your observation.
Adders that are available in integrated circuit form are parallel binary adders. A 4-Bit parallel
adder actually consists of four full adders connected in parallel. The carry output of each adder is
internally connected to the carry input of the next higher order adder. Fig 5 shows the internal
functional structure of 7483 IC in which 4 full adders are shown as separate entity. Figure 6 is
connection diagram for full adder function.
PROCEDURE:
1. Wire the circuit as per figure 4 above.
2. Use first four Logic Switches of the trainer for the inputs A0 to A3, and next four switches
for inputs B0 to B3.
3. Connect Cin (pin 13) to GND (we are assuming initial carry to be zero).
4. Use first four LEDs of the trainer to indicate Sum outputs S0 to S3, and another LED to
indicate status of the most significant carry bit Cout.
5. Connect +5V to pin 5 (Vcc) and Ground to pin 12 (GND) of the ICs.
6. By setting various combinations of the two sets of input switches verify that the output of the
circuit is in accordance with the Table shown below (only few of the possible additions have
been shown here). Record your observation.
Decimal Decimal
Binary Augend Binary Addend Binary Output Binary Output
Value value
A3 A2 A1 A0 B3 B2 B1 B0 A B Co S3 S2 S1 S0 Sum Co S3 S2 S1 S0
0 0 0 1 0 0 0 1 1 1 0 0 0 1 0 2
0 0 1 1 0 0 0 1 3 1 0 0 1 0 0 4
0 1 0 0 0 0 1 0 4 2 0 0 1 1 0 6
0 1 0 0 0 1 0 0 4 4 0 1 0 0 0 8
0 1 0 1 0 1 0 0 5 4 0 1 0 0 1 9
0 1 0 1 0 1 0 1 5 5 0 1 0 1 0 10
1 0 0 0 0 1 0 0 8 4 0 1 1 0 0 12
1 0 0 1 0 1 1 0 9 6 0 1 1 1 1 15
1 0 0 1 1 0 0 0 9 8 1 0 0 0 1 17
1 0 0 1 1 0 0 1 9 9 1 0 0 1 0 18
OBJECTIVE
(1) To learn Half and Full Subtractor Operations.
(2) To learn 4- Bit Binary Parallel Subtractor Operations.
THEORY
a. Half Subtractor :
In binary subtraction, when larger digit is to be subtracted from a smaller digit, it becomes
necessary to BORROW a value from the next higher position. Thus the binary subtraction results
in the following basic operations
0-0=0
0 - 1 = 1 , with a 1 borrowed from next higher digit position (which became 11 binary
on reaching current position).
1-0=1
1-1=0
The arithmetic element that performs this subtraction operation is called a Half Subtractor.
b. Full Subtractor :
When we have borrowed a value from a higher position, then it must be accounted for when
subtraction is performed at that higher position. The way it is done can be explained with the
following example:-
Posn 4 Posn 3 Posn 2 Posn 1 Posn 0
Minued 26 = 1 1 0 1 0
Subtrahend - 12 = 0 1 1 0 0
------- ------------------------------------------
14 = 0 1 1 1 0
At position 2 we borrowed a “1” from position 3 to carry out subtraction. When we move to
position 3 for subtraction, the position 2 should have returned the borrowed “1”, which will be
added to the Subtrahend at position 3. (Note: Minuend at Posn3 will remain 1).
We need to have two arrangement to carry out above mentioned action: first, in-addition to the
subtraction result (call it Do), the Position2 should give out another output as high (or 1) (call it
Bo- borrow out) which would indicate it’s obligation to return the borrowed “1” to position 3;
second, position three should have some input arrangement (call it Bin – borrow in), which
would take the “1” returned by position 2 and add it to the Subtrahend of position 3.
The possible combinations for full subtraction would be;
0 - 0 with a 0 as Bin = 0
0 - 0 with a 1 as Bin = 1, only if a 1 is borrowed from next higher digit position.
0 - 1 with a 1 as Bin = 0, only if a 1 is borrowed from next higher digit position.
0 - 1 with a 1 as Bin = 0, only if a 1 is borrowed from next higher digit position.
1 - 0 with a 0 as Bin = 1
1 - 0 with a 1 as Bin = 0
1 - 1 with a 0 as Bin = 0
1 - 1 with a 1 as Bin = 1, only if a 1 is borrowed from next higher digit position.
The arithmetic element that performs this subtraction operation is called a Full Subtractor.
TASK 1:
Implement Half subtractor .
Logic Diagram:
Truth Table:
TASK 2:
Implement Full Subtractor
Logic Diagram:
Truth Table:
TASK 3:
Implement 4-bit parallel subtractor operation using given IC’s. Show truth table and logic
diagram.
Logic Diagram:
Truth Table:
OBJECTIVE
To learn about Encoder and Decoder.
THEORY
An encoder circuit has more input lines and fewer output
lines.
A decimal to BCD encoder (10 line to 4 line) will convert
(at any one time) one active input out of ten to a BCD
code output.
An octal-to-binary encoder (8 line to 3 line) will convert Figure 1 4-to-2 line encoder
(at any one time) one-of-eight inputs to a binary code
output
A decoder circuit few input lines and more output lines.
A binary-to-octal decoder converts 3 binary bits into 8
outputs (only one which will be active at one time)
A BCD decoder converts a 4-bit BCD code on into 10
output outputs (only one which will be active at one
time).
A hexadecimal decoder converts a 4-bit binary code on
the input to a 1-of-16 output. Figure 2 2-to-4 line decoder
Decoders are often used in microprocessor systems to decode the address information from
the microprocessor in order to select the correct memory chip.
TASK 1: ENCODER
IC 74148 is a 8- Line-to- 3-line (octal to binary) Priority Encoder. It has 8 Inputs (0-7), an
Enable Input EI, an Enable Output EO, 3 Output (A0-A2), and a Gs Output. Details as under:
A0-A2 outputs reflect a code that is equal to the highest valued active input.
Gs output goes low any time any of the input goes low (this low signal is used for
interrupt request to CPU, when connected for the purpose).
EI and EO are used for cascading more than one 74148 together.
Functional block diagram of IC 74148 is attached. Connection diagram and Truth table of is
shown below:
INPUT OUTPUT
EI 0 1 2 3 4 5 6 7 A2 A1 A0 Gs Eo
0 X x x x x x X 0 0 1
0 x x x x x x 0 1 0 1
0 x x x x x 0 1 1 0 1
0 x x x x 0 1 1 1 0 1
0 x x x 0 1 1 1 1 0 1
0 x x 0 1 1 1 1 1 0 1
0 x 0 1 1 1 1 1 1 0 1
0 0 1 1 1 1 1 1 1 0 1
Wire the circuit as per figure above and fill in the blanks in the truth table.
TASK 2: DECODERS
IC 74138 has been used here as a decoder. It has 3-Select Inputs and 8- Data Outputs. Functional
block diagram of IC 74138 is attached. Note that the IC 74138 has Enable Inputs which we
will not use during decoder operation, therefore we will keep G1 as high and G2A and G2B as
low so that the output of Enable gate remains always high and does not interfere with our desired
result. Also note that the output of the IC is active low. Connection diagram and Truth table of
the IC 74138 when used as decoder is shown below:
Note: Output of the IC 74138 is active low , so the output line having a Zero in the Truth
Table will be selected
SELECT INPUT DATA OUTPUT
C B A O7 O6 O5 O4 O3 O2 O1 O0
0 0 0 1 1 1 1 1 1 1 0
0 0 1 1 1 1 1 1 1 0 1
0 1 0 1 1 1 1 1 0 1 1
0 1 1 1 1 1 1 0 1 1 1
1 0 0 1 1 1 0 1 1 1 1
1 0 1 1 1 0 1 1 1 1 1
1 1 0 1 0 1 1 1 1 1 1
1 1 1 0 1 1 1 1 1 1 1
TASK 3:
Design priority encoder. Show all steps and wire on trainer board.
OBJECTIVE:
To learn about Multiplexer and Demultiplexer.
THEORY:
A. Multiplexer
1. The multiplexer circuit is used to place two or more digital signals (from two or more sources)
onto a single line, by placing them there at different time intervals (technically it is known as
time-division- multiplexing).
2. The multiplexer (also known as data selector) will select data from several transmission lines
to be gated to the single output transmission line.
3. Tthe multiplexer will have a number of control inputs that are used to select the appropriate
data channel for input.
4. The number of data inputs is equal to 2n where n is the number of control select leads.
5. A multiplexer can be used to convert parallel data to serial data.
B. Demultiplexer
1. A demultiplexer (data distributor) will receive information from a single line and selectively
transmits it to several output lines/channels (one at a time).
2. Demultiplexer has several control select lines which are used to determine (or select) the
output transmission path.
3. The number of data output lines is 2n , where N is the number of control select leads.
4. Demultiplexers are used to convert serial data to parallel data.
TASK 1: MULTIPLEXER.
IC 74151 is a 8-to-1-Line Multiplexer. It has following features:-
1. 8 Data Inputs (DO- D7 ).
2. Three Select Inputs (A,B,C) .
3. An Enable (or Strobe) G
4. A one bit output Y (and its complement W)
Procedure:
Wire the circuit as per figure above. Connect “ Clock Input” (very low frequency) to Input pins
of the IC (D0 – D1) and see if the Output LED is pulsating. Confirm your finding on the truth
table. The truth table is shown below:
TASK 2: DEMULTIPLEXER
A 1-Line-to-8-Line demultiplexer distributes one input to 8 output lines. IC 74138 which was
used as a decoder in the last experiment will be used here as Demultiplexer. The only difference
between the previous circuit and present circuit will be addition of an INPUT (through Enable
AND gate) to the 4th pin of all the 8 NAND gates. The A, B and C inputs will serve as SELECT
input ( to select a particular output line).
Note that the Enable Inputs of IC 74138 was not used during decoder operation. We will
now use G2B pin of the IC for Data/Signal Input. We therefore need to keep pins G1 as high
and G2A as low, so that the Input Data/Signal remains present at output of Enable gate and
consequently on the 4th input pin of all the 8 NAND gates.
Connection diagram and Truth table of the IC 74138 when used as demultiplexer is shown
below. Clock signal (very low frequency) has been used as Input (so that blinking of the LEDs
can be observed):
Note: Output of the IC 74138 is active low , so the output line having a Zero in the Truth
Table will be selected.
Input Output
C B A O7 O6 O5 O4 O3 O2 O1 O0
0 0 0 1 1 1 1 1 1 1 0
0 0 1 1 1 1 1 1 1 0 1
0 1 0 1 1 1 1 1 0 1 1
0 1 1 1 1 1 1 0 1 1 1
1 0 0 1 1 1 0 1 1 1 1
1 0 1 1 1 0 1 1 1 1 1
1 1 0 1 0 1 1 1 1 1 1
1 1 1 0 1 1 1 1 1 1 1
Procedure:
Wire the circuit as per figure above and verify result first by giving clock signal to One Input
pin at a time of the IC (D0 – D1) and then to all the pins Simultaneously.
TASK 3:
Design the given function (assigned by the instructor) using MUX in your design.
OBJECTIVE :
To learn about various types of Latches and Flip-Flops
THEORY:
i) A Flip Flop is a logic circuit that has two stable states Low or High. Enable input signal may
be used to enable or disable a flip flop. Clock signal is used to synchronize operations of flip
flops. Most (if not all) of the system output can change state only when the clock makes a
transition.
ii) Latches are a form of Flip Flop, which do not require clock pulse to latch or hold data
present at its input.
TASK 1 : SR Latch
The SR is the simplest form of Flip Flop or Latch. It could be constructed from NOR gates or
NAND gates. Standard logic symbol of SR flip flop and its truth table is given below:-
Procedure:
Wire the circuit as per figure above and verify the result.
NOTE: NAND Gate SR Latch has active low input, hence its truth table is different from the
standard i.e a low at the set terminal will set the latch.
Procedure:
Wire the circuit as per figure above and verify the result.
Procedure:
Wire the circuit as per figure above and verify the result.
Procedure:
Wire the circuit as per figure above and verify the result.
Procedure:
1. Wire the circuit as per figure 1 & 2 above.
2. Connect +5V to Vcc and Ground to pin GND of the ICs.
VERIFICATION – D LATCH:
1. Verify that the data at the input terminal is reflected at
the output only when Enable (EN) input is high.
2. Verify that for the duration that the Enable input
remains high, all changes in the data input are reflected
at the output.
OBJECTIVE:
To learn about various types of Registers.
THEORY:
A Register is simply a group of flip-flops that can be used to store a binary number. Each flip
flop of a register (called a cell ) stores one bit of word. The bits in a binary number (let’s call it
data) can be moved from one place to another in either of two ways. The first method involves
shifting the data 1 bit at a time, in a serial fashion, beginning with either MSB (most significant
bit) or LSB (least significant bit). This technique is known as serial shifting . The second
method involves shifting all the data bits simultaneously and is referred to as parallel shifting.
There are two ways of shifting data into a register (serial or parallel) and similarly two ways
to shift data out of the register. It is therefore possible to construct four basic types of registers
as shown below:
H L X X L
L L X X H
H H ↑ H H
Functional Table of IC 7474
H H ↑ L L
H H L X QO
Pin Configuration IC 7474
Procedure:
Wire the circuit as per figure above and complete the table below.
Procedure:
Wire the circuit as per figure above and write your observation.
Procedure:
Wire the circuit as per figure above and write your observations.
CONNECTION:
1. Do not connect Pin 1 (it is for serial input)
2. Connect inputs A,B,C,D,E,F,G,H to switches S0 to S7.
3. Connect Clock Inhibit Pin 6 to Ground.
4. Connect Clock Pulse to pin 7 and also to LED L8 (for counting clock pulse)
5. (4) Connect Output QH to LED L0
6. (5) Connect a long wire to the IC pin 15 and keep other terminal of the wire hanging (due to
limited number of switches in the trainer, we will manually connect this end of the wire to ground
for data loading and keep it free (or High) for data shifting)
7. Connect Vcc and GND.
Procedure:
Wire the circuit as per figure above. Select various combination of inputs. Load the input and
then shift it to output. Observe output (the state of the LED when data is loaded shows state of
pin H).
OBJECTIVE:
To learn about Asynchronous and Synchronous Counters.
THEORY:
a) A sequential circuit that goes through a prescribed sequence of states upon the application of
input pulses is called a counter. They are used for counting the number of occurrences of an
event and are useful for generating timing sequences to control operations in a digital system.
b) A counter that follows the binary sequence is called binary counter.
c) An N bit binary counter consists of n flip-flopa and can count in binary from 0 to 2N -1.
d) In an asynchronous counter, the output of one FF (Flip-Flop) drives the CLK(Clock) input
of the next FF.
e) In a synchronous counter (or parallel counter) all the FFs are triggered simultaneously by the
clock pulse.
Procedure:
Wire the circuit as per figure above and verify the counter is counting a binary sequence, also plot timing
diagram.
Procedure:
Wire the circuit as per figure above and verify the counter is counting upto 9.
Procedure:
Wire the circuit as per figure above and verify the counter is counting upto 7.
Procedure:
Wire the circuit as per figure above and verify the counter is counting up or down as desired.
OBJECTIVE:
To learn about various types of Memory.
THEORY:
A semi-conductor memory is an integrated circuit , capable of storing a binary number.
Generally speaking, memory elements can be divided into two categories. One is called Random
Access Memory (RAM) , and the other is called Read Only Memory (ROM). RAM is where we
store Code and Data so that CPU can work on it. It is Volatile memory, that means that when
power is turned off, the contents of the memory is cleared. ROM, on the other hand retains data
stored in it.
RAM circuits on the market have different configuration depending on how the memory cell
array is organized. A memory cell array organized with N by M cells (N x M) can store N words
with each word having M bits. So a 8K x 8 RAM (IC 6116) can store 8K words, each word
having 8 bits in it.
Procedure:
1. Connect the circuit as shown above.
2. Input the data to be written (0 or 1) with the help of Input Switch.
3. Write data into the flip-flop by putting Write Enable switch to LOW.
4. Now that data has been written into the flip flop, put the Write Enable switch to High.
5. Put the Out Enable (Read) switch to HIGH to read the data written in the cell. The LED
should be on or off depending on what data has been written in.
6. Verify that the data written once, does not change unless a fresh data is written in the cell.