CSE231L Lab 7 Report PDF
CSE231L Lab 7 Report PDF
Remarks:
LAB-07-A: Introduction to Flip-Flops and Shift Registers
Objectives:
• Learn about the concept of states in digital logic and how Flip-Flop circuits can
be used to store state information.
• Understand the internal logic of J-K Flip-Flops and implement one using basic
logic gates.
• Understand the relationship between J-K, T and D Flip-Flops and observe the
characteristics of all three.
• Implement a shift register using D Flip-Flops and analyze its operation.
Apparatus:
• Trainer board
• 1 x IC 7402 2-input NOR gates
• 1 x IC 7411 3-input AND gates
• 1 x IC 7404 Hex Inverter (NOT gates)
• 2 x IC 7474 (D Flip-Flop)
Theory:
Flip-Flop:
A flip flop is an electronic circuit with two stable states that can be used to store
binary data. The stored data can be changed by applying varying inputs. Flip-
flops and latches are fundamental building blocks of digital electronics systems
used in computers, communications, and many other types of systems. Flip-
flops and latches are used as data storage elements. It is the basic storage
element in sequential logic. The basic unit for storage is flip flop. A flip-flop
maintains its output state either at 1 or 0 until directed by an input signal to
change its state.
D Flip-Flop:
D flip-flop operates with only positive clock transitions or negative clock transitions.
Whereas, D latch operates with enable signal. That means, the output of D flip-flop is
insensitive to the changes in the input, D except for active transition of the clock signal.
In D flip-flop during the occurrence of clock pulse if D=1, the output Q is set and if D=0,
the output is reset.
Figure: D flip-flop using JK flip-flop
T Flip-Flop
T flip-flop is the simplified version of JK flip-flop. It is obtained by connecting the
same input ‘T’ to both inputs of JK flip-flop. It operates with only positive clock
transitions or negative clock transitions. When T=0 there is no change in the
output. When T=1 the output switch to the complement state (ie) the output
toggles.
Figure F1: Constructing a Master slave JK Flip-Flop using AND and NOR gates.
Data Table:
Experiment-1:
Table 01: J-K Flip-Flop using AND and NOR gates.
J K Q Q’
1 0 1 0
0 0 1 0
0 1 0 1
0 0 0 1
1 1 1 0
1 0 1 0
1 0 1 0
1 1 0 1
Experiment-2:
Table 02: T and D Flip-Flops using J-K Flip-Flops.
T Q D Q
0 No Change 0 0
1 Toggle 1 1
Discussion:
The overall lab experiment was about the internal structure of different flip-flops and
implementation of shift register using flip-flops.
At the beginning of the experiment, I constructed the Master-Slave JK Flip-Flop using
AND, OR and NOR gates. As well as I designed of it.
Using JK Flip-Flop IC, I also constructed the D flip-flop IC and T flip-flop IC. For D flip-
flop IC, one input line is from D input and other input line is from negation of D input.
For T flip-flop IC, both input lines are from T input.
As a last experiment, I constructed the right shift register using D flip-flop. It was Serial
In-Serial Out(SISO) Shift Register. Constructed Shift Register consists of four D flip-
flops, which are cascaded. That means, output of one D flip-flop is connected as the
input of next D flip-flop. All these flip-flops are synchronous with each other since, the
same clock signal is applied to each one.
During experiment, Logisim stopped working itself. So I had to restart iit.
Above all, from the experiment, I learned about the internal circuit structure of
different types of flip-flops and constructing shift register using flip-flop.
LAB-7B: BCD to Seven Segment Decoder (0-15)
Objectives:
• We have to learn about various applications of decoder.
• We have to learn and understand the working of IC 7447.
• We have to learn about types of seven-segment display.
Equipment:
• Trainer board
• IC 7447, resistors, seven segment display
• Wires for connection
Theory:
A Digital Decoder IC, is a device which converts one digital format into another
and one of the most commonly used devices for doing this is called the Binary
Coded Decimal (BCD) to 7-Segment Display Decoder.
7-segment LED (Light Emitting Diode) or LCD (Liquid Crystal Display) type
displays, provide a very convenient way of displaying information or digital
data in the form of numbers, letters or even alpha-numerical characters.
Typically 7-segment displays consist of seven individual colored LED’s (called
the segments), within one single display package. In order to produce the
required numbers or HEX characters from 0 to 9 and A to F respectively, on the
display the correct combination of LED segments need to be illuminated and
BCD to 7-segment Display Decoders such as the 74LS47 do just that.
A Binary Coded Decimal (BCD) to 7-Segment Display Decoder such as the TTL 74LS47
or 74LS48, have 4 BCD inputs and 7 output lines, one for each LED segment. This allows
a smaller 4-bit binary number (half a byte) to be used to display all the denary numbers
from 0 to 9 and by adding two displays together, a full range of numbers from 00 to
99 can be displayed with just a single byte of eight data bits.
Circuit Diagram:
D C B A a b c d e f g
0 0 0 0 0 1 1 1 1 1 1 0
1 0 0 0 1 0 1 1 0 0 0 0
2 0 0 1 0 1 1 0 1 1 0 1
3 0 0 1 1 1 1 1 1 0 0 1
4 0 1 0 0 0 1 1 0 0 1 1
5 0 1 0 1 1 0 1 1 0 1 1
6 0 1 1 0 1 0 1 1 1 1 1
7 0 1 1 1 1 1 1 0 0 0 0
8 1 0 0 0 1 1 1 1 1 1 1
9 1 0 0 1 1 1 1 1 0 1 1
10 1 0 1 0 1 1 1 0 1 1 1
11 1 0 1 1 0 0 1 1 1 1 1
12 1 1 0 0 1 0 0 1 1 1 0
13 1 1 0 1 0 1 1 1 1 0 1
14 1 1 1 0 1 0 0 1 1 1 1
15 1 1 1 1 1 0 0 0 1 1 1
Task: Draw logic circuit diagram for the above truth table using 4 variable K-map Result will show as
Decimal numbers 0-9 and then A-F for (10-15) total 16 digits in 0-F serial order.
Show your work on the K-Map and Functions Here Below.
1 0 1 1 1 0 1 0 1 1 1 1
1 0 1 1 0 1 0 0 0 1 0 0
1 1 1 1 1 1 0 1 1 1 1 1
1 0 1 1 1 0 0 1 1 0 0 0
0 1 0 1 0 0 0 1 1 1 0 1
1 1 0 1 1 1 1 1 1 0 1 1
1 1 1 0 1 0 1 1 1 1 1 1
For g:
0 0 1 1
1 1 0 1
0 1 1 1
1 1 1 1