CHW 261: Logic Design

Similar documents
Digital Fundamentals

Digital Fundamentals

Digital Circuits ECS 371

PGT104 Digital Electronics. PGT104 Digital Electronics

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

LOGIC CIRCUITS. Basic Experiment and Design of Electronics

EECS150 - Digital Design Lecture 18 - Counters

EECS150 - Digital Design Lecture 18 - Counters

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

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

CHW 261: Logic Design

ELCT201: DIGITAL LOGIC DESIGN

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

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

ECE 341. Lecture # 3

Digital Electronics Final Examination. Part A

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

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

EECS150 - Digital Design Lecture 11 - Shifters & Counters. Register Summary

EE 209 Logic Cumulative Exam Name:

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

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

Synchronous 4 Bit Counters; Binary, Direct Reset

DE58/DC58 LOGIC DESIGN DEC 2014

CS221: Digital Design. Dr. A. Sahu. Indian Institute of Technology Guwahati

NOTE: The Flatpak version has the same pinouts (Connection Diagram) as the Dual In-Line Package. *MR for LS160A and LS161A *SR for LS162A and LS163A

Delhi Noida Bhopal Hyderabad Jaipur Lucknow Indore Pune Bhubaneswar Kolkata Patna Web: Ph:

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

COEN 312 DIGITAL SYSTEMS DESIGN - LECTURE NOTES Concordia University

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

Lab 3 Revisited. Zener diodes IAP 2008 Lecture 4 1

Sample Test Paper - I

EECS150 - Digital Design Lecture 23 - FSMs & Counters

Up/down binary counter with separate up/down clocks

Digital Circuits ECS 371. Dr. Prapun Suksompong Latches and Flip-Flops

Q: Examine the relationship between X and the Next state. How would you describe this circuit? A: An inverter which is synched with a clock signal.

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

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI

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

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

EET 310 Flip-Flops 11/17/2011 1

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

EECS150 - Digital Design Lecture 16 Counters. Announcements

I. Motivation & Examples

Digital Electronics Circuits 2017

EECS150 - Digital Design Lecture 25 Shifters and Counters. Recap

Stop Watch (System Controller Approach)

Chapter 14 Sequential logic, Latches and Flip-Flops

Experiment 9 Sequential Circuits

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

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

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

Exam for Physics 4051, October 31, 2008

Digital Logic Design - Chapter 4

Review: Designing with FSM. EECS Components and Design Techniques for Digital Systems. Lec 09 Counters Outline.

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

Review: Designing with FSM. EECS Components and Design Techniques for Digital Systems. Lec09 Counters Outline.

Preparation of Examination Questions and Exercises: Solutions

Synchronous Sequential Logic

6 Synchronous State Machine Design

Computers also need devices capable of Storing data and information Performing mathematical operations on such data

Digital Electronic Meters

Gates and Flip-Flops

EE 209 Spiral 1 Exam Solutions Name:

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

Layout of 7400-series Chips Commonly Used in. CDA 3101: Introduction to Computer Hardware and Organization

Shift Register Counters

EXPERIMENT Bit Binary Sequential Multiplier

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

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

Digital Logic Design - Chapter 5

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

Different encodings generate different circuits

Chapter 5 Synchronous Sequential Logic

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI

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

DATA SHEET. HEF40163B MSI 4-bit synchronous binary counter with synchronous reset. For a complete data sheet, please also download:

ELCT201: DIGITAL LOGIC DESIGN

Unit 7 Sequential Circuits (Flip Flop, Registers)

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

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

Synchronous Sequential Logic Part I

Sequential vs. Combinational

Sequential Circuits Sequential circuits combinational circuits state gate delay

Design of Sequential Circuits

Design at the Register Transfer Level

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

Synchronous Sequential Circuit Design. Digital Computer Design

Digital Electronics. Part A

Presettable Counters High-Performance Silicon-Gate CMOS

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

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

Digital Circuits and Systems

Chapter 7 Sequential Logic

Chapter #7: Sequential Logic Case Studies Contemporary Logic Design

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

MM74HC161 MM74HC163 Synchronous Binary Counter with Asynchronous Clear Synchronous Binary Counter with Synchronous Clear

Philadelphia University Student Name: Student Number:

Chapter 7. Sequential Circuits Registers, Counters, RAM

Transcription:

CHW 26: Logic Design Instructors: Prof. Hala Zayed Dr. Ahmed Shalaby http://www.bu.edu.eg/staff/halazayed4 http://bu.edu.eg/staff/ahmedshalaby4# Slide

Digital Fundamentals CHAPTER 8 Counters Slide 2

Counting in Binary Counters As you know, the binary count sequence follows a familiar pattern of 0 s and s. The next bit changes on every fourth number. 0 0 0 0 0 0 0 0 0 0 0 0 LSB changes on every number. The next bit changes on every other number. Slide 3

Counters Counting in Binary A counter can form the same pattern of 0 s and s with logic levels. The first stage in the counter represents the least significant bit notice that these waveforms follow the same pattern as counting in binary. LSB 0 0 0 0 0 0 0 0 0 0 MSB 0 0 0 0 0 Slide 4

Asynchronous binary counter In an asynchronous counter, the clock is applied only to the first stage. Subsequent stages derive the clock from the previous stage. It uses J-K flip-flops in the toggle mode. Notice that the Q0 output is triggered on the leading edge of the clock signal. The following stage is triggered from Q0. Slide 5

Asynchronous binary counter 2-bit Asynchronous binary counter Slide 6

Asynchronous binary counter 3-bit Asynchronous binary counter Slide 7

Asynchronous binary counter 4-bit Asynchronous binary counter Slide 8

Asynchronous binary counter Asynchronous decade counter Slide 9

Propagation Delay Asynchronous binary counter Asynchronous counters are sometimes called ripple counters, because the stages do not all change together. For certain applications requiring high clock rates, this is a major disadvantage. Notice how delays are cumulative as each stage in a counter is clocked later than the previous stage. CLK Q 0 Q Q 2 2 3 4 Q 0 is delayed by propagation delay, Q 2 by 2 delays and Q 3 by 3 delays. Slide 0

Synchronous Counters Synchronous binary counter In a synchronous counter all flip-flops are clocked together with a common clock pulse. Synchronous counters overcome the disadvantage of accumulated propagation delays, but generally they require more circuitry to control states changes. Slide

Synchronous binary counter 2-bit Synchronous binary counter Inputs Outputs J K CLK Q Q Comments 0 0 Q 0 Q 0 No change 0 0 RESET 0 0 SET Toggle Q 0 Q 0 Slide 2

Synchronous binary counter 3-bit Synchronous binary counter Slide 3

Synchronous binary counter 4-bit Synchronous binary counter The 4-bit binary counter has one more AND gate than the 3-bit counter just described. The shaded areas show where the AND gate outputs are HIGH causing the next FF to toggle. Slide 4

Synchronous binary counter Synchronous decade counter This gate detects 00, and causes FF3 to toggle on the next clock pulse. FF0 toggles on every clock pulse. Thus, the count starts over at 0000. Slide 5

Counter Decoding Synchronous binary counter Show how to decode state 5 with an active LOW output. HIGH J 0 Q 0 Q 0 J Q J 2 Q 2 Q 2 C C C K 0 Q 0 K Q Q K 2 Q 2 CLK LSB MSB Decoded 5 QQ 2 Q 0 Slide 6

Synchronous binary counter A 4-bit Synchronous Binary Counter The 74LS63 is a 4-bit IC synchronous counter with additional features over a basic counter. It has parallel load, a CLR input, two chip enables, and a ripple count output that signals when the count has reached the terminal count. Data inputs D 0 D D 2 D 3 (3) (4) (5) (6) CLR LOAD ENT ENP CLK () (9) (0) (7) (2) C CTR DIV 6 TC = 5 (5) RCO (4) (3) (2) () Q 0 Q Q 2 Q 3 Slide 7

A 4-bit Synchronous Binary Counter CLR LOAD D 0 Data inputs D D 2 D 3 CLK ENP ENT Q 0 Data outputs Q Q 2 Q 3 RCO 2 3 4 5 0 2 Clear Preset Count Inhibit Slide 8

Cascaded counters HIGH Synchronous binary counter Cascading is a method of achieving higher-modulus counters. For synchronous IC counters, the next counter is enabled only when the terminal count of the previous stage is reached. Counter Counter 2 6 CTEN TC CTEN CLK C Q 0 Q Q 2 f in CTR DIV 6 CTR DIV 6 ƒ in Q C 3 Q 0 Q Q 2 Q 3 TC f out ƒ in 256 a) What is the modulus of the cascaded DIV 6 counters? b) If f in =00 khz, what is f out? a) Each counter divides the frequency by 6. Thus the modulus is 6 2 = 256. b) The output frequency is 00 khz/256 = 39 Hz Slide 9

Counter Applications Digital Clock Slide 20

Synchronous binary counter Up/Down Synchronous Counters An up/down counter is capable of progressing in either direction depending on a control input. Slide 2

Synchronous binary counter Synchronous Counter Design Most requirements for synchronous counters can be met with available ICs. In cases where a special sequence is needed, you can apply a step-by-step design process. Start with the desired sequence and draw a state diagram and nextstate table. The gray code sequence from the text is illustrated: State diagram: Next state table: 00 000 00 Present State Q 2 Q Q 0 Next State Q 2 Q Q 0 0 0 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Slide 22

Synchronous binary counter Synchronous Counter Design The J-K transition table lists all combinations of present output (Q N ) and next output (Q N+ ) on the left. The inputs that produce that transition are listed on the right. Each time a flip-flop is clocked, the J and K inputs required for that transition are mapped onto a K-map. An example of the J 0 map is: Q 2 Q Q 0 00 0 0 0 0 0 X X X X J 0 map Slide 23 Q 2 Q Q 2 Q Output Transitions Q N Q N+ 0 0 0 0 Present State Q 2 Q Q 0 0 0 0 0 0 0 0 0 0 0 0 0 Flip-Flop Inputs J K 0 X X X X 0 Next State Q 2 Q Q 0 0 0 0 0 0 0 0 0 0 0 0 0

Synchronous binary counter Synchronous Counter Design J 0 FF0 FF FF2 J Q 0 Q C C C J 2 Q 2 K 0 Q 0 Q K Q K 2 2 CLK The logic for each input is read and the circuit is constructed. The slide shows the circuit for the gray code counter Slide 24