Electronic Counters.

Slides:



Advertisements
Similar presentations
Synchronous Counters with SSI Gates
Advertisements

COUNTERS Counters with Inputs Kinds of Counters Asynchronous vs
Electronic memory & logic devices. Solid State Physics N N P P +- Transistors And diodes Logic gates Memory devices : Flip flops Flip Flop Flip Flop Flip.
Sequential Logic Building Blocks – Flip-flops
1 Fundamentals of Computer Science Sequential Circuits.
Digital Logic Chapter 5 Presented by Prof Tim Johnson
CSCE 211: Digital Logic Design. Chapter 6: Analysis of Sequential Systems.
Digital Logic Circuits (Part 2) Computer Architecture Computer Architecture.
EKT 124 / 3 DIGITAL ELEKTRONIC 1
+ CS 325: CS Hardware and Software Organization and Architecture Sequential Circuits 1.
Flip-Flops and Related Devices Wen-Hung Liao, Ph.D. 4/10/2002.
ENGIN112 L20: Sequential Circuits: Flip flops October 20, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 20 Sequential Circuits: Flip.
CS 151 Digital Systems Design Lecture 20 Sequential Circuits: Flip flops.
CS370 Counters. Overview °Counter: A register that goes through a prescribed series of states °Counters are important components in computers. °Counters.
Flip-Flops and Related Devices
C.S. Choy1 SEQUENTIAL LOGIC A circuit’s output depends on its previous state (condition) in addition to its current inputs The state of the circuit is.
M.S.P.V.L. Polytechnic College, Pavoorchatram
Sequential Circuit Introduction to Counter
What is shift register? A shift register is a digital memory circuit found in calculators, computers, and data-processing systems. Bits (binary digits)
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.
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.
A presentation on Counters
Asynchronous Counters
SEQUENTIAL CIRCUITS USING TTL 74XX ICS
Chapter 7 Counters and Registers
Asynchronous Counter © 2014 Project Lead The Way, Inc.Digital Electronics.
Counter Section 6.3.
Flip Flops. Clock Signal Sequential logic circuits have memory Output is a function of input and present state Sequential circuits are synchronized by.
Sequential Circuits Chapter 4 S. Dandamudi To be used with S. Dandamudi, “Fundamentals of Computer Organization and Design,” Springer,  S.
Synchronous Counters.
Registers and Counters
Asynchronous Counters with SSI Gates
Flip Flop
CS1104 – Computer Organization Aaron Tan Tuck Choy School of Computing National University.
Rabie A. Ramadan Lecture 3
SEQUENTIAL CIRCUITS Component Design and Use. Register with Parallel Load  Register: Group of Flip-Flops  Ex: D Flip-Flops  Holds a Word of Data 
Synch 1.1 Synchronous Counters 1 ©Paul Godin Created January 2008.
 Counters are sequential circuits which "count" through a specific state sequence. They can count up, count down, or count through other fixed sequences.
CHAPTER 8 - COUNTER -.
Synchronous Counters Synchronous digital counters have a common clock which results in all the flip-flops being triggered simultaneously. Consequently,
CHAPTER-2 Fundamentals of Digital Logic. Digital Logic Digital electronic circuits are used to build computer hardware as well as other products (digital.
Sequential logic circuits
Flip Flop Chapter 15 Subject: Digital System Year: 2009.
1 COMP541 Sequential Circuits Montek Singh Feb 1, 2007.
COUNTERS Why do we need counters?
Counters.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
 Flip-flops are digital logic circuits that can be in one of two states.  Flip-flops maintain their state indefinitely until an input pulse called a.
Counters and registers Eng.Maha Alqubali. Registers Registers are groups of flip-flops, where each flip- flop is capable of storing one bit of information.
Sequential logic circuits First Class 1Dr. AMMAR ABDUL-HAMED KHADER.
Date: 01/12/2014 Asynchronous (Ripple) Counters Patel Siddhi P rd SEM Computer Science and Engneering B.M.C.E.T Subject Name: Digital Electronics.
FLIP FLOPS Binary unit capable of storing one bit – 0 or 1
LATCHED, FLIP-FLOPS,AND TIMERS
Clocks A clock is a free-running signal with a cycle time.
Asynchronous Counters with SSI Gates
Asynchronous Counters
Sequential Circuit: Counter
DR S. & S.S. GHANDHY ENGINEENRING COLLEGE
Asynchronous Counters
Introduction to Sequential Logic Design
Sequential logic circuits
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.
LECTURE 15 – DIGITAL ELECTRONICS
Asynchronous Counters with SSI Gates
Counters and Registers
Asynchronous Counters 2
CHAPTER 4 COUNTER.
FLIP-FLOPS.
CMPE212 Discussion 11/21/2014 Patrick Sykes
Digital Electronics and Logic Design
Presentation transcript:

Electronic Counters

Abstract Electronic counters come in two flavors: asynchronous and synchronous. Asynchronous counter encode a count sequence by directly connecting flip-flops and allowing the clock-pulse to ripple through the cascade. Synchronous counters use a common clock and logic between flip-flops to encode the count sequence. Asynchronous counters are simpler because they do not require logic gates, but any latency will scale linearly with respect to the number of bits. Synchronous counters are more complex but constrain the latency. If the cumulative latency is greater than the maximum allowable cycle time, then a synchronous architecture is preferable. If the application is not sensitive to false errors produced by latency, however, an asynchronous counter alone or with over-clocking (in the event that cumulative latency is greater than the cycle time) may be feasible. Alternatively filters, such as a strobing circuit, can be used to remove erroneous outputs caused by latency from the output.

Memory devices : Flip flops Systems : Counters Output Memory devices : Flip flops Input Flip Flop Clock Logic gates Input 2 Output’ Transistors And diodes - + N P Solid State Physics

Electronic counter Addressable Memory device I/O signals Flip flop Wires Counter Architecture Asynchronous Synchronous

A bit is a two-state object, such as a flip-flop. Electronic flip-flop State 1

A collection of n bits can encode 2^n information levels (states). 1 All possible information levels for three bits 000 001 010 011 100 101 110 111

Each information level can represent a number. State 1 All possible information levels for three bits 000 001 010 011 100 101 110 111 1 2 3 4 5 6 7 8

Bits oscillating with proportional frequencies encode count sequence. 000 001 010 011 100 101 110 111 1 2 3 4 5 6 7 8 Bit 1 Bit 2 Bit 3

Counter system architecture connects bits (JK flip-flops) to produce this frequency pattern. 1 Bit 2 Bit 3

Asynchronous

Couple two two bits so that inverse output from bit 1 is trigger for bit 2. Inverter

Bit 1 output and inverted output Trigger 1 Output 1 Output 1 Inverted

Bit 1 inverse output serves as clock for bit 2 Bit 1 inverse output serves as clock for bit 2. Triggers state change at positive going transitions. Output 1 Inverted Trigger 2 Output 2

2 outputs of proportional frequency produce the count sequence 00 01 10 11 1 2 3 4

But if there is a delay between command to toggle and response … Latency JK Flip-Flop “Trigger” “Trigger” Toggle: Change State AND “Enable” Bit State Delay, D

… latency scales linearly wrt # of bits Ideal Observed Clock 1 D Bit 1 Clock 2 D Bit 2 Accumulated latency = n*d, for counter of n bits

And results in an erroneous count. Ideal Observed Clock 1 D Bit 1 Clock 2 D Bit 2 01 (2) 10 (3) 01 01 00 (1) 10

But if accumulated delay occurs before clock returns to low state … Accumulated delay = (n-1)*d Clock n Accumulated delay = (n)*d Bit n

… let error ripple through the system when clock is high, then read output when the clock is low. “Strobing” circuit Clock 1 Low enable is True Bit 1 Clock 2 Bit 2 01 10 Then read bits to produce correct output

Problem: delay limits clock speed … Clock frequency must be set allow cumulative delay to ripple through cascade of bits during the high level of the trigger. Thus, the length of ½ cycle > length of cumulative delay Clock n Cumulative delay = (n)*d Bit n

synchronous counter that avoids “rippling” is preferable. In applications where false outputs from propagation delay produces errors and where speed is important, synchronous counter that avoids “rippling” is preferable.

Synchronous

Couple enable to logic gate that processes output from prior bits : when all prior bits are high, then 1 passed to bit and output toggles. JK Flip-Flop “Trigger” Toggle Output AND “Inputs” Prior Bits

Synchronous counter: each bit holds its state until all preceding bits are high and positive clock pulse. Q1 Q2 Q3 And High 1 2 3 Clock Clock Q1 1 1 1 1 Q2 1 1 Q3 1 000 001 010 011 100 101 110 111 1 2 3 4 5 6 7 8

Bits flip simultaneously, with same latency : D: latency of flip-flop no false outputs Clock Bit 4 trigger 1 D: latency of flip-flop Bit 1 1 1 Bit 2 Bit 4 enable: Logic gate inputs 1 1 Bit 3 1 1 Bit 4 Bit 4 state 1 Time 1 Time 2: Flip

Compare synchronous to asynchronous … Clock D Grows to 4*D Bit 1 Bit 2 Bit 3 Bit 4 Latency for synchronous fixed and no false outputs but is synchronous is 4*D by 4th flip-flop, necessitating measures (“strobing circuit”) to prevent errors and thus limiting speed.

Knowing … Clock Clock Clock n Bit n 1. Cumulative latency for asynchronous counter 2. Minimum acceptable clock speed Clock Clock Maximum acceptable cycle time Clock n Small clock speed has long cycle time … Clock is as long as one can make it … Bit n Latency

Decision … Synchronous Architecture Asynchronous Architecture Is cumulative latency > maximum cycle time? Yes No Do false outputs resulting from latency cause errors? Synchronous Architecture Asynchronous Architecture No Small clock speed has long cycle time … Clock is as long as one can make it … Yes Is cumulative latency < ½ maximum cycle time? With strobing circuit to “block” output during high level in clock cycle. No Yes