Professional Documents
Culture Documents
Final Report
Final Report
MICROPROCESSOR SYSTEMS
D FLIP-FLOP
PRESENTED BY:
ACEDERA, NORWYN C. MOLINES, RYAN
ADVIENTO, JOHNY NICOLAS, DUSTIN
AGUB, FITZGERALD OYARDO, LAURENZ
APUYAN, JOHN JORIE PANGILINAN, NENITO
ARELLANO, JOEMARI PRESENTED BY:
BABIJIS, RODIRIGO SARMIENTO, NIÑO
BACTOL, LUCKY G. SUMODEBILA, MARK JANN
BENSURTO, CARLO M. TORERO, LOUIS JOHN
YR./SEC.: BSEE 5- 1
DATE: 12/10/19
SUBMITTED TO:
ENGR. RONALDO TINIO
D Type Flip-Flop: Circuit, Truth Table and Working
The term digital in electronics represents the data generation, processing or storing in the form of
two states. The two states can be represented as HIGH or LOW, positive or non-positive, set or
reset which is ultimately binary. The high is 1 and low is 0 and hence the digital technology is
expressed as series of 0’s and 1’s. An example is 011010 in which each term represents an
individual state. Thus, this latching process in hardware is done using certain components like latch
or Flip-flop, Multiplexer, Demultiplexer, Encoders, Decoders and etc collectively called
as Sequential logic circuits.
So, we are going to discuss about the Flip-flops also called as latches. The latches can also be
understood as Bistable Multivibrator as two stable states. Generally, these latch circuits can be
either active-high or active-low and they can be triggered by HIGH or LOW signals respectively.
The common types of flip-flops are,
1. RS Flip-flop (RESET-SET)
2. D Flip-flop (Data)
3. JK Flip-flop (Jack-Kilby)
4. T Flip-flop (Toggle)
Out of the above types only JK and D flip-flops are available in the integrated IC form and also used
widely in most of the applications. Here in this article we will discuss about D type Flip Flop.
D Flip-flop:
D Flip-flops are used as a part of memory storage elements and data processors as well. D flip-flop
can be built using NAND gate or with NOR gate. Due to its versatility they are available as IC
packages. The major applications of D flip-flop are to introduce delay in timing circuit, as a buffer,
sampling data at specific intervals. D flip-flop is simpler in terms of wiring connection compared to JK
flip-flop. Here we are using NAND gates for demonstrating the D flip flop
Whenever the clock signal is LOW, the input is never going to affect the output state. The
clock has to be high for the inputs to get active. Thus, D flip-flop is a controlled Bi-stable latch where
the clock signal is the control signal. Again, this gets divided into positive edge triggered D flip
flop and negative edge triggered D flip-flop. Thus, the output has two stable states based on the
inputs which have been discussed below.
Truth table of D Flip-Flop:
INPUT OUTPUT
Clock
D Q Q’
LOW x 0 1
HIGH 0 0 1
HIGH 1 1 0
The D(Data) is the input state for the D flip-flop. The Q and Q’ represents the output states of the
flip-flop. According to the table, based on the inputs the output changes its state. But, the important
thing to consider is all these can occur only in the presence of the clock signal. This, works exactly
like SR flip-flop for the complimentary inputs alone.
Thus, comparing the NAND gate truth table and applying the inputs as given in D flip-flop truth table
the output can be analysed. Analysing the above assembly as a three stage structure considering
previous state(Q’) to be 0
when D = 1 and CLOCK = HIGH
Output : Q = 1, Q’ = 0. Working is correct.
IC Package:
The IC used here is HEF4013BP (Dual D-type flip-flop). It is a 14 pin package which contains 2
individual D flip-flop in it. Below are the pin diagram and the corresponding description of the pins.
Pin
Diagram of D flip-flop IC HEF4013BP
PIN PIN Description
Q True Output
Q’ Compliment Output Components Required:
CP Clock Input
1. IC HEF4013BP (Dual D flip-flop) – 1No.
CD CLEAR-Direct input 2. LM7805 – 1No.
D Data input 3. Tactile Switch – 4No.
4. 9V battery – 1No.
SD PRESET-Direct input 5. LED (Green – 1; Red – 1)
VSS Ground 6. Resistors (1kὨ - 4; 220kὨ -2)
7. Breadboard
VDD Supply voltage 8. Connecting wires
The pins CLK, CL, D and PR are normally pulled down in initial state as shown below. Hence,
default input state will be LOW across all the pins. Thus, the initial state according to the truth table
is as shown above. Q=1, Q’=0.
Below we have described the various states of D type Flip-Flop using D flip flop circuit made on
breadboard.
State 1:
Clock – LOW; D – 0 ; PR – 0 ; CL – 1 ; Q – 0 ; Q’ – 1
For the State 1 inputs the RED led glows indicating the Q’ to be HIGH and GREEN led shows Q to
be LOW. As discussed above when CLEAR is set to HIGH, Q is reset to 0 and can be seen above.
State 2:
Clock – LOW ; D – 0 ; PR – 1 ; CL – 0 ; Q – 1 ; Q’ – 0
For the State 2 inputs the GREEN led glows indicating the Q to be HIGH and RED led shows Q’ to
be LOW. As discussed above when PRESET is set to HIGH, Q is set to 1 and can be seen above.