Sequential Circuit - Counter -

Slides:



Advertisements
Similar presentations
COUNTERS Counters with Inputs Kinds of Counters Asynchronous vs
Advertisements

A presentation on Counters (second)
EKT 124 / 3 DIGITAL ELEKTRONIC 1
Figure 8–1 A 2-bit asynchronous binary counter
Sequential Circuit - Counter -
Sequential Logic Design
M.S.P.V.L. Polytechnic College, Pavoorchatram
Asynchronous and Synchronous Counters
EET 1131 Unit 11 Counter Circuits  Read Kleitz, Chapter 12, skipping Sections and  Homework #11 and Lab #11 due next week.  Quiz next week.
Sequential Circuit  It is a type of logic circuit whose output depends not only on the present value of its input signals but on the past history of its.
Chapter 9 Counters.
Counters  A counter is a device which stores (and sometimes displays) the number of times a particular event or process has occurred, often in relationship.
CHAPTER 3 Counters.  One of the common requirement in digital circuits/system is counting, both direction (forward and backward)  Digital clocks and.
Digital Fundamentals with PLD Programming Floyd Chapter 10
A presentation on Counters
Chapter 7 Counters and Registers
1 Sequential Circuits Registers and Counters. 2 Master Slave Flip Flops.
Sequential Circuit - Counter -
Mid3 Revision Prof. Sin-Min Lee. 2 Counters 3 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation.
Rabie A. Ramadan Lecture 3
Counter Application (Part B) By : Pn Siti Nor Diana Ismail CHAPTER 3.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
Counters Dr. Rebhi S. Baraka Logic Design (CSCI 2301) Department of Computer Science Faculty of Information Technology The Islamic University.
2017/4/24 CHAPTER 6 Counters Chapter 5 (Sections )
Counters By Taweesak Reungpeerakul
CYU / CSIE / Yu-Hua Lee / E- 1 數位邏輯 Digital Fundamentals Chapter 9 Counters.
BZUPAGES.COM1 Chapter 9 Counters. BZUPAGES.COM2 BzuPages.COM Please share your assignments/lectures & Presentation Slides on bzupages which can help your.
CHAPTER 3 Counters.  One of the common requirement in digital circuits/system is counting, both direction (forward and backward)  Digital clocks and.
 Counters are sequential circuits which "count" through a specific state sequence. They can count up, count down, or count through other fixed sequences.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
Chapter 1_4 Part III more on … Counters Chapter 1_4 Part III more on … Counters.
Chapter 1 Counters. Counters Counters are sequential circuits which "count” through a specific state sequence. They can count up, count down, or count.
CHAPTER 8 - COUNTER -.
Decade Counter (BCD Counter). Introduction A counter which is reset at the 10 th clock pulse is called decade counter. The decade counter is otherwise.
Counters.
Unit 1 – Counters and Registers Mr. Grimming. Introduction FFs and logic gates are combined to form various counters and registers. Unit Goals Goals:
Synchronous Counter Design
Lecture No. 29 Sequential Logic.
1 Registers A register is a group of n flip-flops each of them capable of storing one bit of information There are two types of registers: parallel and.
Sequential logic circuits First Class 1Dr. AMMAR ABDUL-HAMED KHADER.
FLIP FLOPS Binary unit capable of storing one bit – 0 or 1
LATCHED, FLIP-FLOPS,AND TIMERS
Homework Reading Machine Projects Labs Tokheim Chapter 9.1 – 9.6
EKT 124 / 3 DIGITAL ELEKTRONIC 1
EET 1131 Unit 11 Counter Circuits
Asynchronous Counters with SSI Gates
EKT 124 / 3 DIGITAL ELEKTRONIC 1
EKT 221 – Counters.
EKT 221 : Digital 2 COUNTERS.
Sequential Logic Counters and Registers
Sequential Circuit: Counter
Asynchronous Inputs of a Flip-Flop
University of Maryland Baltimore County Department of Computer Science and Electrical Engineering   CMPE 212 Laboratory (Discussion 12) Hasib Hasan
ECE Digital logic Lecture 16: Synchronous Sequential Logic
DIGITAL ELECTRONICS ТHEME 4: SEQUENTIAL LOGIC CIRCUITS. FLIP- FLOPS – ASYNCHRONOUS AND SYNCHRONOUS, R - S, D, T, J - K FLIP- FLOPS. The value of the outputs.
Digital Fundamentals with PLD Programming Floyd Chapter 10
Registers and Counters Register : A Group of Flip-Flops. N-Bit Register has N flip-flops. Each flip-flop stores 1-Bit Information. So N-Bit Register Stores.
Digital Design Fundamentals
LECTURE 15 – DIGITAL ELECTRONICS
Counters and Registers
29-Nov-18 Counters Chapter 5 (Sections ).
Digital Logic & Design Dr. Waseem Ikram Lecture No. 31.
Instructor: Alexander Stoytchev
CSE 370 – Winter Sequential Logic-2 - 1
EET107/3 DIGITAL ELECTRONICS 1
EET 1131 Unit 11 Counter Circuits
Chapter 8 Counters Changjiang Zhang
Outline Registers Counters 5/11/2019.
Counters.
Digital Electronics and Logic Design
Presentation transcript:

Sequential Circuit - Counter -

INTRODUCTION A counter – a group of flip-flops connected together to perform counting operations. The number of flip-flops used and the way in which they are connected determine the number of states (modulus). Two broad categories according to the way they are clocked: Asynchronous counter Synchronous counter

Asynchronous counter

ASYNCHRONOUS COUNTER: Don’t have fixed time relationship with each other. Triggering don’t occur at the same time. Don’t have a common clock pulse

2-bit asynchronous counter Notice that : Main clock pulse only applied to FF0. Clock for next FF, taken from previous complemented output ( Q ). All inputs (J, K) are high (Vcc). [ output toggle at every +ve edge clock ]

The Timing diagram

The Binary State Sequence 1 1 1 1 CLOCK PULSE Q1 Q0 Initially 1 2 3 4 (recycles)

Three-bit asynchronous binary counter and its timing diagram for one cycle.

The Binary State Sequence for a 3-bit Binary Counter CLOCK PULSE Q2 Q1 Q0 Initially 1 2 3 4 5 6 7 8 (recycles)

Propagation delays in a 3-bit asynchronous (ripple-clocked) binary counter.

Four-bit asynchronous binary counter and its timing diagram.

ASYNCHRONOUS DECADE COUNTER: The modulus of a counter is the number of unique states that the counter will sequence through. The maximum possible number of states (max modulus) is 2n . Where n is the number of flip-flops. Counter can also be designed to have a number of states in their sequence that is less than the maximum of 2n. The resulting sequence is called truncated sequence. Counter with ten states are called decade counter. To obtain a truncated sequence it is necessary to force the counter to recycle before going through all of its possible states.

An asynchronously clocked decade counter Read example 9-2 page 465!! Modulus 12

Comparison of 4-bit modulus 16 and modulus 10

Timing diagram Modulus 16

For modulus 10, pay attention at clock 9 , and 10 of modulus 16 At clock 9, Q3..Q0 o/p = 1001 ( in decimal = 9) For modulus 16 At clock 10, Q3..Q0 o/p = 1010 ( in decimal = 10). Here Q3 = 1, Q1 = 1 For modulus 10 Q3 AND Q1 connected by NAND gate. Means when Q1 =1 AND Q3 = 1, o/p of NAND = 0  Happened at clock 10, Q1 = 1 AND Q3 = 1 Q0 Q1 Q2 Q3 Taken from modulus 16 o/p Q1 Q3

Here the o/p of NAND gate will fed into ACTIVE LOW input of CLR. FF0 FF1 FF2 FF3 Here the o/p of NAND gate will fed into ACTIVE LOW input of CLR. Since NAND o/p =0, the Flip-flop will be CLEARED. This introduce glitch in the modulus 10 o/p. Data transmission as descred above only happened in very short time glitch. Tata being cleared at clock 10

The 74LS93A 4-bit asynchronous binary counter logic diagram The 74LS93A 4-bit asynchronous binary counter logic diagram. (Pin numbers are in parentheses, and all J and K inputs are internally connected HIGH.)

Synchronous counter

SYNCHRONOUS COUNTER OPERATION A 2-bit synchronous binary counter.

Timing details for the 2-bit synchronous counter operation (the propagation delays of both flip-flops are assumed to be equal).

The Binary State Sequence 1 1 1 1 CLOCK PULSE Q1 Q0 Initially 1 2 3 4 (recycles)

3-bit synchronous binary counter modulo 7.

The Binary State Sequence for a 3-bit Binary Counter CLOCK PULSE Q2 Q1 Q0 Initially 1 2 3 4 5 6 7 8 (recycles)

A 4-bit synchronous binary counter and timing diagram A 4-bit synchronous binary counter and timing diagram. Points where the AND gate outputs are HIGH are indicated by the shaded areas.

A 4-Bit Synchronous BCD Decade Counter (09).

The Binary State Sequence for BCD Decade Counter CLOCK PULSE Q3 Q2 Q1 Q0 Initially 1 2 3 4 5 6 7 8 9 10 (recycles)

DESIGN OF SYNCHRONOUS COUNTERS General clocked sequential circuit.

Steps used in the design of sequential circuit Specify the counter sequence and draw a state diagram Derive a next-state table from the state diagram 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 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. Group the Karnaugh map cells to generate and derive the logic expression for each flip-flop input. 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 Q2 Q1 Q0 1

Transition Table for a J-K flip-flop Output Transitions Flip-flop Inputs QN QN+1 J K  X 1 QN : present state QN+1: next state X: Don’t care

Karnaugh maps for present-state J and K inputs.

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 Q2 Q1 Q0 1

Transition Table for a J-K flip-flop Output Transitions Flip-flop Inputs QN QN+1 J K  X 1

K-MAP

THE COUNTER CIRCUIT

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

The 74HC163 4-bit synchronous binary counter The 74HC163 4-bit synchronous binary counter. (The qualifying label CTR DIV 16 indicates a counter with sixteen states.)

Timing example for a 74HC163.

The 74LS160 synchronous BCD decade counter The 74LS160 synchronous BCD decade counter. (The qualifying label CTR DIV 10 indicates a counter with ten states.)

Timing example for a 74LS160.

UP/DOWN SYNCHRONOUS COUNTER A basic 3-bit up/down synchronous counter.

Timing Diagram

The 74HC190 up/down synchronous decade counter.

Timing example for a 74HC190.

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.

A divide-by-40,000 counter using 74HC161 4-bit binary counters 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).

Decoding of state 6 (110). 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).

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

A basic decade (BCD) counter and decoder.

Outputs with glitches from the previous 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.

Strobed decoder outputs for the circuit

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 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