 Counters are sequential circuits which "count" through a specific state sequence. They can count up, count down, or count through other fixed sequences.

Slides:



Advertisements
Similar presentations
Lecture 23: Registers and Counters (2)
Advertisements

Registers and Counters
CHAPTER 3 Sequential Logic/ Circuits.  Concept of Sequential Logic  Latch and Flip-flops (FFs)  Shift Registers and Application  Counters (Types,
Digital Logic Chapter 5 Presented by Prof Tim Johnson
Dr. ClincyLecture1 Appendix A – Part 2: Logic Circuits Current State or output of the device is affected by the previous states Circuit Flip Flops New.
EET 1131 Unit 10 Flip-Flops and Registers
EKT 124 / 3 DIGITAL ELEKTRONIC 1
Sequential circuit Digital electronics is classified into combinational logic and sequential logic. In combinational circuit outpus depends only on present.
Homework Reading Machine Projects Labs Tokheim Chapter 9.1 – 9.6
Logic and Computer Design Fundamentals Registers and Counters
CS 151 Digital Systems Design Lecture 20 Sequential Circuits: Flip flops.
Asynchronous and Synchronous Counters
Introduction Flip-flops are synchronous bistable devices. The term synchronous means the output changes state only when the clock input is triggered. That.
KU College of Engineering Elec 204: Digital Systems Design
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
Electronics Technology
SEQUENTIAL CIRCUITS USING TTL 74XX ICS
EKT 124 / 3 DIGITAL ELEKTRONIC 1
Registers and Counters
Chapter 1_4 Part II Counters
Asynchronous Counter © 2014 Project Lead The Way, Inc.Digital Electronics.
1 Sequential Circuits Registers and Counters. 2 Master Slave Flip Flops.
Electronics Technology
Asynchronous Counters with SSI Gates
Some Useful Circuits Lecture for CPSC 5155 Edward Bosworth, Ph.D. Computer Science Department Columbus State University.
COE 202: Digital Logic Design Sequential Circuits Part 1
EE2174: Digital Logic and Lab Professor Shiyan Hu Department of Electrical and Computer Engineering Michigan Technological University CHAPTER 9 Sequential.
Rabie A. Ramadan Lecture 3
P. 4.1 Digital Technology and Computer Fundamentals Chapter 4 Digital Components.
CENT-113 Digital Electronics 1 Flip Flops TI Type 502 Flip Flop: 1st production IC in 1960.
2017/4/24 CHAPTER 6 Counters Chapter 5 (Sections )
Counters By Taweesak Reungpeerakul
Counters. November 5, 2003 Introduction: Counters  Counters are circuits that cycle through a specified number of states.  Two types of counters: 
Digital Design Lectures 11 & 12 Shift Registers and Counters.
Asynch 1.1 Asynchronous Counters 1 ©Paul Godin Last Edit Sept 2009.
© 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 -.
Sequential logic circuits
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 Why do we need counters?
Counters.
Basic terminology associated with counters Technician Series
Digital System Design using VHDL
Synchronous Sequential Logic A digital system has combinational logic as well as sequential logic. The latter includes storage elements. feedback path.
Chapter 6 – Digital Electronics – Part 1 1.D (Data) Flip Flops 2.RS (Set-Reset) Flip Flops 3.T Flip Flops 4.JK Flip Flops 5.JKMS Flip Flops Information.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
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.
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.
1 Homework Reading –Tokheim Chapter 9.1 – 9.6 Machine Projects –Continue on mp3 Labs –Continue in labs with your assigned section.
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
Sequential Logic Counters and Registers
KU College of Engineering Elec 204: Digital Systems Design
Sequential Circuit - Counter -
ECE Digital logic Lecture 16: Synchronous Sequential Logic
LECTURE 15 – DIGITAL ELECTRONICS
COE 202: Digital Logic Design Sequential Circuits Part 4
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN
Computer Architecture and Organization: L02: Logic design Review
FLIP-FLOPS.
Switching Theory and Logic Design Chapter 5:
Counters.
Presentation transcript:

 Counters are sequential circuits which "count" through a specific state sequence. They can count up, count down, or count through other fixed sequences. Two distinct types are in common usage:  Ripple Counters Clock is connected to the flip-flop clock input on the LSB (Least Significant Bit) bit flip-flop For all other bits, a flip-flop output is connected to the clock input, thus circuit is not truly synchronous Output change is delayed more for each bit toward the MSB (Most Significant Bit). Resurgent because of low power consumption  Synchronous Counters Clock is directly connected to the flip-flop clock inputs Logic is used to implement the desired state sequencing Counters

 How does it work? Since each Q is half the frequency of its clock and provides the clock for the next, the combined output Q0,Q1,Q2 provides a binary count of the clock pulses at CLK, where Q0 is the lsb of the count. Ripple Counter - JK COUNTERS

 These circuits are called ripple counters because each edge sensitive transition (positive in the example) causes a change in the next flip-flop’s state.  The changes “ripple” upward through the chain of flip-flops, i. e., each transition occurs after a clock-to-output delay from the stage before. Ripple Counter (continued)

MOD Counter  A 3-bit counter counts 000 to 111 which is 8 states, equivalent to decimal 0 to 7.  On the ninth pulse the counter rolls over from 111 to 000 and starts again.  This is called a 'modulus 8 counter' or 'MOD-8 Counter'

Examples of MOD Counter 1.What is the MOD number of a ripple counter with 5 JKFFS? 2 5 = What is the maximum decimal number count of a MOD-16 counter?4 JKFF 2 4 = 16 = = 15

Example  Design a MOD counter 1. Find smallest n, where2 n > Therefore n = 4 2. Use 4 JKFFs 3. Create an asynchronous CLR when the decimal count output: that is when Q3, Q2, Q1, Q0 : A MOD-10 counter is a MOD-16 counter which clears the output when a count of ten ( 1010) occurs 5. Use this NAND gate to clear the counter

Example (cont)

D-Type Flip-Flops  The most commonly used FF is the delay flip flop or D type flip- flop. It merely imitates the action of a JK flip flop with the K input always being the inversion of the J input When the JK is connected with an inverter between its inputs, there is only one input which always either SETs or RESETs the FF. This is exactly how a D – type FF works. The input D is transferred to the output Q after a clock pulse falling edge. In other words the circuit response to the input is Delayed until the clock pulse arrives.

Registers  Register – a collection of binary storage elements  In theory, a register is sequential logic which can be defined by a state table  More often think of a register as storing a vector of binary values  Frequently used to perform simple data storage and data movement and processing operations

Registers (cont)  If many DFFs are used together, we can store multi-bit numbers. A circuit which stores binary numbers is called a Register. Here we show an 4-bit D – type register.  Before the CLK pulse, the output is holding a previously stored 1001  After the CLK pulse, the output changes and stores the new 1110 number.  The master clear C LR can be used to RESET the stored value to 0000

MULTIPLEXER (MUX)  An electronic "many - to- one" switch  Many inputs - One output  A multiplexer is a device that has a number of data inputs “m”, and number of control inputs “n” and one output, such that m=2n. The output has always the same value as the data input specified by the binary number at the control inputs.

Implementing Truth Tables Using a Multiplexer Instead of AND/OR gate Logic  The select input, connects the logic level on ONE of the input data pins to be transferred to the output Q. If SELECT is 111 then the D7 input is transferred to Q. For instance, if the D2 input = 1, then when S2, S1, S0 = 010, the output will be Q=1. This can used to implement a truth table directly.

Example 1  Design a circuit to give an output Q defined by the function (Q = Σ1,3,5,6)

DECODERS, MULTIPLEXERS (MUX) and DEMULTIPLEXERS DEMUX) DECODERS ( one-of-many)  A decoder is a combinational digital circuit with a number of inputs ‘n’ and a number of outputs ‘m’, where m= 2n.  A decoder has MANY outputs, but it has the property that ONLY ONE of its outputs can be a logic 1 at any one time. The output which becomes 1 is selected by an 'Address Select' input. If the address select input is a 3-bit number, the number of outputs which can be 'address selected' to be logic 1 is 8 [ 2 3 = 8].

EXAMPLE 1

EXAMPLE 2

A 1 to 2 (or a 1 of 2) Decoder

DEMULTIPLEXERS (DEMUX)  A 1 to 8 Demultiplexer. Control of the switch position is electronic.  Sometimes called a 'data distributor  Usually found connected to the output of a multiplexer  Works like a reverse multiplexer  Input is routed to one of the outputs depending on the select input.  A typical demux chip is a 74LS138 ( see lab)

DEMULTIPLEXERS (DEMUX) (cont)