Digital Fundamentals



Similar documents
Chapter 9 Latches, Flip-Flops, and Timers

Memory Elements. Combinational logic cannot remember

Lesson 12 Sequential Circuits: Flip-Flops

ECE380 Digital Logic

CHAPTER 11 LATCHES AND FLIP-FLOPS

Counters. Present State Next State A B A B

Engr354: Digital Logic Circuits

Module 3: Floyd, Digital Fundamental

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

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

Fig1-1 2-bit asynchronous counter

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

Asynchronous Counters. Asynchronous Counters

Master/Slave Flip Flops

Sequential Logic Design Principles.Latches and Flip-Flops

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

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

BINARY CODED DECIMAL: B.C.D.

Lecture-3 MEMORY: Development of Memory:

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

Flip-Flops and Sequential Circuit Design

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

Chapter 8. Sequential Circuits for Registers and Counters

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

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

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

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

Sequential Logic: Clocks, Registers, etc.

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

A Lesson on Digital Clocks, One Shots and Counters

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

Contents COUNTER. Unit III- Counters

Lecture 8: Synchronous Digital Systems

Digital Logic Design Sequential circuits

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

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

Theory of Logic Circuits. Laboratory manual. Exercise 3

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

DM74LS169A Synchronous 4-Bit Up/Down Binary Counter

Counters and Decoders

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

Design Example: Counters. Design Example: Counters. 3-Bit Binary Counter. 3-Bit Binary Counter. Other useful counters:

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

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.

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

Combinational Logic Design Process

74LS193 Synchronous 4-Bit Binary Counter with Dual Clock

DIGITAL ELECTRONICS. Counters. By: Electrical Engineering Department

DM Segment Decoder/Driver/Latch with Constant Current Source Outputs

A Lesson on Digital Clocks, One Shots and Counters

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

Chapter 5. Sequential Logic

Cascaded Counters. Page 1 BYU

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

DM74LS193 Synchronous 4-Bit Binary Counter with Dual Clock

CSE140: Components and Design Techniques for Digital Systems

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

Lecture 7: Clocking of VLSI Systems

ASYNCHRONOUS COUNTERS

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

CS311 Lecture: Sequential Circuits

Lecture 11: Sequential Circuit Design

DM7474 Dual Positive-Edge-Triggered D-Type Flip-Flops with Preset, Clear and Complementary Outputs

Design Verification & Testing Design for Testability and Scan

Counters & Shift Registers Chapter 8 of R.P Jain

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

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

Obsolete Product(s) - Obsolete Product(s)

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

74AC191 Up/Down Counter with Preset and Ripple Clock

Clocking. Figure by MIT OCW Spring /18/05 L06 Clocks 1

Lecture 10: Sequential Circuits


Sequential Circuits. Combinational Circuits Outputs depend on the current inputs

COMBINATIONAL and SEQUENTIAL LOGIC CIRCUITS Hardware implementation and software design

54LS169 DM54LS169A DM74LS169A Synchronous 4-Bit Up Down Binary Counter

DM54161 DM74161 DM74163 Synchronous 4-Bit Counters

Systems I: Computer Organization and Architecture

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

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

The components. E3: Digital electronics. Goals:

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

MM74HC4538 Dual Retriggerable Monostable Multivibrator

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

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

Counters are sequential circuits which "count" through a specific state sequence.

Chapter 2 Clocks and Resets

Modeling Latches and Flip-flops

Designing With the SN54/74LS123. SDLA006A March 1997

7. Latches and Flip-Flops

CD4027BC Dual J-K Master/Slave Flip-Flop with Set and Reset

54191 DM54191 DM74191 Synchronous Up Down 4-Bit Binary Counter with Mode Control

Lecture 10 Sequential Circuit Design Zhuo Feng. Z. Feng MTU EE4800 CMOS Digital IC Design & Analysis 2010

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

Napier University. School of Engineering. Electronic Engineering A Module: SE42205 Digital Design

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

NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter

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

Transcription:

igital Fundamentals with PL Programming Floyd Chapter 9 Floyd, igital Fundamentals, 10 th ed, Upper Saddle River, NJ 07458. All Rights Reserved Summary Latches (biestables) 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 NAN gates. With NOR gates, the latch responds to active-high inputs; with NAN gates, it responds to active-low inputs. S R Floyd, igital Fundamentals, 10 th ed, Upper Saddle River, NJ 07458. All Rights Reserved

Funcionamiento S-R Summary The active-high S-R latch is in a stable (latched) condition when both inputs are LOW. Assume the latch is initially RESET ( = 0) and the inputs are at their inactive level (0). To SET the latch ( = 1), a momentary HIGH signal is applied to the S input while the R remains LOW. To RESET the latch ( = 0), a momentary HIGH signal is applied to the R input while the S remains LOW. 0 R 10 Latch initially RESET 01 0 S 0 0 R S 01 10 Latch initially SET Floyd, igital Fundamentals, 10 th ed, Upper Saddle River, NJ 07458. All Rights Reserved Funcionamiento S -R Summary The active-low S-R latch is in a stable (latched) condition when both inputs are HIGH. Assume the latch is initially RESET ( = 0) and the inputs are at their inactive level (1). To SET the latch ( = 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). 1 S 10 Latch initially RESET 01 1 R 1 S 1 R 01 Latch initially 10 SET Floyd, igital Fundamentals, 10 th ed, Upper Saddle River, NJ 07458. All Rights Reserved

Símbolos lógicos Tabla de verdad del S -R Funcionamiento de un S -R

Otra forma de expresar la tabla de verdad del S -R Tabla de verdad del S-R

Latch S-R con puerta (entrada de habilitación) Tabla de verdad

Latch Memoriza el bit en la entrada : será igual a cuando la entrada EN está activa. Floyd, igital Fundamentals, 10 th ed, Upper Saddle River, NJ 07458. All Rights Reserved Otra forma de expresar la tabla de verdad Funcionamiento en el tiempo

Flip-flops Summary A flip-flop differs from a latch in the manner it changes states. A flip-flop is a clocked (sincronizado) device, in which only the clock edge determines when a new bit is entered. The active edge can be positive or negative. C C ynamic input indicator (a) Positive edge-triggered (b) Negative edge-triggered Floyd, igital Fundamentals, 10 th ed, Upper Saddle River, NJ 07458. All Rights Reserved Flip flops sincronizados por flanco de subida y de bajada

Funcionamiento de un flip-flop S-R sincronizado por flanco de subida

Un flip-flop sincronizado por flanco de subida Flip-flops Summary The J-K flip-flop is more versatile than the flip flop. In addition to the clock input, it has two inputs, labeled J and K. When both J and K = 1, the output changes states (toggles) on the active clock edge (in this case, the rising edge). J Inputs K Outputs Comments 0 0 0 0 No change 0 1 0 1 RESET 1 0 1 0 SET 1 1 Toggle 0 0 Floyd, igital Fundamentals, 10 th ed, Upper Saddle River, NJ 07458. All Rights Reserved

Funcionamiento J K Notice that the outputs change on the leading edge of the clock. Set Toggle Set Latch J K Floyd, igital Fundamentals, 10 th ed, Upper Saddle River, NJ 07458. All Rights Reserved Funcionamiento del flip-flop J-K sincronizado por flanco de bajada

Summary Entradas asíncronas Synchronous inputs are transferred in the triggering edge of the clock (for example the or J-K inputs). Most flipflops have other inputs that are asynchronous, meaning they affect the output independent of the clock. Two such 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. PRE J K CLR Floyd, igital Fundamentals, 10 th ed, Upper Saddle River, NJ 07458. All Rights Reserved PRE Funcionamiento J K J CLR Set Toggle Set Reset Toggle Latch K PRE CLR Set Reset Floyd, igital Fundamentals, 10 th ed, Upper Saddle River, NJ 07458. All Rights Reserved

Resumen de los flips-flops

Flip-flop Characteristics Summary The propagation delay time is the time required for an input to cause a change in the output. It is measured from the 50% levels. Figure 8--35 Propagation delays, clock to output. Floyd, igital Fundamentals, 10 th ed, Upper Saddle River, NJ 07458. All Rights Reserved Retrasos de propagación de las entradas asíncronas Figure 8--36 Propagation delays, preset input to output and clear input to output.

Flip-flop Characteristics Summary Set-up time and hold time are times required before and after the clock transition that data must be present to be reliably clocked into the flip-flop. Setup time is the minimum time for the data to be present before the clock. Set-up time, t s Hold time is the minimum time for the data to remain after the clock. Hold time, t H Floyd, igital Fundamentals, 10 th ed, Upper Saddle River, NJ 07458. All Rights Reserved Set-up time Figure 8--37 Set-up time (t s ). The logic level must be present on the input for a time equal to or greater than t s before the triggering edge of the clock pulse for reliable data entry.

Hold time Figure 8--38 Hold time (t h ). The logic level must remain on the input for a time equal to or greater than t h after the triggering edge of the clock pulse for reliable data entry.

Summary Flip-flop Applications Principal flip-flop applications are for temporary data storage, as frequency dividers, and in counters (which are covered in detail in Chapter 10). C C R Output lines 0 1 R Typically, for data storage applications, a group of flip-flops are connected to parallel data lines and clocked together. ata is stored until the next clock pulse. Parallel data input lines Clock C R C 2 3 Clear R Floyd, igital Fundamentals, 10 th ed, Upper Saddle River, NJ 07458. All Rights Reserved Figure 8--39 Example of flip-flops used in a basic register for parallel data storage.

Flip-flop Applications Summary For frequency division, it is simple to use a flip-flop in the toggle mode or to chain a series of toggle flip flops to continue to divide by two. One flip-flop will divide f in by 2, two flip-flops will divide f in by 4 (and so on). A side benefit of frequency division is that the output has an exact 50% duty cycle. Floyd, igital Fundamentals, 10 th ed, Upper Saddle River, NJ 07458. All Rights Reserved Figure 8--40 The J-K flip-flop as a divide-by-2 device. is one-half the frequency of.

Figure 8--41 Example of two J-K flip-flops used to divide the clock frequency by 4. A is one-half and B is one-fourth the frequency of.

Aplicación: generar una cuenta Figure 8--44 Flip-flops used to generate a binary count sequence. Two repetitions (00, 01, 10, 11) are shown. Ejemplo: determinar la cuenta generada

Selected Key Terms Latch Bistable Clock flip-flop J-K flip-flop A bistable digital circuit used for storing a bit. Having two stable states. Latches and flip-flops are bistable multivibrators. A triggering input of a flip-flop. A type of bistable multivibrator in which the output assumes the state of the 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. Selected Key Terms Propagation delay time Set-up time Hold time Timer Registered 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. A CPL macrocell output configuration where the output comes from a flip-flop.

1. The output of a latch will not change if a. the output is LOW b. Enable is not active c. is LOW d. all of the above 2009 2009 Pearson Pearson Education Education 2. The flip-flop shown will a. set on the next clock pulse b. reset on the next clock pulse c. latch on the next clock pulse d. toggle on the next clock pulse

3. For the J-K flip-flop shown, the number of inputs that are asynchronous is a. 1 b. 2 c. 3 d. 4 J K PRE CLR 2009 2009 Pearson Pearson Education Education 4. Assume the output is initially HIGH on a leading edge triggered J-K flip flop. For the inputs shown, the output will go from HIGH to LOW on which clock pulse? a. 1 b. 2 c. 3 d. 4 J K 1 2 3 4

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

7. The application illustrated is a a. astable multivibrator HIGH HIGH b. data storage device c. frequency multiplier d. frequency divider f in J A K J B K f out 2009 2009 Pearson Pearson Education Education 8. The application illustrated is a a. astable multivibrator b. data storage device c. frequency multiplier d. frequency divider Parallel data input lines C C C R R R Output lines 0 1 2 Clock C 3 Clear R

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 2009 2009 Pearson Pearson Education Education Answers: 1. b 6. d 2. d 7. d 3. b 8. b 4. c 9. d 5. b 10. a