Digital Fundamentals: A Systems Approach

Similar documents
PGT104 Digital Electronics. PGT104 Digital Electronics

CHW 261: Logic Design

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

EKT 121/4 ELEKTRONIK DIGIT 1

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

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

Digital Fundamentals

CHAPTER 1 LATCHES & FLIP-FLOPS

Chapter 5 Flip-Flops and Related Devices

LATCHES & FLIP-FLOP. Chapter 7

Rangkaian Sekuensial. Flip-flop

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

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

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

D Latch (Transparent Latch)

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

Unit 11. Latches and Flip-Flops

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

INTRODUCTION TO SEQUENTIAL CIRCUITS

5: Sequential Logic Latches & Flip-flops

FLIP-FLOPS AND RELATED DEVICES

Logic Design. Flip Flops, Registers and Counters

RS flip-flop using NOR gate

Digital Circuits ECS 371

EET2411 DIGITAL ELECTRONICS

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

Review of digital electronics. Storage units Sequential circuits Counters Shifters

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.

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).

Synchronous Sequential Logic

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

Experiment 8 Introduction to Latches and Flip-Flops and registers

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

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

RS flip-flop using NOR gate

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.

DIGITAL ELECTRONICS MCQs

Chapter 11 Latches and Flip-Flops

Asynchronous (Ripple) Counters

Lecture 8: Sequential Logic

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

Today 3/8/11 Lecture 8 Sequential Logic, Clocks, and Displays

Other Flip-Flops. Lecture 27 1

Engr354: Digital Logic Circuits

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

DIGITAL CIRCUIT COMBINATORIAL LOGIC

Fig1-1 2-bit asynchronous counter

Digital Fundamentals: A Systems Approach

ELCT201: DIGITAL LOGIC DESIGN

Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany

Universal Asynchronous Receiver- Transmitter (UART)

Digital Systems Laboratory 3 Counters & Registers Time 4 hours

Chapter 4: One-Shots, Counters, and Clocks

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

Chapter 4. Logic Design

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

CHAPTER 4: Logic Circuits

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

MUHAMMAD NAEEM LATIF MCS 3 RD SEMESTER KHANEWAL

MC9211 Computer Organization

CHAPTER 4: Logic Circuits

Sequential Logic Basics

Flip-Flops and Sequential Circuit Design

EKT 121/4 ELEKTRONIK DIGIT 1

Sequential Logic Circuits

Counter dan Register

Introduction to Microprocessor & Digital Logic

Sequential Digital Design. Laboratory Manual. Experiment #3. Flip Flop Storage Elements

Counters

The NOR latch is similar to the NAND latch

Registers and Counters

Chapter 7 Counters and Registers

Sequential Digital Design. Laboratory Manual. Experiment #7. Counters

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

Computer Science 324 Computer Architecture Mount Holyoke College Fall Topic Notes: Sequential Circuits

Digital Circuit And Logic Design I. Lecture 8

Digital Circuit And Logic Design I

EEE2135 Digital Logic Design Chapter 6. Latches/Flip-Flops and Registers/Counters 서강대학교 전자공학과

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

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

6. Sequential Logic Flip-Flops

DEPARTMENT OF ELECTRICAL &ELECTRONICS ENGINEERING DIGITAL DESIGN

ECE 341. Lecture # 2

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

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

UNIT-3: SEQUENTIAL LOGIC CIRCUITS

Report on 4-bit Counter design Report- 1, 2. Report on D- Flipflop. Course project for ECE533

CHAPTER 6 COUNTERS & REGISTERS

Sequential Circuits. Output depends only and immediately on the inputs Have no memory (dependence on past values of the inputs)

Introduction to Sequential Circuits

Vignana Bharathi Institute of Technology UNIT 4 DLD

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

Unit-5 Sequential Circuits - 1

Computer Science 324 Computer Architecture Mount Holyoke College Fall Topic Notes: Sequential Circuits

Synchronous Sequential Logic

Sequential Logic and Clocked Circuits

Sri Vidya College of Engineering And Technology. Virudhunagar Department of Electrical and Electronics Engineering

Sequential logic. Circuits with feedback. How to control feedback? Sequential circuits. Timing methodologies. Basic registers

Chapter. Synchronous Sequential Circuits

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

Transcription:

Digital Fundamentals: A Systems Approach Latches, Flip-Flops, and Timers Chapter 6

Traffic Signal Control

Traffic Signal Control: State Diagram

Traffic Signal Control: Block Diagram

Traffic Signal Control: Timing Circuits

Latches A latch is a temporary storage device that has two stable states (bistable). It is a basic form of memory. The S-R (Set-Reset) latch is the most basic type. It can be constructed from NOR gates or NAND gates. With NOR gates, the latch responds to active-high inputs; with NAND gates, it responds to active-low inputs.

Latches The active-high S-R latch is in a stable (latched) condition when both inputs are LOW. Assume the latch is initially RESET (Q = 0) and the inputs are at their inactive level (0). To SET the latch (Q = 1), a momentary HIGH signal is applied to the S input while the R remains LOW. To RESET the latch (Q = 0), a momentary HIGH signal is applied to the R input while the S remains LOW.

Latches The active-low S-R latch is in a stable (latched) condition when both inputs are HIGH. Assume the latch is initially RESET (Q = 0) and the inputs are at their inactive level (1). To SET the latch (Q = 1), a momentary LOW signal is applied to the S input while the R remains HIGH. To RESET the latch a momentary LOW is applied to the R input while S is HIGH. Never apply an active set and reset at the same time (invalid).

Latches The three modes of basic S-R operation

Gated S-R Latch A gated latch is a variation on the basic latch. The gated latch has an additional input, called enable (EN) that must be HIGH in order for the latch to respond to the S and R inputs.

Gated D Latch The D latch is an variation of the S-R latch but combines the S and R inputs into a single D input as shown: A simple rule for the D latch is: Q follows D when the EN is active.

Flip-flops A flip-flop differs from a latch in the manner it changes states. A flip-flop is a clocked device, in which only the clock edge determines when a new bit is entered. The active edge can be positive or negative.

Edge-Triggered Flip-flops The output from an edgetriggered flip-flop changes on the positive-going or negative-going edge of its clock signal. A bubble on the clock input indicates that it is a negative-edge triggered flip-flop.

Edge-Triggered D Flip-flops The data bit at the D-input is transferred to the component output on the edge of the clock signal. Once triggered, the output (Q) equals the last value at the D input until a new value is triggered in.

J-K Flip-flops The values at the J and K inputs to a J-K flip-flop determine its output state. The results of the four possible input combinations of J and K are shown.

Flip-flop Asynchronous Inputs Synchronous (clocked) inputs are transferred on the triggering edge of the clock. Most flip-flops have other inputs that are asynchronous, meaning they operate independently of the clock. Asynchronous flip-flop inputs are normally labeled preset (PRE) and clear (CLR). These inputs are usually active LOW. A J-K flip flop with active LOW preset and CLR is shown. Note that the asynchronous inputs always override the synchronous inputs.

Flip-Flop Frequency Division Flip-flops can be used as frequency dividers, as shown below. The D and J-K flip flops on the left are wired as divide-by-2 circuits. The J-K flip-flops on the right are cascaded to form a divide-by-4 circuit.

Flip-flops can be used to count the number of clock signals they receive as shown here. Each CLK input triggers the flip-flops, which are wired to toggle whenever triggered. The Q A and Q B outputs indicate the number of CLK inputs received. Flip-Flop Counters

Traffic Signal Control: Sequential Logic Diagram

Flip-Flop Propagation Delay Propagation delay time is specified for the rising and falling outputs. It is measured between the 50% level of the clock to the 50% level of the output transition. Propagation delay (t PLH ) is measured as shown in (a). Propagation delay (t PHL ) is measured as shown in (b).

Flip-flop Propagation Delay Another propagation delay time specification is the time required for an asynchronous input to cause a change in the output. Again it is measured from the 50% levels.

Flip-flop Set-up Time Another time-related specification is flip-flop set-up time. This is the minimum time between the arrival of an input to the D (or J-K) flip-flop and the CLK signal.

Flip-flop Hold Time Another time-related specification is flip-flop hold time. This is the minimum time over which the input to the D (or J-K) flip-flop must remain stable after the arrival of the CLK input for reliable triggering.

One-Shots The one-shot or monostable multivibrator is a device with only one stable state. When triggered, it goes to its unstable state for a predetermined length of time, then returns to its stable state.

Nonretriggerable One-Shots A nonretriggerable one-shot does not respond to any triggers that occur while in its unstable state, as shown here.

Retriggerable One-Shots Retriggerable one-shots respond to any trigger, even if it occurs while the component is in its unstable state. If it occurs during the unstable state, the state is extended by an amount equal to its normal output pulse width.

A One-Shot Sequential Timer One-shots can be wired (as shown) to form a sequential timer; a circuit that can set up a sequence of actions, such as lighting a group of lights in a particular order.

555 Timer One-Shot The 555 timer can be configured in various ways, including as a one-shot. The pulse width is approximately t W = 1.1R 1 C 1.

555 Timer Astable Multivibrator An astable multivibrator (also called a free-running multivibrator) is a circuit that produces a steady stream of output pulses as long as power is applied. In this circuit C 1 charges through R 1 and R 2 and discharges through only R 2. The output frequency is given by: f ( R 1.44 1 2R2 ) C 1

S-R Latch with VHDL and Verilog

D Flip-Flop with VHDL and Verilog

J-K Flip-Flop with VHDL and Verilog

Traffic Signal Control: Block Diagram

Traffic Signal Control Programming Model

Latch Bistable Clock D flip-flop J-K flip-flop Key Terms A bistable digital circuit used for storing a bit. Having two stable states. Latches and flipflops are bistable multivibrators. A triggering input of a flip-flop. A type of bistable multivibrator in which the output assumes the state of the D input on the triggering edge of a clock pulse. A type of flip-flop that can operate in the SET, RESET, no-change, and toggle modes.

Propagation delay time Set-up time Hold time Timer Key Terms The interval of time required after an input signal has been applied for the resulting output signal to change. The time interval required for the input levels to be on a digital circuit. The time interval required for the input levels to remain steady to a flip-flop after the triggering edge in order to reliably activate the device. A circuit that can be used as a one-shot or as an oscillator.

Quiz 1. The output of a D latch will not change if a. the output is LOW b. Enable is not active c. D is LOW d. all of the above

Quiz 2. The D flip-flop shown will on the next clock pulse a. set b. reset c. latch d. toggle CLK D CLK Q Q

Quiz 3. How many asynchronous inputs does the J-K fllipflop below have? a. 1 b. 2 c. 3 d. 4 K Q J PRE CLK Q CLR

Quiz 4. Assume the output from a leading-edge triggered J-K flip flop is initially HIGH. With the inputs shown, on which clock pulse with the output will go from HIGH to LOW? a. 1 b. 2 c. 3 d. 4 CLK J K 1 2 3 4

Quiz 5. The time interval illustrated is called a. t PHL 50% point on triggering edge b. t PLH c. set-up time CLK d. hold time Q? 50% point on LOW-to- HIGH transition of Q

Quiz 6. The time interval illustrated is called a. t PHL b. t PLH c. set-up time D CLK d. hold time?

Quiz 7. The circuit shown below is a/an a. astable multivibrator b. data storage device c. frequency multiplier HIGH HIGH d. frequency divider J Q A J Q B f out f in CLK CLK K K

Quiz 8. The circuit shown has parallel data inputs and outputs. What kind of circuit is it? a. An astable multivibrator b. A data storage circuit c. A frequency multiplier d. A frequency divider Clock Clear Output lines Q 0 Q 1 Q 2 Q 3

9. A retriggerable one-shot with an active HIGH output has a pulse width of 20 ms and is triggered from a 60 Hz line. The output will be a a. series of 16.7 ms pulses b. series of 20 ms pulses c. constant LOW d. constant HIGH Quiz

Quiz 10. The circuit illustrated is a a. astable multivibrator b. monostable multivibrator +V CC c. frequency multiplier d. frequency divider R 1 R 2 (7) (6) RESET DISCH THRES (4) (4) V CC OUT (3) C 1 (2) TRIG CONT GND (5) (1)

Answers 1. b 2. d 3. b 4. c 5. b 6. d 7. d 8. b 9. d 10. a