Lab 09 :D Flip Flop, Shift Registers and Switch Bounce: Slide 2 Slide 3 The D Flip Flop. 4-Bit Shift Register. Slide 4 Shift Register De-bounce System:

Slides:



Advertisements
Similar presentations
Lab 08: SR Flip Flop Fundamentals:
Advertisements

Lab 13 : Binary Counter Systems:
Tutorial 2 Sequential Logic. Registers A register is basically a D Flip-Flop A D Flip Flop has 3 basic ports. D, Q, and Clock.
Lab 10 :Serial Data Transfer System:
Lab 9: Matrix Keypad : ”No Key Press” Analysis Slide #2 Slide #3 ”Press and Hold Key 5” Analysis.
Registers and Counters. Register Register is built with gates, but has memory. The only type of flip-flop required in this class – the D flip-flop – Has.
Changes in input values are reflected immediately (subject to the speed of light and electrical delays) on the outputs Each gate has an associated “electrical.
Sequential Logic Building Blocks – Flip-flops
CHAPTER 3 Sequential Logic/ Circuits.  Concept of Sequential Logic  Latch and Flip-flops (FFs)  Shift Registers and Application  Counters (Types,
Flip-Flops, Registers, Counters, and a Simple Processor
Sequential circuits The digital circuits considered thus far have been combinational, where the outputs are entirely dependent on the current inputs. Although.
Module 12.  In Module 9, 10, 11, you have been introduced to examples of combinational logic circuits whereby the outputs are entirely dependent on the.
Switch Debouncing. Switches connected to sources of constant logic 0 and 1 are often used in digital systems to supply “user inputs”. In high speed digital.
Dr. ClincyLecture1 Appendix A – Part 2: Logic Circuits Current State or output of the device is affected by the previous states Circuit Flip Flops New.
Digital Logic Design Brief introduction to Sequential Circuits and Latches.
EKT 124 / 3 DIGITAL ELEKTRONIC 1
C.S. Choy1 SEQUENTIAL LOGIC A circuit’s output depends on its previous state (condition) in addition to its current inputs The state of the circuit is.
Lab 5 :JK Flip Flop and Counter Fundamentals:
Chapter 3: Sequential Logic Circuit EKT 121 / 4 ELEKTRONIK DIGIT 1.
Flip Flop
EE2174: Digital Logic and Lab Professor Shiyan Hu Department of Electrical and Computer Engineering Michigan Technological University CHAPTER 9 Sequential.
Rabie A. Ramadan Lecture 3
Company LOGO DKT 122/3 DIGITAL SYSTEM 1 WEEK #12 LATCHES & FLIP-FLOPS.
 Counters are sequential circuits which "count" through a specific state sequence. They can count up, count down, or count through other fixed sequences.
JK Flip-Flop. JK Flip-flop The most versatile of the flip-flops Has two data inputs (J and K) Do not have an undefined state like SR flip-flops – When.
CS 352 : Computer Organization and Design University of Wisconsin-Eau Claire Dan Ernst Latches & Flip-Flops.
Sequential logic circuits
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
CEC 220 Digital Circuit Design Latches and Flip-Flops Monday, March 03 CEC 220 Digital Circuit Design Slide 1 of 19.
Synchronous Sequential Logic A digital system has combinational logic as well as sequential logic. The latter includes storage elements. feedback path.
EKT 121 / 4 ELEKTRONIK DIGIT I
Chapter 6 – Digital Electronics – Part 1 1.D (Data) Flip Flops 2.RS (Set-Reset) Flip Flops 3.T Flip Flops 4.JK Flip Flops 5.JKMS Flip Flops Information.
Lab 12 :JK Flip Flop Fundamentals: Slide 2 Slide 3 JK Flip-Flop. JK Flip-Flop and waveform diagrams.
ECE 301 – Digital Electronics Brief introduction to Sequential Circuits and Latches (Lecture #14)
ECE 331 – Digital System Design Introduction to Sequential Circuits and Latches (Lecture #16)
Counters and registers Eng.Maha Alqubali. Registers Registers are groups of flip-flops, where each flip- flop is capable of storing one bit of information.
Ch.5 Flip Flops and Related Devices
Computer Science 210 Computer Organization
Dr. Clincy Professor of CS
Lab 08: SR Flip Flop Fundamentals:
LATCHED, FLIP-FLOPS,AND TIMERS
Homework Reading Machine Projects Labs Tokheim Chapter 9.1 – 9.6
Flip-Flops and Related Devices
EI205 Lecture 8 Dianguang Ma Fall 2008.
Digital Electronics Tutorial: Sequential Logic
Digital Fundamentals Floyd Chapter 7 Tenth Edition
Sequential Logic.
Lab02 :Logic Gate Fundamentals:
Digital Fundamentals Floyd Chapter 7 Tenth Edition
Latches, Flip-Flops and Registers
Flip Flop.
3.2 Shift Register Basic shift register function
Computer Science 210 Computer Organization
Shift Registers.
ECE Digital logic Lecture 16: Synchronous Sequential Logic
LECTURE 15 – DIGITAL ELECTRONICS
Lesson Objectives Aims
Computer Science 210 Computer Organization
触发器 Flip-Flops 刘鹏 浙江大学信息与电子工程学院 March 27, 2018
Instructor: Alexander Stoytchev
Dr. Clincy Professor of CS
Dr. Clincy Professor of CS
Instructor: Alexander Stoytchev
Dr. Clincy Professor of CS
Unit 7 Sequential Circuits (Flip Flop)
CHAPTER 4 SHIFT REGISTER
1) Latched, initial state Q =1
FLIP-FLOPS.
Registers and Counters
Week 11 Flip flop & Latches.
Presentation transcript:

Lab 09 :D Flip Flop, Shift Registers and Switch Bounce: Slide 2 Slide 3 The D Flip Flop. 4-Bit Shift Register. Slide 4 Shift Register De-bounce System: Flip switch from 0 to 1. Slide 5 Slide 6 Slide 7 Shift Register De-bounce System: Flip switch from 1 to 0. Switch Bounce. Flip Flop De-bounce System: Use with older IC technology.

The D flip flop is used to store binary Data. The logic level at the “D” (data) input is transferred to the Q output when the clock is asserted. It remains stored at output Q until the clock is asserted a second time. That’s it … simple! Lab 09 : The D Flip Flop : DQ Q >Clk If look inside the D flip flop you can see how it works. S R Q Q >Clk D 1 0 Let’s assume the initial conditions at Q are 0. Set D to logic 1. 1 Show the logic levels at S and R 1 0 The internal SR inputs are in the set mode. The flip flop will set if D=1 and the clock is asserted. Q = D! Set D to logic The internal SR inputs are in the reset mode. The flip flop will reset if D=0 and the clock is asserted. Q = D again! 0 1 Slide #2

Lab 09 : 4-Bit Shift Register : The 4-bit shift register can shift data from QA to QB to QC to QD. The shift register will be filled with 1’s then it will be filled with 0’s. Assume the initial conditions are : Qa=Qb=Qc=Qd=0. Din is the input to QA. The data at QA shifts to QB. The data at QB shifts to QC. QC shifts to QD. Apply a logic 1 at input Din and clock the shift register 4 times. You have seen how it takes 4 clock pulses to fill the shift register with 1’s. Din will now be connected to logic 0. This will shift the 1’s out and fill the shift register with 0’s. Qa DinQb >ClkQc Qd 4 Bit Shift Register

Switch bounce is generated each time a switch is flipped. Switch bounce does not cause any lasting errors in the operation of AND/OR gate systems. Switch bounce can cause errors in the operation of Flip Flop systems. Lab 09 : Switch Bounce: A switch is a mechanical device that closes contacts. SWITCH BOUNCE occurs when a switch is flipped and its contacts are moved from 0 to 1 or 1 to 0. The contacts chatter causing a small electrical storm that lasts about 20 milliseconds. Switch bounce generates several +ve edge and -ve edge signal transitions during this 20 milliSec time interval. These additional transitions can clock a flip flop several times milliSec. 5v Logic gate systems respond erratically while switch bounce is occurring. After 20 milliSec switch bounce dissipates and the logic gate system responds predictably. No lasting problems Slide #4

Lab 09 : Shift Register De-bounce System: Flip switch from 0 to 1. The 4-bit shift register will be used to eliminate switch bounce. The switch will be flipped from 0 to 1. Assume the initial conditions are : Switch = 0 and Qa=Qb=Qc=Qd=0. Every 5 milliseconds a positive edge on the clock shifts another 0 into Qa. This 0 is shifted down to Qb, Qc, Qd. The continuous flow of 0’s through the shift register keeps all AND gate inputs low. Qa DinQb >ClkQc Qd 4 Bit Shift Register 5v 1 Pulse every 5 milliSecs. 0 0 Case 1: Flip the switch to 1 with No switch bounce: It takes (4x5) 20 milliseconds to fill the shift register with 1’s. The AND gate is 1 after 20 milliseconds Case 2: Flip the switch to 1 with switch bounce: Re-start with the switch at 0. Flip the switch to 1. The switch bounces Din from 1 to 0 to 1 several times in 20 milliseconds. The animation will show you the response to the switch bounce. The AND gate output changes to 1 once the bounce has settled milliSec Flip the switch After 28 milliseconds the AND gate outputs a single positive edge. The bounce is eliminated. 1

1 Lab 09 : Shift Register De-bounce System: Flip switch from 1 to 0. The 4-bit shift register will be used to eliminate switch bounce. The switch will be flipped from 1 to 0. Assume the initial conditions are : Switch = 1 and Qa=Qb=Qc=Qd=1. Every 5 milliseconds a positive edge on the clock shifts another 1 into Qa. This 1 is shifted down to Qb, Qc, Qd. The continuous flow of 1’s through the shift register keeps all AND gate inputs high. Qa DinQb >ClkQc Qd 4 Bit Shift Register 5v 1 Pulse every 5 milliSecs Flip the switch to 0 with switch bounce: Start with the switch at 1. Flip the switch to 0. The switch bounces Din from 0 to 1 to 0 several times in 20 milliseconds. The animation will show you the response to the switch bounce. The AND gate output changes to 0 when Qa= After 28 milliseconds the bounce is eliminated. The AND gate changes to a 0, once, at the beginning of the bounce interval milliSec Flip the switch

An SC flip flop can eliminate the effect of switch bounce. This circuit is used in many older IC technology systems. Lab 09 : Flip Flop De-bounce System: Q Q S R 5V 4.7K 5V 4.7K Pulse 5V150 The initial conditions are S=0 and R=1. The spring detent switch is in the up position (not pressed). The cross coupled NAND gates create a flip flop with active low inputs. The flip flop SETs Q. This keeps the LED off Flipping the switch makes S=1 and creates switch bounce at input R When R=0 it resets the Q output of the flip flop and turns on the LED. 0 1 When R=1 it puts the FF in the “HOLD” mode and Q stays at 0 and keeps the LED on. 0 1 The bounce continues with 3 more changes from 0 to 1 to 0. These transitions do not change the output of the circuit. They repeat the RESET, HOLD, RESET cycle. The output of the circuit generates one clean pulse without any bounce. When the switch is released it springs back to the SET position. The switch bounce is now on the SET input. It causes the flip flop to cycle between the SET mode and the HOLD mode. This completes the pulse at the output and turns off the LED. The switch has been eliminated. Slide #7 0 1