Chapter 9 Latches, Flip-Flops, and Timers



Similar documents
Digital Fundamentals

ETEC 2301 Programmable Logic Devices. Chapter 10 Counters. Shawnee State University Department of Industrial and Engineering Technologies

Lesson 12 Sequential Circuits: Flip-Flops

CHAPTER 11 LATCHES AND FLIP-FLOPS

Experiment # 9. Clock generator circuits & Counters. Eng. Waleed Y. Mousa

Fig1-1 2-bit asynchronous counter

Memory Elements. Combinational logic cannot remember

Module 3: Floyd, Digital Fundamental

A Lesson on Digital Clocks, One Shots and Counters

Counters. Present State Next State A B A B

Engr354: Digital Logic Circuits

Master/Slave Flip Flops

BINARY CODED DECIMAL: B.C.D.

EE 42/100 Lecture 24: Latches and Flip Flops. Rev B 4/21/2010 (2:04 PM) Prof. Ali M. Niknejad

Wiki Lab Book. This week is practice for wiki usage during the project.

ECE380 Digital Logic

Latches, the D Flip-Flop & Counter Design. ECE 152A Winter 2012

A Lesson on Digital Clocks, One Shots and Counters

So far we have investigated combinational logic for which the output of the logic devices/circuits depends only on the present state of the inputs.

Having read this workbook you should be able to: recognise the arrangement of NAND gates used to form an S-R flip-flop.

Sequential Logic Design Principles.Latches and Flip-Flops

1. Learn about the 555 timer integrated circuit and applications 2. Apply the 555 timer to build an infrared (IR) transmitter and receiver

SEQUENTIAL CIRCUITS. Block diagram. Flip Flop. S-R Flip Flop. Block Diagram. Circuit Diagram

DIGITAL TECHNICS II. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute

ARRL Morse Code Oscillator, How It Works By: Mark Spencer, WA8SME

To design digital counter circuits using JK-Flip-Flop. To implement counter using 74LS193 IC.

MM74HC4538 Dual Retriggerable Monostable Multivibrator

Fairchild Semiconductor Application Note July 1984 Revised May Definition

Modeling Sequential Elements with Verilog. Prof. Chien-Nan Liu TEL: ext: Sequential Circuit

Contents COUNTER. Unit III- Counters

Chapter 8. Sequential Circuits for Registers and Counters

DIGITAL ELECTRONICS. Counters. By: Electrical Engineering Department

Flip-Flops, Registers, Counters, and a Simple Processor

Lecture-3 MEMORY: Development of Memory:

DATA SHEETS DE COMPONENTES DA FAMÍLIA LÓGICA TTL GATES AND INVERTERS POSITIVES NAND GATES AND INVERTERS DESCRIÇÃO

Digital Logic Design Sequential circuits

Combinational Logic Design Process

Designing With the SN54/74LS123. SDLA006A March 1997

NOTE: The Flatpak version has the same pinouts (Connection Diagram) as the Dual In-Line Package.

Theory of Logic Circuits. Laboratory manual. Exercise 3

Standart TTL, Serie Art.Gruppe

Digital Systems Based on Principles and Applications of Electrical Engineering/Rizzoni (McGraw Hill

Features. Applications

WEEK 8.1 Registers and Counters. ECE124 Digital Circuits and Systems Page 1

Sequential Logic. (Materials taken from: Principles of Computer Hardware by Alan Clements )

Upon completion of unit 1.1, students will be able to

NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter

Asynchronous Counters. Asynchronous Counters

DIGITAL COUNTERS. Q B Q A = 00 initially. Q B Q A = 01 after the first clock pulse.

Set-Reset (SR) Latch

Flip-Flops and Sequential Circuit Design. ECE 152A Winter 2012

Flip-Flops and Sequential Circuit Design

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

CDA 3200 Digital Systems. Instructor: Dr. Janusz Zalewski Developed by: Dr. Dahai Guo Spring 2012

Lecture 8: Synchronous Digital Systems

Counters and Decoders

TS555. Low-power single CMOS timer. Description. Features. The TS555 is a single CMOS timer with very low consumption:

Modeling Latches and Flip-flops

SN54/74LS192 SN54/74LS193

COMBINATIONAL and SEQUENTIAL LOGIC CIRCUITS Hardware implementation and software design

INTEGRATED CIRCUITS. NE558 Quad timer. Product data Supersedes data of 2001 Aug Feb 14

74AC191 Up/Down Counter with Preset and Ripple Clock

Decimal Number (base 10) Binary Number (base 2)

Sequential Logic: Clocks, Registers, etc.

CSE140: Components and Design Techniques for Digital Systems

Obsolete Product(s) - Obsolete Product(s)

Counters & Shift Registers Chapter 8 of R.P Jain

Timing Methodologies (cont d) Registers. Typical timing specifications. Synchronous System Model. Short Paths. System Clock Frequency

Chapter 7. Registers & Register Transfers. J.J. Shann. J. J. Shann

2 : BISTABLES. In this Chapter, you will find out about bistables which are the fundamental building blocks of electronic counting circuits.

DATA SHEET. HEF40193B MSI 4-bit up/down binary counter. For a complete data sheet, please also download: INTEGRATED CIRCUITS

CS311 Lecture: Sequential Circuits

Digital Logic Design. Basics Combinational Circuits Sequential Circuits. Pu-Jen Cheng

CHAPTER 11: Flip Flops

INTEGRATED CIRCUITS. For a complete data sheet, please also download:

Operational Amplifier as mono stable multi vibrator

Designer s Encyclopedia of Bipolar One-Shots

74LS193 Synchronous 4-Bit Binary Counter with Dual Clock

NOTE: The Flatpak version has the same pinouts (Connection Diagram) as the Dual In-Line Package.

Chapter 5. Sequential Logic

DM74LS169A Synchronous 4-Bit Up/Down Binary Counter

LAB #4 Sequential Logic, Latches, Flip-Flops, Shift Registers, and Counters

DIGITAL TECHNICS II. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute. 2nd (Spring) term 2012/2013

7. Latches and Flip-Flops

INTEGRATED CIRCUITS. For a complete data sheet, please also download:

ASYNCHRONOUS COUNTERS

A Digital Timer Implementation using 7 Segment Displays

Asynchronous counters, except for the first block, work independently from a system clock.

css Custom Silicon Solutions, Inc.

DEPARTMENT OF INFORMATION TECHNLOGY


CD4093BM CD4093BC Quad 2-Input NAND Schmitt Trigger

DM74LS112A Dual Negative-Edge-Triggered Master-Slave J-K Flip-Flop with Preset, Clear, and Complementary Outputs

Introduction to CMOS VLSI Design (E158) Lecture 8: Clocking of VLSI Systems

DM74LS191 Synchronous 4-Bit Up/Down Counter with Mode Control

On/Off Controller with Debounce and

EXPERIMENT 8. Flip-Flops and Sequential Circuits

PROGETTO DI SISTEMI ELETTRONICI DIGITALI. Digital Systems Design. Digital Circuits Advanced Topics

DM74121 One-Shot with Clear and Complementary Outputs

Transcription:

ETEC 23 Programmable Logic Devices Chapter 9 Latches, Flip-Flops, and Timers Shawnee State University Department of Industrial and Engineering Technologies Copyright 27 by Janna B. Gallaher

Latches A temporary storage device that has two stable states (bistable) The S-R (Set-Reset) Latch (also called a multivibrator) When Q is HIGH, Q is LOW, and when Q is LOW, Q is high Inputs Outputs Co mments S R Q Q NC NC Latch SET Latch RESET Invalid condition No change. Latch re ma ins in pres ent state Truth Table for an Active-Low Input S-R latch.

Latches An Application Switch Debouncing Switch contacts bounce when they make, creating several on/off signals that the logic will interpret as several switch closures. The latch will change state on the first transition and remain there until reset.

Latches The 74LS279 Set-Reset Latch This is a quad package. Note that each latch has two active low set inputs and an active high output.

Latches The Gated S-R Latch Includes an Enable line The output state changes only when the enable line is brought high Note the pulses on the EN line that change the state of Q depending on the S or R input state.

Latches The Gated D Latch D Latches are simpler circuits than the S-R latch The Output (Q) follows the input only when the Enable line is high. Note that the output only follows the input when the enable is High

Latches The 74LS75 D Latch This is a quad D Latch package with 4 Latches but only 2 Enable lines.

Edge-Triggered Flip-Flops Flip-flops are synchronous bistable devices known as bistable multivibrators They are edge triggered to insure a known transition point (although there have been some level triggered devices in the past) Their inputs change on a control input called the clock (CLK) All changes occur in sync with the clock input

Edge-Triggered Flip-Flops Edge-triggered flip-flop Three styles of flip-flops: S-R, D, and J-K all of which are edge-triggered (note the > on the C input) The top row is positive edge triggered The bottom row is negative edge triggered

Edge-Triggered Flip-Flops The Edge-Triggered S-R Flip-Flop Note that this is a positive edge triggered device. The S-R flip-flop is not available in IC form.

Edge-Triggered Flip-Flops A Method of Edge-Triggering Simplified type of pulse transition detector. The NAND gates insure that the S and R inputs only reach the latch when the CLK pulse goes high. The Pulse transition Detector, looks for the rising edge of the CLK input

Edge-Triggered Flip-Flops The Edge-Triggered D Flip-Flop Making a D Flip-Flop from a S-R Flip-Flop Inputs Outputs Co mments D CLK Q Q SET (stores a ) RESET (stores a )

Edge-Triggered Flip-Flops The Edge-Triggered J-K Flip-Flop The J-K flip-flop has no invalid state (the S-R does) Note that the Q output is connected back into the G2 input and the Not-Q is connected to the G input. Inputs Outputs Co mments J K CLK Q Q Q Q RESET SET Q Q No change Toggle If both J and K are HIGH the output will toggle on each successive rising clock edge.

Edge-Triggered Flip-Flops Asynchronous Preset and Clear Inputs Provide for either clearing the outpus or presetting them independent of the clock. Generally they are labeled Preset (PRE) and Clear (CLR) but some manufacturers call them Set and Reset Usually they are active low. 74LS76 Functional Diagram

Flip-Flop Operating Characteristics Propagation Delay Times The interval of time required after an input signal has been applied for the resulting output change to occur. Different signals take different paths through the gate electronics. Four categories of propagation delay: A A) Propagation delay for low to high transition of the output. B) Propagation delay for high to low transition of the output. C) Propagation delay measured from leading edge of preset to low to high transition of the output. D) Propagation delay measured from the leading edge of the clear input to the high to low transition of the output. B C D

Flip-Flop Operating Characteristics Set-up Time The minimum amount of time required for the logic levels to be maintained constantly on the inputs (J and K, or S and R, or D) prior to the triggering edge of the clock pulse in order fro the levels to be reliable clocked into the flip-flop. The signal, D, must appear on the pin at least ts seconds before the rising edge of the clock in order to insure reliable data.

Flip-Flop Operating Characteristics Hold Time The minimum amount of time required for the logic levels to remain on the inputs after the triggering edge of the clock pulse in order for the levels to be reliably clocked into the flip-flop. The hold time is necessary to give the flip-flop time to stabilize from the clock transition.

Flip-Flop Operating Characteristics Maximum Clock Frequency (fmax) Pulse Widths (tw) The highest rate the flip-flop can be triggered. Minimum pulse widths for reliable operation for the clock, preset, and clear inputs. Power Dissipation (pd) The total power consumption of the device e.g. For a 5 ma gate: P=Vcc X Icc=5v x 5ma=25mw

Flip-Flop Applications Parallel Data Storage This is a basic register architecture used in many digital applications.

Flip-Flop Applications Frequency Division Some parts of digital systems operate at a slower rate than the clock. (Serial I/O, A/D conversion, etc.) Flip-flops can be used to divide the master clock frequency into slower clock cycles for these applications. Note that the divided frequencies are still in sync with the master clock. Cascading the flip-flops gives greater frequency division (divide by 2 for each section)

Flip-Flop Applications Counting One of the most important applications of flip-flops is in digital counters. Digital counters not only count things, but are useful as frequency meters, parts of A/D converters, etc. Flip-flops can be cascaded to get a larger digital count from the device.

One-Shots One-Shots A one-shot is a monostable multivibrator with only one stable state. It is used to create pulses because when it is triggered it moves to its unstable state, remains there for a predetermined amount of time then returns to its stable state. They are useful for creating events and triggering other devices. They are either retriggerable or nonretriggerable. Nonretriggerable = will not respond to a trigger unless it has returned to its stable state. Retriggerable = will lengthen the output pulse if triggered before returning to stable state. The R-C series circuit provides a timing circuit to establish the pulse width.

One-Shots 742 Nonretriggerable One-Shot This device uses a Schmitt-Trigger that provides hysteresis to prevent erratic switching.

The 555 Timer An unusually versatile IC that can be configured for different modes of operation Monostable multivibrator (one-shot) Astable multivibrator (oscillator) Basic Operation Comparator looks at external voltage Discharge circuit can discharge a capacitor in a timing circuit Threshold circuit used to set either mono or astable modes

The 555 Timer Monostable (One-Shot Operation) A single pulse is output with a pulse width set by the timing circuit R and C. C charges until it reaches the threshold when it triggers the beginning of the pulse. Q turns on and starts to discharge C bringing it below the threshold resetting the timer.

The 555 Timer Astable Operation Two different time constants are established by R, R2 and C. Note also that the Trigger input is connected to the Threshold input causing it to retrigger when C discharges.

CPLD Macrocells CPLD macrocells also contain flip-flops They can be configured for combinational logic (not using the flipflops) or register logic (using the flip-flops) The Xilinx CoolRunner II Macrocell This macrocell can be programmed to be either a combinational logic cell that generates SOP terms, or configured for registered logic functions that can use the flip flop to stage data and allow it to be clocked onto a data path.