Experiment 9 Sequential Circuits

Similar documents
ELCT201: DIGITAL LOGIC DESIGN

Chapter 5 Synchronous Sequential Logic

Lab 3 Revisited. Zener diodes IAP 2008 Lecture 4 1

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

LOGIC CIRCUITS. Basic Experiment and Design of Electronics. Ho Kyung Kim, Ph.D.

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

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

Counters. We ll look at different kinds of counters and discuss how to build them

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

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

CHW 261: Logic Design

Roger L. Tokheim. Chapter 8 Counters Glencoe/McGraw-Hill

Gates and Flip-Flops

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

Digital Fundamentals

Vidyalankar S.E. Sem. III [ETRX] Digital Circuits and Design Prelim Question Paper Solution

Digital Circuits ECS 371

LOGIC CIRCUITS. Basic Experiment and Design of Electronics

Sample Test Paper - I

Introduction EE 224: INTRODUCTION TO DIGITAL CIRCUITS & COMPUTER DESIGN. Lecture 6: Sequential Logic 3 Registers & Counters 5/9/2010

Chapter 4. Sequential Logic Circuits

ELCT201: DIGITAL LOGIC DESIGN

Sequential Logic Circuits

Sequential Logic. Rab Nawaz Khan Jadoon DCS. Lecturer COMSATS Lahore Pakistan. Department of Computer Science

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

Philadelphia University Student Name: Student Number:

Digital Electronics Circuits 2017

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

Digital Circuits. 1. Inputs & Outputs are quantized at two levels. 2. Binary arithmetic, only digits are 0 & 1. Position indicates power of 2.

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

Digital Fundamentals

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

S.Y. Diploma : Sem. III [CO/CM/IF/CD/CW] Digital Techniques

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI

Synchronous Sequential Logic


ELE2120 Digital Circuits and Systems. Tutorial Note 9

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

3. Complete the following table of equivalent values. Use binary numbers with a sign bit and 7 bits for the value

S.Y. Diploma : Sem. III [DE/ED/EI/EJ/EN/ET/EV/EX/IC/IE/IS/IU/MU] Principles of Digital Techniques

Chapter 7 Sequential Logic

EE40 Lec 15. Logic Synthesis and Sequential Logic Circuits

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

EET 310 Flip-Flops 11/17/2011 1

SIR C.R.REDDY COLLEGE OF ENGINEERING ELURU DIGITAL INTEGRATED CIRCUITS (DIC) LABORATORY MANUAL III / IV B.E. (ECE) : I - SEMESTER

Chapter 7. Sequential Circuits Registers, Counters, RAM

NTE74HC109 Integrated Circuit TTL High Speed CMOS, Dual J K Positive Edge Triggered Flip Flop w/set & Reset

Reg. No. Question Paper Code : B.E./B.Tech. DEGREE EXAMINATION, NOVEMBER/DECEMBER Second Semester. Computer Science and Engineering

Digital Electronics Final Examination. Part A

King Fahd University of Petroleum and Minerals College of Computer Science and Engineering Computer Engineering Department

ECE/Comp Sci 352 Digital Systems Fundamentals. Charles R. Kime Section 2 Fall Logic and Computer Design Fundamentals

In data sheets and application notes which still contain NXP or Philips Semiconductors references, use the references to Nexperia, as shown below.

Digital Logic Appendix A

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

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

Vidyalankar S.E. Sem. III [CMPN] Digital Logic Design and Analysis Prelim Question Paper Solution

Digital Logic and Design (Course Code: EE222) Lecture 19: Sequential Circuits Contd..

Analysis of Clocked Sequential Circuits

Philadelphia University Student Name: Student Number:

EE 209 Logic Cumulative Exam Name:

Schedule. ECEN 301 Discussion #25 Final Review 1. Date Day Class No. 1 Dec Mon 25 Final Review. Title Chapters HW Due date. Lab Due date.

In data sheets and application notes which still contain NXP or Philips Semiconductors references, use the references to Nexperia, as shown below.

Chapter 14 Sequential logic, Latches and Flip-Flops

MOSIS REPORT. Spring MOSIS Report 1. MOSIS Report 2. MOSIS Report 3

Boolean Algebra. Digital Logic Appendix A. Postulates, Identities in Boolean Algebra How can I manipulate expressions?


Synchronous Sequential Logic Part I. BME208 Logic Circuits Yalçın İŞLER

EECS150 - Digital Design Lecture 17 - Sequential Circuits 3 (Counters)

Synchronous 4 Bit Counters; Binary, Direct Reset

WORKBOOK. Try Yourself Questions. Electrical Engineering Digital Electronics. Detailed Explanations of

Sequential vs. Combinational

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

UNIVERSITY OF BOLTON SCHOOL OF ENGINEERING BENG (HONS) ELECTRICAL & ELECTRONICS ENGINEERING EXAMINATION SEMESTER /2017

Lecture 14: State Tables, Diagrams, Latches, and Flip Flop

11.1 As mentioned in Experiment 10, sequential logic circuits are a type of logic circuit where the output of

EE141Microelettronica. CMOS Logic

Dr. Nicola Nicolici COE/EE2DI4 Midterm Test #2 Nov 22, 2006

Digital Circuits and Systems

I. Motivation & Examples

Vidyalankar S.E. Sem. III [EXTC] Digital Electronics Prelim Question Paper Solution ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD = B

Digital Logic Design - Chapter 4

Boolean Algebra. Digital Logic Appendix A. Boolean Algebra Other operations. Boolean Algebra. Postulates, Identities in Boolean Algebra

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified) State any two Boolean laws. (Any 2 laws 1 mark each)

74LV393 Dual 4-bit binary ripple counter

74F193 Up/Down Binary Counter with Separate Up/Down Clocks


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

Menu. Excitation Tables (Bonus Slide) EEL3701 EEL3701. Registers, RALU, Asynch, Synch

10/12/2016. An FSM with No Inputs Moves from State to State. ECE 120: Introduction to Computing. Eventually, the States Form a Loop

Chapter 13. Clocked Circuits SEQUENTIAL VS. COMBINATIONAL CMOS TG LATCHES, FLIP FLOPS. Baker Ch. 13 Clocked Circuits. Introduction to VLSI

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI

Digital electronics form a class of circuitry where the ability of the electronics to process data is the primary focus.

EECS150 - Digital Design Lecture 18 - Counters

EECS150 - Digital Design Lecture 18 - Counters

ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN. Week 9 Dr. Srinivas Shakkottai Dept. of Electrical and Computer Engineering

Synchronous Sequential Logic. Chapter 5

Sequential Circuit Analysis

CD74HC93, CD74HCT93. High Speed CMOS Logic 4-Bit Binary Ripple Counter. Description. Features. Pinout. Ordering Information

Lecture 9: Digital Electronics

EXPERIMENT #4: SIMPLIFICATION OF BOOLEAN FUNCTIONS

Transcription:

Introduction to Counters Experiment 9 Sequential Circuits The aim of this experiment is to familiarize you, frst with the basic sequential circuit device called a fip fop, and then, with the design and implementation of simple synchronous and ripple counters. Counters are combinations of fip fops and some gates to achieve desired sequential behavior. Some Concepts and Terminology A basic JK fip fop has 2 binary inputs J and K, a clock terminal Clk, and 2 binary complementary outputs Q and Q` (Some more advanced fip fops, such as the ones in the CD 4027 may additionally have SET and RESET terminals). Since the second output Q depends entirely upon (being complementary to) the frst output Q, we need consider only Q in the discussion, The state of a single fip fop at time n is simply the value of its output Q n at time n. When the inputs are given, and a clock edge is applied to the Clk, terminal, the fip fop makes a transition to another state, The behavior of a fip fop is described using a truth table, which lists the outputs corresponding to each set of inputs. Also very useful is an excitation table, that essentially does the reverse, lists the inputs that need to be applied to make desired state transitions. The frst thing you need to learn how to obtain the excitation table from the truth table. A counter is simply an ordered interconnection of many fip fops. The state of a counter is defned simply as the ordered sequence of the states of the respective outputs of the individual fip fops that constitute it. To interconnect them, the inputs of the next fip fop are derived as a combination of other signals available in the circuit, using the gates. For a certain specifed sequence of counter states, we need to manipulate the inputs of the individual fip fops in order to force them to make the desired transitions at specifc times. There are two broad categories in counters. In a synchronous counter, the master clock signal is connected in parallel to the Clk inputs of all the fippfops. Hence, all the outputs change simultaneously as well, or, in other words, they are synchronous with respect to the (master) clock. These counters can achieve very high speeds of operation. However, the design of these counters is, in general, difficult and time consuming, as each counter has to be carefully designed for the specifed sequence of states. The other class of counters, the ripple counters, are made by just cascading fippfops, where the master clock is connected only to the frst fippfop, with the output of the frst fippfop being used as the clock for the second fippfop, and so on. These counters are also called asynchronous counters (or ripple counters) as the outputs of the fippfops change at diferent times with respect to the master clock. These types of counters are easy to design, but cannot be used at higher clock speeds. ICs USED CD 4027 CMOS Dual PositivepEdge Triggered JK FlippFlops CD 4023 CMOS Triple 3pInput NAND Gates

Familiarize yourself with the above ICs. See the attached sheet for details. Note that in a CMOS IC, the inputs have to be clearly defned; you cannot leave them open. Voltages above 2.5 V are taken as logic, and voltages below 2.5 V are taken as logic 0. For wiring purposes, use V DD (or V CC : +5 V) as logic, and GND as logic 0. Note that the CD4027 IC is positivepedge triggered and has two JK fipp fops. Take special note of the S D (SET) and C D (CLEAR) inputs. These are active HIGH asynchronous SET and CLEAR (or RESET) inputs, respectively. For normal JK flip-flop operationl these inputs must be kept at logic 0. 2

Lab Preparation For each of the counters specifed below, you have to implement the circuits for the specifed sequence of states. Use the JK transition table (or excitation table, which gives the required J and K inputs for a given transition from state Q n to state Q n+ ) for the design. For each part of this experiment, you MUST have in your lab report. A clear circuit diagram (as well as a functional diagram) of your counter indicating all the inputs with the appropriate pin numbers. Experiment For each of the following parts, you need to verify that the sequence of states produced by your designed circuit for each counter follows the specifcation. You have to wire your circuits in the microboard and connect the outputs to the HEX display unit inputs of the digital test board, putting any of the unused inputs of the HEX display unit to 0. Also, use manual clock. With each application of the manual clock, the counter circuit should go through the specifed sequence of states. Useful tips: i. A ripple counter that uses positivepedge triggered JK fippfops with Q outputs connected as the clock inputs for the following stages will result in a down counter, while Q outputs so connected will give an up counter. Reverse will be the case when negativepedge triggered JK fippfops are used. ii. You should not leave the S D and C D inputs of the JK fippfops unconnected.. Verify asic Flip Flop operation: On the microboard, connect up the inputs and outputs of a single JK fip fop from the CD 4027. Use the truth table of the fip fop to verify the operation, by providing diferent input values for J, K, S D, C D, and triggering using the manual clock key from the digital logic board. Data for this is given in the function tables for the CD 4027 (last page). Make the excitation table, and tabulate the results. 2. Divide-by-8 Ripple Down Counter (3 FFs) Design and verify a 8 ripple down counter with the sequence of states (CA):, 0, 0, 00, 0, 00, 00, 000,, 0,, etc., using three JK fipp fops of IC CD4027. 3. Divide-by-8 Ripple Up Counter (3 FFs) Design and verify a 8 ripple up counter with the sequence of states (CA): 000, 00, 00, 0, 00, 0, 0,, 000, 00,, etc., using three JK fippfops of IC CD4027. Q C Q Q A 0 0 2 0 3 0 0 4 0 5 0 0 6 0 0 7 0 0 0 Div. by 8 Ripple Down Counter Q C Q Q A 0 0 0 0 0 0 2 0 0 3 0 4 0 0 5 0 6 0 7 Div. by 8 Ripple Up Counter 3

4. Divide-by-4 Synchronous Down Counter (2FFa) This is a synchronous counter that goes through all possible states. Hence it requires no careful design, unlike the next one. It has the sequence of states (A):, 0, 0, 00,, 0,, etc., using two JK fippfops of IC CD4027. 4

5. Divide-by-3 Synchronous Up Counter (2 FFs) This synchronous up counter is designed to skip one of its 4 states so that we get the sequence of states (A): 00, 0, 0, 00, 0,, etc., using two JK fippfops of IC CD4027. Here is a sample Design Table. Presen t State n A n n+ Next State An+ Required JK Excitations FF FF A J K K 0 0 0 0 x x 0 0 x x 0 0 0 x 0 x Unused State 0 0 x x J Q ; K J Q ; K A A A Div. by 4 Sync. Down CounterDiv. by 3 Sync. Up counter and its Excitation Table JA A FUNCTION TALES OF CD 4027 CD 4023 INPUTS OUTPUTS S D C D CP J K Q Q H L X X X H L L H X X X L H H H X X X H H INPUTS OUTPUTS S D C D CP J K Q n+ Q n+ L L L L Q n Q n L L H L H L L L L H L H L L H H Q n Q n CD 4027 V DD(V CC) : 5V, Pin 6 GND : Pin 8 CD 4023 V DD(V CC) : 5V, Pin 4 GND : Pin 7 5