PRE J. Figure 25.1a J-K flip-flop with Asynchronous Preset and Clear inputs

Similar documents
Digital Fundamentals: A Systems Approach

PGT104 Digital Electronics. PGT104 Digital Electronics

Introduction. NAND Gate Latch. Digital Logic Design 1 FLIP-FLOP. Digital Logic Design 1

The outputs are formed by a combinational logic function of the inputs to the circuit or the values stored in the flip-flops (or both).

D Latch (Transparent Latch)

Digital Fundamentals 11/2/2017. Summary. Summary. Floyd. Chapter 7. Latches

3 Flip-Flops. The latch is a logic block that has 2 stable states (0) or (1). The RS latch can be forced to hold a 1 when the Set line is asserted.

Digital Fundamentals

INTRODUCTION TO SEQUENTIAL CIRCUITS

Chapter 5 Flip-Flops and Related Devices

CHAPTER 1 LATCHES & FLIP-FLOPS

Logic Gates, Timers, Flip-Flops & Counters. Subhasish Chandra Assistant Professor Department of Physics Institute of Forensic Science, Nagpur

Flip-Flops. Because of this the state of the latch may keep changing in circuits with feedback as long as the clock pulse remains active.

LATCHES & FLIP-FLOP. Chapter 7

Unit 9 Latches and Flip-Flops. Dept. of Electrical and Computer Eng., NCTU 1

Flip-Flops and Related Devices. Wen-Hung Liao, Ph.D. 4/11/2001

EKT 121/4 ELEKTRONIK DIGIT 1

Asynchronous (Ripple) Counters

Chapter 6. Flip-Flops and Simple Flip-Flop Applications

DIGITAL ELECTRONICS MCQs

RS flip-flop using NOR gate

Figure 30.1a Timing diagram of the divide by 60 minutes/seconds counter

Unit 11. Latches and Flip-Flops

RS flip-flop using NOR gate

Logic Design. Flip Flops, Registers and Counters

Other Flip-Flops. Lecture 27 1

Digital Circuits ECS 371

(CSC-3501) Lecture 7 (07 Feb 2008) Seung-Jong Park (Jay) CSC S.J. Park. Announcement

Chapter 11 Latches and Flip-Flops

More on Flip-Flops Digital Design and Computer Architecture: ARM Edition 2015 Chapter 3 <98> 98

Counter dan Register

EMT 125 Digital Electronic Principles I CHAPTER 6 : FLIP-FLOP

Serial In/Serial Left/Serial Out Operation

Synchronous Sequential Logic

Counters

Name Of The Experiment: Sequential circuit design Latch, Flip-flop and Registers

Lecture 8: Sequential Logic

Digital Design, Kyung Hee Univ. Chapter 5. Synchronous Sequential Logic

SEQUENTIAL LOGIC. Satish Chandra Assistant Professor Department of Physics P P N College, Kanpur

Chapter 5: Synchronous Sequential Logic

Switching Circuits & Logic Design

Introduction to Sequential Circuits

Digital Fundamentals. Lab 5 Latches & Flip-Flops CETT Name: Date:

cascading flip-flops for proper operation clock skew Hardware description languages and sequential logic

6. Sequential Logic Flip-Flops

Digital Circuits I and II Nov. 17, 1999

Experiment 8 Introduction to Latches and Flip-Flops and registers

VU Mobile Powered by S NO Group

Timing Pulses. Important element of laboratory electronics. Pulses can control logical sequences with precise timing.

UNIT-3: SEQUENTIAL LOGIC CIRCUITS

Slide 1. Flip-Flops. Cross-NOR SR flip-flop S R Q Q. hold reset set not used. Cross-NAND SR flip-flop S R Q Q. not used reset set hold 1 Q.

ELCT201: DIGITAL LOGIC DESIGN

ELE2120 Digital Circuits and Systems. Tutorial Note 7

YEDITEPE UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING. EXPERIMENT VIII: FLIP-FLOPS, COUNTERS 2014 Fall

CHAPTER 4: Logic Circuits

Vignana Bharathi Institute of Technology UNIT 4 DLD

CHAPTER 4: Logic Circuits

CHAPTER 11 LATCHES AND FLIP-FLOPS

MC9211 Computer Organization

EET2411 DIGITAL ELECTRONICS

UNIT 11 LATCHES AND FLIP-FLOPS

Sequential Circuits: Latches & Flip-Flops

Chapter 4. Logic Design

DIGITAL SYSTEM FUNDAMENTALS (ECE421) DIGITAL ELECTRONICS FUNDAMENTAL (ECE422) LATCHES and FLIP-FLOPS

DIGITAL CIRCUIT LOGIC UNIT 11: SEQUENTIAL CIRCUITS (LATCHES AND FLIP-FLOPS)

EKT 121/4 ELEKTRONIK DIGIT 1

The NOR latch is similar to the NAND latch

Chapter 8 Sequential Circuits

Combinational vs Sequential

Digital Circuit And Logic Design I. Lecture 8

Digital Circuit And Logic Design I

Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany

0 0/1 0/1 0/1 0/1 0/1 0/1 0/1 0/1 1 1 Stop bits. 11-bit Serial Data format

Experiment # 9. Clock generator circuits & Counters. Digital Design LAB

Review of digital electronics. Storage units Sequential circuits Counters Shifters

Synchronous Sequential Logic

Asynchronous Counter

VTU NOTES QUESTION PAPERS NEWS RESULTS FORUMS Registers

CHW 261: Logic Design

Review of Flip-Flop. Divya Aggarwal. Student, Department of Physics and Astro-Physics, University of Delhi, New Delhi. their state.

Engr354: Digital Logic Circuits

Sequential Logic. E&CE 223 Digital Circuits and Systems (A. Kennings) Page 1

Module -5 Sequential Logic Design

ASYNCHRONOUS COUNTER CIRCUITS

FLIP-FLOPS AND RELATED DEVICES

COE 202: Digital Logic Design Sequential Circuits Part 1. Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:

Switching Theory And Logic Design UNIT-IV SEQUENTIAL LOGIC CIRCUITS

L4: Sequential Building Blocks (Flip-flops, Latches and Registers)

ECB DIGITAL ELECTRONICS PROJECT BASED LEARNING PROJECT REPORT ON 7 SEGMENT DIGITAL STOP WATCH USING DECODER

Chapter 4: One-Shots, Counters, and Clocks

5: Sequential Logic Latches & Flip-flops


ELCT201: DIGITAL LOGIC DESIGN

Digital Systems Laboratory 3 Counters & Registers Time 4 hours

CSE115: Digital Design Lecture 23: Latches & Flip-Flops

55:131 Introduction to VLSI Design Project #1 -- Fall 2009 Counter built from NAND gates, timing Due Date: Friday October 9, 2009.

EL302 DIGITAL INTEGRATED CIRCUITS LAB #3 CMOS EDGE TRIGGERED D FLIP-FLOP. Due İLKER KALYONCU, 10043

Clocks. Sequential Logic. A clock is a free-running signal with a cycle time.

Chapter 7 Counters and Registers

CHAPTER 6 COUNTERS & REGISTERS

Transcription:

Asynchronous Preset and Clear Inputs The S-R, J-K and D inputs are known as synchronous inputs because the outputs change when appropriate input values are applied at the inputs and a clock signal is applied at the clock input. If there is no clock transition then the inputs have no effect on the output. Digital circuits require that the flip-flops be set or reset to some initial state before a new set of inputs is applied for changing the output. The flip-flops are set-reset to some initial state by using asynchronous inputs known as Preset and Clear inputs. Since these inputs change the output to a known logic level independently of the clock signal therefore these inputs are known as asynchronous inputs. The circuit diagram of a J-K flip-flop with Preset and Set Asynchronous inputs is shown in figure 25.1a. The asynchronous inputs override the synchronous inputs thus to operate the flip-flop in the synchronous mode the asynchronous inputs have to be disabled. PRE J 3 1 CLK K 4 2 CLR Figure 25.1a J-K flip-flop with Asynchronous Preset and Clear inputs To preset the flip-flop to =1 and =0 the PRE input is set to 0 which sets the output to 1 and the output of NAND gate 4 to 1. The CLR input is set to 1, the remaining two inputs ( and output of NAND gate 4) of the NAND gate 2 are also set at logic 1, therefore output is set to 0. The flip-flop is cleared to =0 and =1 by setting the PRE input is set to 1 and the CLR input is to 0. The CLR input set to 0 sets =1 it also sets the output of NAND gate 3 to 1. The PRE input along with the other two inputs of NAND gate 1 are set at logic 1 which sets the output to 0. When the PRE and theclr inputs are used inputs J and K have no effect on the operation of the flip-flop. To use the flip-flop with synchronous inputs J-K, the PRE and theclr inputs are set to logic 1. Setting PRE and theclr to logic 0 is not allowed. Logic symbol of a J-K edge-triggered flip-flop with synchronous and asynchronous inputs is shown in figure 25.1b. The truth table of a J-K flip-flop with Asynchronous inputs is shown in table 25.1. The timing diagram describes the effect of asynchronous inputs on the operation of the flip-flop. Figure 25.1c Virtual University of Pakistan Page 275

PRE J CLK K J-K Flip-Flop CLR Figure 25.1b Logic Symbol of a J-K flip-flop with Asynchronous inputs Input Output PRE CLR t+1 0 0 Invalid 0 1 1 1 0 0 1 1 Clocked operation Table 25.1 Truth table of J-K flip-flop with Asynchronous inputs J K PRE CLR CLK Figure 25.1c Timing diagram of a J-K flip-flop with Preset and Clear inputs Virtual University of Pakistan Page 276

The 74HC74 Dual Positive-Edge triggered D flip-flop The edge-triggered D flip-flop with asynchronous inputs is available as an Integrated Circuit. The 74HC74 has dual D-flip-flops with independent clock inputs, synchronous and asynchronous inputs. The 74HC112 Dual Positive-Edge triggered J-K flip-flop The edge-triggered D flip-flop with asynchronous inputs is available as an Integrated Circuit. The 74HC112 has dual J-K-flip-flops with independent clock inputs, synchronous and asynchronous inputs. Master-Slave Flip-Flops Master-Slave flip-flops have become obsolete and are replaced by edge-triggered flip-flops. Master-Slave flips have two stages each stage works in one half of the clock signal. The inputs are applied in the first half of the clock signal. The outputs do not change until the second half of the clock signal. As mentioned earlier the use of edgetriggered flip-flip is to synchronize the operation of a digital circuit with a common clock signal. The master-slave setup also allows digital circuits to operate in synchronization with a common clock signal. The circuit diagram of the master-slave J-K flip-flop is shown in figure 25.2a. The Master-Slave flip-flop is composed of two parts the Master and the Slave. Both the Master and the Slave are Gated S-R flip-flops. The Master-Slave flip-flop is not synchronised with the clock positive or negative transition, rather it known as a pulse triggered flip-flop as it operates at the positive and negative clock cycles. Consider that the J-K inputs of the flip-flop are set at 1 and 0 respectively. The outputs and are initially set at 1 and 0 respectively. During the positive half of the clock gates 3 and 4 are both enabled by the clock signal. The output of gate 3 is set to 1 due to the output set at 0. Similarly the output of gate 4 is also set at 1 due to the K input set at 0. The outputs of gates 1 and 2 remain unchanged as the inputs to gates 1 and 2 are both logic 1. Assume the outputs of gates 1 and 2 to be 1 and 0 respectively. During the positive half cycle, the clock input to gates 7 and 8 is inverted therefore both the gates are disabled and their output is set to logic 1. With logic 1 at the inputs of gates 5 and 6 the output and remains unchanged throughout the positive half of the clock cycle. During the negative half of the clock cycle the Master flip-flop is disabled and the output of the Master flip-flop remains fixed during the negative half cycle. The Slave flip-flop is enabled and the 1 and 0 outputs of the Master flip-flop set the and output to 1 and 0 respectively. Initially, if the and outputs are 0 and 1 respectively, setting the J and K inputs to 1 and 0 respectively sets the output to 1 and 0 respectively. During the positive half of the clock the Master flip-flop is enabled, the output of gate 3 is set to 0 as the J, and CLK inputs are all at logic 1. The output of gate 4 is set to 1 as the K input is logic 0. These inputs set the output of the Master flip-flop at gates 1 and 2 to logic 1 and 0 respectively. During the negative half of the clock cycle the Slave flip-flop is enabled the output and are set to logic 1 and 0 respectively. Virtual University of Pakistan Page 277

J 3 1 7 5 CLK K 4 2 8 MASTER SLAVE Figure 25.2a Master-Slave flip-flop 6 The truth-table of the master-slave flip-flop is shown in table 25.2. The timing diagram of the master-slave flip-flop is shown in figure 25.2b. Input Output CLK J K t+1 Pulse 0 0 t Pulse 0 1 0 Pulse 1 0 1 Pulse 1 1 t Table 25.2 Truth table of the Master-Slave J-K flip-flop J K CLK Figure 25.2b Timing diagram of a Master Slave J-K flip-flop Virtual University of Pakistan Page 278

Flip-Flop Operating Characteristics The performance of the flip-flop is specified by several operating characteristics mentioned in the data sheets of the flip-flops. The important operating characteristics are Propagation Delay Set-up Time Hold Time Maximum Clock frequency Pulse width Power Dissipation Propagation Delay The propagation delay time is the interval of time when the input is applied and the output changes. Four different types of Propagation Delays are measured. 1. Propagtaion Delay t PLH measured with respect to the triggering edge of the clock to the low-to-high transition of the output. Figure 25.3. On a positive or negative clock transition the flip-flop changes its output state. The Propagation Delay is measured at 50% transition mark on the triggering edge of the clock and the 50% mark on the low-to-high transition of the output that occurs due to the clock transition. 2. Propagtaion Delay t PHL measured with respect to the triggering edge of the clock to the high-to-low transition of the output. Figure 25.4. On a positive or negative clock transition the flip-flop changes its output state. The Propagation Delay is measured at 50% transition mark on the triggering edge of the clock and the 50% mark on the high-to-low transition of the output that occurs due to the clock transition. Figure 25.3 Propagation Delay, clock to low-to-high transition of the output 3. Propagtaion Delay t PLH measured with respect to the leading edge of the preset input to the low-to-high transition of the output. Figure 25.5. On a high-to-low transition of the preset signal the flip-flop changes its output state to logic high. The Propagation Delay is measured at 50% transition mark on the triggering edge of the preset signal and the 50% mark on the low-to-high transition of the output that occurs due to the preset signal. Virtual University of Pakistan Page 279

Figure 25.4 Propagation Delay, clock to high-to-low transition of the output Figure 25.5 Propagation Delay, preset to low-to-high transition of the output 4. Propagtaion Delay t PHL measured with respect to the leading edge of the clear input to the high-to-low transition of the output. Figure 25.6. On a high-to-low transition of the clear signal the flip-flop changes its output state to logic low. The Propagation Delay is measured at 50% transition mark on the triggering edge of the clear signal and the 50% mark on the high-to-low transition of the output that occurs due to the preset signal. Figure 25.6 Propagation Delay, clear to high-to-low transition of the output Virtual University of Pakistan Page 280

Set-up Time When a clock transition occurs at the clock input of a flip-flop the output of the flip-flop is set to a new state based on the inputs. For the flip-flop to change its output to a new state at the clock transition, the input should be stable. The minimum time required for the input logic levels to remain stable before the clock transition occurs is known as the Set-up time. Figure 25.7 Figure 25.7 Set-up time for a D flip-flop Hold Time The input signal maintained at the flip-flop input has to be maintained for a minimum time after the clock transition for the flip-flop to reliably clock in the input signal. The minimum time for which the input signal has to be maintained at the input is the Hold time of the flip-flop. Figure 25.8 Figure 25.8 Hold time for a D flip-flop Maximum Clock Frequency A flip-flop can be operated at a certain clock frequency. If the clock frequency is increased beyond a certain limit the flip-flop will be unable to respond to the fast changing clock transitions, therefore the flip-flop will be unable to function. The maximum clock frequency f max is the highest rate at which the flip-flop operates reliably. Virtual University of Pakistan Page 281

Pulse Width A flip-flop uses the clock, preset and clear inputs for its operation. Each signal has to be of a specified duration for correct operation of the flip-flop. The manufacturer specifies the minimum pulse width t w for each of the three signals. The clock signal is specified by minimum high time and minimum low time. Power Dissipation A flip-flop consumes power during its operation. The power consumed by a flipflop is defined by P = V cc x I cc. The flip-flop is connected to +5 volts and it draws 5 ma of current during its operation, therefore the power dissipation of the flip-flop is 25 mw. A digital circuit is made of a number of gates, functional units and flip-flops. The total power requirement of each device should be known so that an appropriate dc power source is used to supply power to the digital circuit. One-Shot Mono-stable multi-vibrator Bi-stable devices remain in either of their two states unless the inputs force the device to switch its state. The device remains in its alternate state unless the inputs are changed again to force the device back to its original state. A mono-stable device only has a single stable state and it remains in its stable state. It temporarily changes to its unstable state when it is triggered. It remains in its unstable state for a predetermined length of time and then it automatically switches back to its stable state. The length of time for which the device remains in the unstable state is determined by the time constant determined by the Resistor and Capacitor connected externally to the mon-stable device. The output of the device is a pulse having a time duration determined by R and C. These mono-stable devices are also known as One-Shots. Figure 25.9. One-Shots are of two types, the nonretriggerable and retriggerable. Figure 25.9a Circuit diagram of a One-Shot Virtual University of Pakistan Page 282

Figure 25.9b Timing diagram of a One-Shot The One-Shot is triggered by applying a short pulse at the input of the NOR gate at time interval t 1. The One-Shot is in its stable state with output at logic zero at time interval < t 1. The logic high triggering pulse at the input of the NOR gate sets its output to logic low. The logic low output of the NOR gate is inverted into logic high by the NOT gate and the One-Shot is in unstable state at the start of interval t 1. The logic high output of the NOT gate is connected back to the second input of the NOR gate, which maintains the output of the NOR gate at logic low. When the output of the NOR gate is set to logic low at interval t 1, the capacitor C begins charging through the Resistor R. The charging time (in seconds) is determined by the time constant RC. During the charging of the capacitor during interval t 1 to t 2, the input of the NOT gate remains at logic low, therefore the output of the NOT gate remains in the unstable state at logic high. When the capacitor is fully charged to potential +V (logic high) at time interval t 2, the NOT gate input also become logic high, which sets the output of the NOT gate to logic low. With the setting of the NOT gate output to logic low at interval t 2, the One-Shot id switched back to its stable state. The interval t 1 to t 2 during which the One-Shot is in its unstable state is determined by the time constant RC. 1. Nonretriggerable One-Shot A nonretriggerable One Shot is triggered to its unstable state. a. The One-Shot output remains in the unstable state for a fixed period of time on each trigger input. b. The One-Shot will have to return to its stable state before it can be triggered again. If it is already in its unstable state due to application of a trigger input, a new trigger input will have no effect. c. The duration of trigger input pulses has no effect on the output pulse duration. The One-Shot is triggered either on the positive or the negative edge. Figure 25.10 Virtual University of Pakistan Page 283

Figure 25.10a Timing diagram of a non-retriggerable One-Shot Figure 25.10b Timing diagram of a non-retriggerable One-Shot with ignored triggers 2. Retriggerable One-Shot A retriggerabe One-Shot operation is very similar to that of the Nonretriggerbale One- Shot except that the retriggerable One-Shot will retrigger even if it is in its unstable state. Figure 25.11. The retriggerable and Nonretriggerbale are available in Integrated Circuit form. Figure 25.11 Timing diagram of a Retriggerable One-Shot Virtual University of Pakistan Page 284