CPE 200L LABORATORY 3: SEQUENTIAL LOGIC CIRCUITS UNIVERSITY OF NEVADA, LAS VEGAS GOALS: BACKGROUND: SR FLIP-FLOP/LATCH

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

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

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

Physics 323. Experiment # 10 - Digital Circuits

PHYSICS 5620 LAB 9 Basic Digital Circuits and Flip-Flops

CSE Latches and Flip-flops Dr. Izadi. NOR gate property: A B Z Cross coupled NOR gates: S M S R Q M

Other Flip-Flops. Lecture 27 1

Lab #11: Register Files

Experiment 8 Introduction to Latches and Flip-Flops and registers

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

ELCT201: DIGITAL LOGIC DESIGN

EKT 121/4 ELEKTRONIK DIGIT 1

Sequential Logic Circuits

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

LATCHES & FLIP-FLOP. Chapter 7

Chapter 6 Digital Circuit 6-5 Department of Mechanical Engineering

Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany

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

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

RS flip-flop using NOR gate

ME 515 Mechatronics. Introduction to Digital Electronics

IT T35 Digital system desigm y - ii /s - iii

Rensselaer Polytechnic Institute Computer Hardware Design ECSE Report. Lab Three Xilinx Richards Controller and Logic Analyzer Laboratory

Laboratory 11. Required Components: Objectives. Introduction. Digital Displays and Logic (modified from lab text by Alciatore)

Chapter 5 Synchronous Sequential Logic

Logic and Computer Design Fundamentals. Chapter 7. Registers and Counters

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

1. Convert the decimal number to binary, octal, and hexadecimal.

Lesson 12. Advanced Digital Integrated Circuits Flip-Flops, Counters, Decoders, Displays

Experiment # 4 Counters and Logic Analyzer

RS flip-flop using NOR gate

Introduction to Sequential Circuits

Step 1 - shaft decoder to generate clockwise/anticlockwise signals

MC9211 Computer Organization

Chapter 3: Sequential Logic Systems

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

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

Laboratory 8. Digital Circuits - Counter and LED Display

Registers and Counters

FLIP-FLOPS AND RELATED DEVICES

EE 367 Lab Part 1: Sequential Logic

CHAPTER 4: Logic Circuits

Registers and Counters

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

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

DepartmentofElectronicEngineering NEDUniversity ofengineering &Technology LABORATORY WORKBOOK DIGITAL LOGIC DESIGN (TC-201)

ECE 263 Digital Systems, Fall 2015

Rangkaian Sekuensial. Flip-flop

ELCT201: DIGITAL LOGIC DESIGN

Unit 11. Latches and Flip-Flops

Digital Systems Laboratory 3 Counters & Registers Time 4 hours

Physics 120 Lab 10 (2018): Flip-flops and Registers

Laboratory 1 - Introduction to Digital Electronics and Lab Equipment (Logic Analyzers, Digital Oscilloscope, and FPGA-based Labkit)

NH 67, Karur Trichy Highways, Puliyur C.F, Karur District UNIT-III SEQUENTIAL CIRCUITS

HDL & High Level Synthesize (EEET 2035) Laboratory II Sequential Circuits with VHDL: DFF, Counter, TFF and Timer

PHY 351/651 LABORATORY 9 Digital Electronics The Basics

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

Sequential Logic and Clocked Circuits

Electrical and Telecommunications Engineering Technology_TCET3122/TC520. NEW YORK CITY COLLEGE OF TECHNOLOGY The City University of New York

Chapter 4. Logic Design

Chapter. Synchronous Sequential Circuits

Electrical & Computer Engineering ECE 491. Introduction to VLSI. Report 1

MODULAR DIGITAL ELECTRONICS TRAINING SYSTEM

COMP2611: Computer Organization Building Sequential Logics with Logisim

ASYNCHRONOUS COUNTER CIRCUITS

Part IA Computer Science Tripos. Hardware Practical Classes

NORTHWESTERN UNIVERSITY TECHNOLOGICAL INSTITUTE

ECE 341. Lecture # 2

Lab #6: Combinational Circuits Design

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

EE292: Fundamentals of ECE

Digital Fundamentals: A Systems Approach

EXPERIMENT #6 DIGITAL BASICS

Digital Networks and Systems Laboratory 2 Basic Digital Building Blocks Time 4 hours

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

Physics 217A LAB 4 Spring 2016 Shift Registers Tri-State Bus. Part I

1. a) For the circuit shown in figure 1.1, draw a truth table showing the output Q for all combinations of inputs A, B and C. [4] Figure 1.

EET 1131 Lab #10 Latches and Flip-Flops

INTRODUCTION TO SEQUENTIAL CIRCUITS

Digital Circuits ECS 371

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.

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

Figure 7.8 Circuit Schematic with Switches, Logic Gate, and Flip-flop

Logic Design. Flip Flops, Registers and Counters

Scanned by CamScanner

LAB #4 SEQUENTIAL LOGIC CIRCUIT

Department of Electrical Engineering University of Hail Ha il - Saudi Arabia

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

SEMESTER ONE EXAMINATIONS 2002

Laboratory Sequential Circuits

Asynchronous (Ripple) Counters

Final Exam review: chapter 4 and 5. Supplement 3 and 4

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING

Lecture 8: Sequential Logic

DIGITAL SYSTEM FUNDAMENTALS (ECE421) DIGITAL ELECTRONICS FUNDAMENTAL (ECE422) COUNTERS

Review of digital electronics. Storage units Sequential circuits Counters Shifters

Section 6.8 Synthesis of Sequential Logic Page 1 of 8

Laboratory Sequence Circuits

Experiment (6) 2- to 4 Decoder. Figure 8.1 Block Diagram of 2-to-4 Decoder 0 X X

UNIT III. Combinational Circuit- Block Diagram. Sequential Circuit- Block Diagram

Transcription:

CPE 200L LABORATORY 3: SEUENTIAL LOGIC CIRCUITS DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING UNIVERSITY OF NEVADA, LAS VEGAS GOALS: Learn to use Function Generator and Oscilloscope on the breadboard. Use a flip flop correctly. Use a square wave from Function Generator as to FF. Learn how to use 7-segment display. Learn the usage of flipflops. BACKGROUND: Flip-flops are the simple sequential elements, which state depends not only on input signals, but also on previous flipflop states. Following are brief paragraphs about flip-flops. SR FLIP-FLOP/LATCH This is basic Set/Reset flipflop. Two inputs are used to to set or reset outputs. Both of these actions are not available at the same time (you cannot set and reset at the same time) so this combination of inputs is not allowed. S R SR Figure 1. SR Flip-flop Table 1. SR Flip-Flop operation State S R Description Set 1 0 0 1 Set 1 1 1 0 1 Unchanged Reset 0 1 1 0 Reset 0 1 1 1 0 Unchanged Invalid 0 0 1 1 Invalid state DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING 1

JK FLIP-FLOP This is the extended version of Set/Reset flipflop. It allows all combinations of inputs. Providing J=1 and K=1 toggles the flipflop state. J K JK Figure 2. JK Flip-flop Table 2. SR Flip-Flop operation State J K Description 0 0 0 0 0 0 0 1 No change Same as SR 0 1 1 0 0 1 0 1 Reset 0 1 0 0 1 1 0 1 0 Set 1 toggle 1 1 0 1 1 1 1 0 Toggle D FLIP-FLOP D flip-flop passes the signal from D input to the output, when clock is in active edge state. D D Figure 3. D Flip-flop Table 3. SR Flip-Flop operation D Description (0) X No change (1) 0 0 1 Reset 0 (1) 1 1 0 Set 1 DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING 2

T FLIP-FLOP When T=1, then active clock strobe toggles the output state of the flipflop. T T Figure 4. T Flip-flop Example of flipflop use: organization of 1-bit memory Data in Clock 1-bit memory cell Data out Clear Figure 5. 1-bit memory cell DEBOUNCING CIRCUIT SR Latch: The S-R latch has two inputs and two outputs. One output is the complement of the other. The S input sets the output (to logic 1 ) while the R resets the output to logic 0. Figure 6 below shows the schematic and truth table for the S-R latch. Figure 6. SR Latch S R (n) (n+1) 0 0 (n) (n) 0 1 X 0 1 0 X 1 1 1 X NA DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING 3

Push Button: It is a mechanical device and relies on mechanical contact to generate electrical signal. Once a push button is pressed, signal generated by the push button is as follows: Figure 7. Push button generated signal As seen from above, such signal is quite choppy and needs to be cleaned using de- bouncing circuit before it can be applied to digital circuit. Many de-bouncing circuit design exist such as Latch based, Sampling based, Software based, etc. A SR latch based de-bouncing circuit is shown below: Figure 8: SR Latch based de-bouncer Assume that the switch is normally connected to the S (set) input of the SR latch as illustrated in Figure 8. Therefore, the S input is pulled to a logical 0 and the output to a logical 1, which is the Set state of the SR latch. When the switch is pushed, the latch inputs transition from S=0 and R=l to S=1 and R=l, corresponding to the storage state where the output continues to be a logical 1. Glitches at the S input take the latch from the set state to the storage state, keeping the output at a logical 1. Once the switch contacts the R input, the inputs to the latch change from S=1 and R=1 to S=1 and R=0, corresponding to the reset state which produces a logical 0 at the output. Subsequent glitches at the input keep the latch between reset state and the storage state keeping unchanged. Note that the double-pole switch at the inputs of the SR latch prevents the latch from entering the indeterminate state where both S and R are 0 and both the and bar outputs are forced to a logical 1. DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING 4

COUNTER Figure 9. De-bouncing output diagram Counter is a sequential circuit, where output is a function of both current and past inputs. It counts up/down at clocked signal either at rising edge or falling edge. Counter uses memory elements such as SR latch to keep track of current state and increment or decrement it at every clock pulse. Example: Let s design a 2-bit synchronous counter with transition states as shown in Figure 10. 00 01 11 10 Figure 10. 2-bit synchronous Counter Transition State Diagram To design the counter, we must first construct transition table. The transition table shows the state output values after the clock pulse (next) as a function of the input and state output values before the clock pulse (now). Since for a D type flip-flop the output () after the clock pulse is equal to the input (D) before the clock pulse, the transition table becomes a simple input/output truth table. Transition table and K-map minimization of the counter are shown below: DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING 5

Figure 11. 2-bit Synchronous Counter Transition Table and K-map minimization After simplification, we derive the following: D1 = 1 2 + 1 2' = 1 2 D2 = 2' Final schematic of the 2-bit counter is as follows: Figure 12. 2-bit Synchronous Counter Circuit 7-SEGMENT DISPLAY Binary coded decimal (BCD) numbers are often displayed on seven segment display using BCD to seven segment decoder such as 7447, which we use in this lab. Figure 13 illustrates BCD to seven segment display circuit. DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING 6

Figure 13. 7-segment display There are two configurations of 7-segment displays: common anode and common cathode. In this lab we use common anode type, what can be illustrated as follows: Figure 14. Common anode configuration Figure 15 shows complete schematics for 7-segment and 7447 driver configuration. 7447 takes BCD number as the input and converts to 7-signal format, as shown in truth table further. Do not forget about the 2.4 kω resistor, to limit the current. Figure 15. Schematics for 7-seg with 7447 configuration DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING 7

LAB DELIVERIES: PRELAB: 1. Counter 1. Read the tutorial on how to use a breadboard. 2. Simulate 3 bit synchronous counter and verify truth table. 2. Prelab deliveries Include in the prelab document: 1. Your design of 3-bit counter 2. Simulation waveforms of 3-bit counter LAB EXPERIMENTS To find the chip implementing the desired function, or to look for the datasheet regarding the specific chip, go to https://faculty.unlv.edu/eelabs/index.html?navi=main_icdatasheets 1. Experiment 1: Function Generator and Oscilloscope on Breadboard with Chips Use the Function Generator to set up a square wave 0V-5V, frequency 1kHz. Apply to the input of an inverter/not gate. Use Channel 1 of oscilloscope to see input, and channel 2 to see the output. Verify the operation of the NOT gate. Function generator Oscilloscope CH1 Oscilloscope CH2 Figure 16. Schematic for experiment 1 2. Experiment 2: Use of JK Flip Flop Use the square wave of 0V-5V, frequency 1kHz from Function Generator as the input to JKFF. a) Implement T flip flop. There are no T flip flop chips. Use the JK flip flop (JK is universal) as a T flip flop (do the conversion J=K=T). Let T=1 to have it toggle. Use Channel 1 of oscilloscope to see input, and channel 2 to see the output. Verify that the output is a frequency divider (divide by 2). DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING 8

b) Use JKFF as a DFF (J=K =D). Let D=. Use Channel 1 of oscilloscope to see input, and channel 2 to see the output. Verify that the output is a frequency divider (divide by 2). Oscilloscope CH2 Oscilloscope CH2 T=1 Function generator T T D Function generator D Oscilloscope CH1 Oscilloscope CH1 a) T configuration b) D configuration Figure 17. Setups for experiment 2 3. Experiment 3: Use a 7-Segment Display with 7447 Decoder 1. Connect a 7447 Decoder with 7-Segment Display. Ensure that the binary number input for the 7447 decoder shows up correctly in the 7-segment display for numbers 0-9. a0 a1 a2 7447 decoder Figure 18. BCD to 7-segment conversion Inputs a0, a1, a2 are three separate wires. Connect them to 5V or GND to set the BCD combination. 4. Experiment 4: 3-bit counter 1. Implement a 3 bit synchronous counter using flipflops from Experiment 3 (already verified). Use the from the function generator at a frequency of 1 Hz (for humans to see). Connect the output of the counter to the 7-segment circuit using configuration from experiment 3. Verify it counts from 0 to 7. DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING 9

Function generator 3-bit counter y2 y1 y0 7447 decoder Figure 19. 3-bit counter with function generator and 7-segment display 2. Replace the function generator input with the mechanical switch. Is the bouncing effect occurring? 3-bit counter y2 y1 y0 7447 decoder Figure 20. 3-bit counter with mechanical switch and 7-segment display Apply the debouncing circuit: 3-bit counter y 2 y 1 y 0 7447 decoder Figure 21. 3-bit counter with mechanical switch, debouncer and 7-segment display DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING 10

POSTLAB REPORT: Include the following elements in the report document: Section Element 1 Theory of operation Include a brief description of every element and phenomenon that appears during the experiments. 2 Prelab report Results of the experiments Experiment Experiment Results a. Drawing of schematic 1 b. Picture of the circuit on the breadboard c. Picture of the waveforms from the oscilloscope a. Drawing of schematic 3 2 b. Picture of the circuit on the breadboard c. Picture of the waveforms from the oscilloscope a. Drawing of schematic 3 b. Picture of the circuit on the breadboard c. Picture(s) of the operation a. Drawing of schematic 4 b. Picture of the circuit on the breadboard c. Picture(s) of the operation Answer the questions uestion no. uestion 4 1 Find various 74xx chips for JKFF. What are differences? 2 List types of BCD-to-7seg decoders along with short description 3 What is debouncing problem? 5 Conclusions Write down your conclusions, things learned, problems encountered during the lab and how they were solved, etc. References: 1. Introduction to breadboards: http://faculty.unlv.edu/eelabs/docs/equipment/breadboards.pdf 2. Datasheets: http://faculty.unlv.edu/eelabs/index.html?navi=main_icdatasheets DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING 11