Counters. ENT 263 Digital Electronics

Similar documents
EKT 121/4 ELEKTRONIK DIGIT 1

Digital Fundamentals: A Systems Approach

ASYNCHRONOUS COUNTER CIRCUITS

2. Counter Stages or Bits output bits least significant bit (LSB) most significant bit (MSB) 3. Frequency Division 4. Asynchronous Counters

Experiment 8 Introduction to Latches and Flip-Flops and registers

CHAPTER 6 COUNTERS & REGISTERS

Asynchronous (Ripple) Counters

Review of digital electronics. Storage units Sequential circuits Counters Shifters

Counters

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

Vignana Bharathi Institute of Technology UNIT 4 DLD

Chapter 7 Counters and Registers

Registers and Counters

Sequential Logic Counters and Registers

Chapter 3 Unit Combinational

Registers and Counters

Chapter 9. Design of Counters

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

UNIT-3: SEQUENTIAL LOGIC CIRCUITS

RS flip-flop using NOR gate

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

Switching Theory And Logic Design UNIT-IV SEQUENTIAL LOGIC CIRCUITS

Counter dan Register

Synchronous sequential circuits

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

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

Digital Systems Laboratory 3 Counters & Registers Time 4 hours

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

Module -5 Sequential Logic Design

RS flip-flop using NOR gate

Asynchronous counters

Chapter 9 Counters. Clock Edge Output Q 2 Q 1 Q

MUHAMMAD NAEEM LATIF MCS 3 RD SEMESTER KHANEWAL

Chapter 4. Logic Design

SEQUENTIAL LOGIC. Satish Chandra Assistant Professor Department of Physics P P N College, Kanpur

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

INC 253 Digital and electronics laboratory I

CHAPTER 4: Logic Circuits

Lecture 8: Sequential Logic

UNIVERSITI TEKNOLOGI MALAYSIA

Contents Circuits... 1

Digital Logic Design ENEE x. Lecture 19

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.

Logic Design. Flip Flops, Registers and Counters

Scanned by CamScanner

Universal Asynchronous Receiver- Transmitter (UART)

ECE 263 Digital Systems, Fall 2015

THE KENYA POLYTECHNIC

VTU NOTES QUESTION PAPERS NEWS RESULTS FORUMS Registers

Bachelor Level/ First Year/ Second Semester/ Science Full Marks: 60 Computer Science and Information Technology (CSc. 151) Pass Marks: 24

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

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

MC9211 Computer Organization

DIGITAL ELECTRONICS MCQs

Flip-Flops and Related Devices. Wen-Hung Liao, Ph.D. 4/11/2001

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

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

EET2411 DIGITAL ELECTRONICS

VU Mobile Powered by S NO Group

Serial In/Serial Left/Serial Out Operation

Advanced Devices. Registers Counters Multiplexers Decoders Adders. CSC258 Lecture Slides Steve Engels, 2006 Slide 1 of 20

CHAPTER 4: Logic Circuits

MODULE 3. Combinational & Sequential logic

MODEL QUESTIONS WITH ANSWERS THIRD SEMESTER B.TECH DEGREE EXAMINATION DECEMBER CS 203: Switching Theory and Logic Design. Time: 3 Hrs Marks: 100

Chapter 11 State Machine Design

Flip-Flops and Sequential Circuit Design

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

Introduction. NAND Gate Latch. Digital Logic Design 1 FLIP-FLOP. Digital Logic Design 1

Agenda. EE 260: Introduction to Digital Design Counters and Registers. Asynchronous (Ripple) Counters. Asynchronous (Ripple) Counters

Department of CSIT. Class: B.SC Semester: II Year: 2013 Paper Title: Introduction to logics of Computer Max Marks: 30

LSN 12 Shift Registers

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

EE 109 Homework 6 State Machine Design Name: Score:

Flip Flop. S-R Flip Flop. Sequential Circuits. Block diagram. Prepared by:- Anwar Bari

Registers and Counters

The reduction in the number of flip-flops in a sequential circuit is referred to as the state-reduction problem.

Decade Counters Mod-5 counter: Decade Counter:

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

Sequential Logic. Analysis and Synthesis. Joseph Cavahagh Santa Clara University. r & Francis. TaylonSi Francis Group. , Boca.Raton London New York \

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING

Fig1-1 2-bit asynchronous counter

CHAPTER1: Digital Logic Circuits

LATCHES & FLIP-FLOP. Chapter 7

Asynchronous Counter

TMEL53, DIGITALTEKNIK. INTRODUCTION TO SYNCHRONOUS CIRCUITS, FLIP-FLOPS and COUNTERS

Analysis of Sequential Circuits

Logic Design II (17.342) Spring Lecture Outline

Digital Fundamentals: A Systems Approach

The basic logic gates are the inverter (or NOT gate), the AND gate, the OR gate and the exclusive-or gate (XOR). If you put an inverter in front of

Unit 11. Latches and Flip-Flops

SEMESTER ONE EXAMINATIONS 2002

Solution to Digital Logic )What is the magnitude comparator? Design a logic circuit for 4 bit magnitude comparator and explain it,

Find the equivalent decimal value for the given value Other number system to decimal ( Sample)

Digital Fundamentals

EE292: Fundamentals of ECE

Experiment # 9. Clock generator circuits & Counters. Digital Design LAB

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

Name: Date: Suggested Reading Chapter 7, Digital Systems, Principals and Applications; Tocci

Half-Adders. Ch.5 Summary. Chapter 5. Thomas L. Floyd

TIME SCHEDULE. MODULE TOPICS PERIODS 1 Number system & Boolean algebra 17 Test I 1 2 Logic families &Combinational logic

Transcription:

Counters ENT 263 Digital Electronics

Objectives Describe the difference between an asynchronous and a synchronous counter Analyze counter timing diagram Analyze counter circuits Determine the sequence of a counter and more

Counting in Binary The next bit changes on every fourth number. 0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1 LSB changes on every number. The next bit changes on every other number. LSB 0 1 0 1 0 1 0 1 0 0 0 1 1 0 0 1 1 0 MSB 0 0 0 0 1 1 1 1 0

Asynchronous Counter Operation In an asynchronous counter, the clock is applied only to the first stage. Subsequent stages derive the clock from the previous stage. Asynchronous binary counter 2-bit asynchronous binary counter 3-bit asynchronous binary counter 4-bit asynchronous binary counter Asynchronous decade counter

2-bit asynchronous binary counter

3-bit asynchronous binary counter

4-bit asynchronous binary counter

Asynchronous decade counter

Propagation Delay

Synchronous Counter Operation Clock signal supplied to all Flip-flops Synchronous binary counters 2-bit counter 3-bit counter 4-bit counter Synchronous BCD decade counter

2-bit synchronous binary counter 0 1 0

3-bit synchronous binary counter 0 0 0 0 0 1 0 0

ND gate utputs is IGH 4-bit synchronous binary counter

Synchronous BCD decade counter 1 1 0 1 0 0 0 0 01 0 0 0 0 0 0 0 0 0 0 0

Up/Down Synchronous Counters 3-bit up/down synchronous counter Up/down decade synchronous counter

3-Bit Up/Down Synchronous Counter

Up/Down Decade Synchronous Counter

Design of Synchronous Counters General clocked sequential circuit Next State Present State

Steps used in the design of sequential circuit 1. Specify the counter sequence and draw a state diagram 2. Derive a next-state table from the state diagram 3. Develop a transition table showing the flip-flop inputs required for each transition. The transition table is always the same for a given type of flip-flop 4. Transfer the J and K states from the transition table to Karnaugh maps. There is a Karnaugh map for each input of each flip-flop. 5. Group the Karnaugh map cells to generate and derive the logic expression for each flip-flop input. 6. Implement the expressions with combinational logic, and combine with the flip-flops to create the counter.

State diagram for a 3-bit Gray code counter

Next-state table for a 3-bit Gray code counter. Present State Next State Q 2 Q 1 Q 0 Q 2 Q 1 Q 0 0 0 0 0 0 1 0 0 1 0 1 1 0 1 1 0 1 0 0 1 0 1 1 0 1 1 0 1 1 1 1 1 1 1 0 1 1 0 1 1 0 0 1 0 0 0 0 0

Transition Table for a J-K flip-flop Output Transitions Flip-flop Inputs Q N Q N+1 J K 0 0 0 X 0 1 1 X 1 0 X 1 1 1 X 0 Q N : present state Q N+1: next state X: Don t care

Example of the Mapping Procedure

Three-bit Gray code counter.

Example: Design a counter with the irregular binary count sequence as shown in the state diagram. Use J-K flip-flops

Next-state table Present State Next State Q 2 Q 1 Q 0 Q 2 Q 1 Q 0 0 0 1 0 1 0 0 1 0 1 0 1 1 0 1 1 1 1 1 1 1 0 0 1

Transition Table for a J-K flip-flop Output Transitions Flip-flop Inputs Q N Q N+1 J K 0 0 0 X 0 1 1 X 1 0 X 1 1 1 X 0

K-MAP

THE COUNTER CIRCUIT

Example : State diagram for a 3-bit up/down Gray code counter.

J and K maps for Table 9-11. The UP/DOWN control input, Y, is treated as a fourth variable.

Three-bit up/down Gray code counter.

CASCADE COUNTERS Two cascaded counters (all J and K inputs are HIGH).

A modulus-100 counter using two cascaded decade counters.

Three cascaded decade counters forming a divide-by- 1000 frequency divider with intermediate divide- by- 10 and divide-by-100 outputs.

Example: Determine the overall modulus of the two cascaded counter for (a) and (b) For (a) the overall modulus for the 3 counter configuration is 8 x 12 x 16 = 1536 for (b) the overall modulus for the 4 counter configuration is 10 x 4 x 7 x 5 = 1400

A divide-by-100 counter using two 74LS160 decade counters.

Cascaded Counters with Truncated Sequences A divide-by-40,000 counter using 74HC161 4-bit binary counters. Note that each of the parallel data inputs is shown in binary order (the right-most bit D0 is the LSB in each counter). 2 16 = 65,536 65,536 40,000 = 25,536 63C0 16

COUNTER DECODING * To determine when the counter is in a certain states in its sequence by using decoders or logic gates. Decoding of state 6 (110). Active High Decoding

Example: Implement the decoding of binary state 2 and binary state 7 of a 3-bit synchronous counter. Show the entire counter timing diagram and the output waveforms of the decoding gates. 2 = 010 (Q 2 Q 1 Q 0 ) 7 = 111 (Q 2 Q 1 Q 0 )

A 3-bit counter with active-high decoding of count 2 and count 7.

Decoding Glitches A basic decade (BCD) counter and decoder.

Outputs with glitches from the previous decoder. Glitch widths are exaggerated for illustration and are usually only a few nanoseconds wide.

The basic decade counter and decoder with strobing to eliminate glitches. Strobing: To enable the decoded outputs at a time after the glitches have had time to disappear. Using LOW level of active- HIGH clock to enable the decoder.

Strobed decoder outputs for the circuit

Counter Applications

Simplified logic diagram for a 12-hour digital clock.

Logic diagram of typical divide-by-60 counter using 74LS160A synchronous decade counters. Note that the outputs are in binary order (the right-most bit is the LSB).

Logic diagram for hours counter and decoders. Note that on the counter inputs and outputs, the right-most bit is the LSB.

Functional block diagram for parking garage control.

Logic diagram for modulus-100 up/down counter for automobile parking control.

Parallel-to-serial data conversion logic.

Example of parallel-to-serial conversion timing for the previous circuit

Thank You Intan berlian walaupun di atas lumpur dia pasti akan bercahaya, akan tetapi najis ayam walaupun diletakkan di atas meja tetap akan berbau busuk jua - Cendikiawan