Electrical Engineering (EE) Exam  >  Electrical Engineering (EE) Notes  >  Digital Electronics  >  D-Type Flip Flops: S-R Flip Flops

D-Type Flip Flops: S-R Flip Flops | Digital Electronics - Electrical Engineering (EE) PDF Download


D Type Flip-flops

D-Type Flip Flops: S-R Flip Flops | Digital Electronics - Electrical Engineering (EE)
 

 

D-Type Flip Flops: S-R Flip Flops | Digital Electronics - Electrical Engineering (EE)

 

D Type Flip-flops

The major drawback of the SR flip-flop (i.e. its indeterminate output and non-allowed logic states) described in Digital Electronics Module 5.2 is overcome by the D type flip-flop. This flip-flop, shown in Fig. 5.3.1 together with its truth table and a typical schematic circuit symbol, may be called a Data flip-flop because of its ability to ‘latch’ and remember data, or a Delay flip-flop because latching and remembering data can be used to create a delay in the progress of that data through a circuit. To avoid the ambiguity in the title therefore, it is usually known simply as the D Type. The simplest form of D Type flip-flop is basically a high activated SR type with an additional inverter to ensure that the S and R inputs cannot both be high or both low at the same time. This simple modification prevents both the indeterminate and non-allowed states of the SR flip-flop. The S and R inputs are now replaced by a single D input, and all D type flip-flops have a clock input.

 

Operation. 

As long as the clock input is low, changes at the D input make no difference to the outputs. The truth table in Fig. 5.3.1 shows this as a ‘don’t care’ state (X). The basic D Type flip-flop shown in Fig. 5.3.1 is called a level triggered D Type flip-flop because whether the D input is active or not depends on the logic level of the clock input.

Provided that the CK input is high (at logic 1), then whichever logic state is at D will appear at output Q and (unlike the SR flip-flops) D-Type Flip Flops: S-R Flip Flops | Digital Electronics - Electrical Engineering (EE) is always the inverse of Q).

In Fig. 5.3.1, if D = 1, then S must be 1 and R must be 0, therefore Q is SET to 1.

Alternatively,

If D = 0 then R must be 1 and S must be 0, causing Q to be reset to 0.

The Data Latch

The name Data Latch refers to a D Type flip-flop that is level triggered, as the data (1 or 0) appearing at D can be held or ‘latched’ at any time whilst the CK input is at a high level (logic 1).

As can be seen from the timing diagram shown in Fig 5.3.2, if the data at D changes during this time, the Q output assumes the same logic level as the D.

 

Ripple Through

Fig. 5.3.2 also illustrates a possible problem with the level triggered D type flip-flop; if there are changes in the data during period when the clock pulse is at its high level, the logic state at Q changes in sympathy with D, and only ‘remembers’ the last input state that occurred during the clock pulse, (period RT in Fig. 5.3.2). This effect is called ‘Ripple Through’, and although this allows the level triggered D Type flip-flop to be used as a data switch, only allowing data through from D to Q as long as CK is held at logic 1, this may not be a desirable property in many types of circuit.
 

D-Type Flip Flops: S-R Flip Flops | Digital Electronics - Electrical Engineering (EE)

 

The Edge Triggered D Type Flip-flop

Fortunately ripple though can be largely prevented by using the Edge Triggered D Type flip-flop illustrated in Fig 5.3.3.

The clock pulse applied to the flip-flop is reduced to a very narrow positive going clock pulse of only about 45ns duration, by using an AND gate and applying the clock pulse directly to input ‘a’ but delaying its arrival at input ‘b’ by passing it through 3 inverters. This inverts the pulse and also delays it by three propagation delays, (about 15ns per inverter gate for 74HC series gates). The AND gate therefore produces logic 1 at its output only for the 45ns when both ‘a’ and ‘b’ are at logic 1 after the rising edge of the clock pulse.

 

D-Type Flip Flops: S-R Flip Flops | Digital Electronics - Electrical Engineering (EE)

 

D-Type Flip Flops: S-R Flip Flops | Digital Electronics - Electrical Engineering (EE)

Synchronous and Asynchronous Inputs 

A further refinement in Fig. 5.3.3 is the addition of two further inputs SET and RESET, which are actually the original S and Rinputs of the basic low activated SR flip-flop.

Notice that there is now a subtle difference between the active low Set D-Type Flip Flops: S-R Flip Flops | Digital Electronics - Electrical Engineering (EE) and Reset D-Type Flip Flops: S-R Flip Flops | Digital Electronics - Electrical Engineering (EE) inputs, and the D input. The D input is SYNCHRONOUS, that is its action is synchronised with the clock, but the D-Type Flip Flops: S-R Flip Flops | Digital Electronics - Electrical Engineering (EE) inputs are ASYNCHRONOUS i.e. their action is NOT synchronised with the clock. The SET and RESET inputs in Fig 5.3.4 are ‘low activated’, which is shown by the inversion circles at the S and R inputs to indicate that they are really  D-Type Flip Flops: S-R Flip Flops | Digital Electronics - Electrical Engineering (EE) .

The flip-flop is positive edge triggered, which is shown on the CK input in Fig 5.3.4 by the wedge symbol. A wedge accompanied by an inversion circle would indicate negative (falling) edge triggering, though this is generally not used on D Type flip-flops.

 

Timing Diagram

The ‘Edge triggered D type flip-flop with asynchronous preset and clear capability’, although developed from the basic SR flip-flop becomes a very versatile flip-flop with many uses. A timing diagram illustrating the action of a positive edge triggered device is shown in Fig. 5.3.5.

At the positive going edges of clock pulses a and b, the D input is high so Q is also high.

Just before pulse c the D input goes low, so at the positive going edge of pulse c, Q goes low.

Between pulses c and d the asynchronous D-Type Flip Flops: S-R Flip Flops | Digital Electronics - Electrical Engineering (EE) input goes low and immediately sets Q high.

The flip-flop then ignores pulse d while D-Type Flip Flops: S-R Flip Flops | Digital Electronics - Electrical Engineering (EE) is low, but as D-Type Flip Flops: S-R Flip Flops | Digital Electronics - Electrical Engineering (EE) returns high, and D has also returned to its high state before pulse e, Q remains high during pulse e.

At the positive going edge of pulse h, the low level of input D remains, keeping Q low, but between pulses h and i, the S input goes low, overriding any action of D and immediately making Q high.

D is still high at the positive going edge of pulse f, and because the flip-flop is positive edge triggered, the change in the logic level of D during pulse f is ignored until the positive going edge of pulse g, which resets Q to its low level.

Clock pulse i is again ignored, due to D-Type Flip Flops: S-R Flip Flops | Digital Electronics - Electrical Engineering (EE) being in its active low state and Q remains high, under the control of D-Type Flip Flops: S-R Flip Flops | Digital Electronics - Electrical Engineering (EE) until just before pulse j. At the positive going edge of pulse j, input D regains control, but as D is high and Q is already high, no change in output Q occurs.

Finally, just before pulse k, the asynchronous reset input D-Type Flip Flops: S-R Flip Flops | Digital Electronics - Electrical Engineering (EE)goes low and resets Q to its low level (logic 0), which again causes the D input to be ignored.

The document D-Type Flip Flops: S-R Flip Flops | Digital Electronics - Electrical Engineering (EE) is a part of the Electrical Engineering (EE) Course Digital Electronics.
All you need of Electrical Engineering (EE) at this link: Electrical Engineering (EE)
115 videos|71 docs|58 tests

Top Courses for Electrical Engineering (EE)

FAQs on D-Type Flip Flops: S-R Flip Flops - Digital Electronics - Electrical Engineering (EE)

1. What is a D-Type Flip Flop?
Ans. A D-type flip flop is a type of sequential logic circuit that can store one bit of information. It consists of two inputs, D (data) and CLK (clock), and two outputs, Q (output) and Q' (complement output). The D input determines the value of the output, which is updated at every rising edge of the clock signal.
2. How does a D-Type Flip Flop differ from an S-R Flip Flop?
Ans. The main difference between a D-type flip flop and an S-R flip flop is that the D-type flip flop has only one input, the D input, which directly sets the value of the output. In contrast, an S-R flip flop has two inputs, S (set) and R (reset), which can be used to set or reset the output. D-type flip flops are more commonly used in digital systems due to their simplicity and reliability.
3. What is the advantage of using D-Type Flip Flops?
Ans. D-type flip flops have several advantages, including: - Simplicity: D-type flip flops have only one input, making them easier to understand and implement compared to other types of flip flops. - Stability: D-type flip flops are less prone to glitches and errors because the output is only updated at the rising edge of the clock signal. - Versatility: D-type flip flops can be easily cascaded together to create larger storage registers or shift registers, making them highly versatile in digital systems.
4. How do S-R Flip Flops work?
Ans. S-R flip flops work based on the inputs S (set) and R (reset). When the S input is set to 1 and the R input is set to 0, the output of the flip flop is set to 1. Conversely, when the S input is set to 0 and the R input is set to 1, the output is reset to 0. When both inputs are set to 0 or both inputs are set to 1, the output remains unchanged. S-R flip flops are commonly used in applications where the set and reset functionality is required.
5. Can a D-Type Flip Flop be used as an S-R Flip Flop?
Ans. No, a D-type flip flop cannot be directly used as an S-R flip flop because it lacks the separate set and reset inputs. However, it is possible to construct an S-R flip flop using a D-type flip flop and additional logic gates. By connecting the D input to the S input and the complement of the D input to the R input, the behavior of the D-type flip flop can be modified to mimic that of an S-R flip flop.
115 videos|71 docs|58 tests
Download as PDF
Explore Courses for Electrical Engineering (EE) exam

Top Courses for Electrical Engineering (EE)

Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev
Related Searches

Free

,

Viva Questions

,

MCQs

,

D-Type Flip Flops: S-R Flip Flops | Digital Electronics - Electrical Engineering (EE)

,

Extra Questions

,

D-Type Flip Flops: S-R Flip Flops | Digital Electronics - Electrical Engineering (EE)

,

Important questions

,

Summary

,

Previous Year Questions with Solutions

,

practice quizzes

,

pdf

,

mock tests for examination

,

Semester Notes

,

shortcuts and tricks

,

video lectures

,

past year papers

,

D-Type Flip Flops: S-R Flip Flops | Digital Electronics - Electrical Engineering (EE)

,

Exam

,

Sample Paper

,

study material

,

ppt

,

Objective type Questions

;