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.

Slides:



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

Registers and Counters
CENG 241 Digital Design 1 Lecture 11
Counters 4017 decade counter (1-of-10). What is a Counter? In digital logic and computing, a counter is a device which stores (and sometimes displays)
Counter Circuits and VHDL State Machines
RIPPLE COUNTERS A register that goes through a prescribed sequence of states upon the application of input pulses is called a counter. The input pulses.
Logic and Computer Design Fundamentals Registers and Counters
ENGIN112 L27: Counters November 5, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 27 Counters.
CS370 Counters. Overview °Counter: A register that goes through a prescribed series of states °Counters are important components in computers. °Counters.
M.S.P.V.L. Polytechnic College, Pavoorchatram
Sequential Circuit Introduction to Counter
A.Abhari CPS2131 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:
REGISTER A Register is a group of binary storage cells suitable for holding binary information. A group of flip-flops constitutes a register, since each.
Registers and Counters
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.
Three Other Types of Counters (BCD Counter, Ring Counter, Johnson Counter) Hun Wie (Theo) SJSU, 2011 Spring Prof: Dr. Sin-Min Lee CS147 Computer Organization.
CHAPTER 3 Counters.  One of the common requirement in digital circuits/system is counting, both direction (forward and backward)  Digital clocks and.
A presentation on Counters
Electronics Technology
Counters.
Registers and Counters
Chapter 1_4 Part II Counters
Digital Logic Design CHAPTER 5 Sequential Logic. 2 Sequential Circuits Combinational circuits – The outputs are entirely dependent on the current inputs.
Counter Section 6.3.
1 Sequential Circuits Registers and Counters. 2 Master Slave Flip Flops.
EE345: Introduction to Microcontrollers Register and Counters Prof. Ahmad Abu-El-Haija.
Lecture 27 Counters Give qualifications of instructors: DAP
Electronics Technology
Flip Flop
Registers and Counters
Rabie A. Ramadan Lecture 3
2017/4/24 CHAPTER 6 Counters Chapter 5 (Sections )
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Lecture 17 Dr. Shi Dept. of Electrical and Computer Engineering.
Registers and Counters by Dr. Amin Danial Asham. References  Digital Design 5 th Edition, Morris Mano.
Digital Design Lectures 11 & 12 Shift Registers and Counters.
7-6 단일 레지스터에서 Microoperation Multiplexer-Based Transfer  Register 가 서로 다른 시간에 둘 이상의 source 에서 data 를 받을 경우 If (K1=1) then (R0 ←R1) else if (K2=1) then.
 Counters are sequential circuits which "count" through a specific state sequence. They can count up, count down, or count through other fixed sequences.
1 Registers & Counters Logic and Digital System Design - CS 303 Erkay Savaş Sabancı University.
Registers and Counters Chapter 6. Digital Circuits 2 Clocked sequential circuits a group of flip-flops and combinational gates connected to form a feedback.
Chap 5. Registers and Counters. Chap Definition of Register and Counter l a clocked sequential circuit o consist of a group of flip-flops & combinational.
CHAPTER 8 - COUNTER -.
Synchronous Counters Synchronous digital counters have a common clock which results in all the flip-flops being triggered simultaneously. Consequently,
Counter Circuits and VHDL State Machines
Sequential logic circuits
C HAPTER S IX R EGISTERS AND C OUNTERS 1. A clocked sequential circuit consists of a group of flip-flops and combinational gates connected to form a feedback.
COUNTERS Why do we need counters?
Counters.
Basic terminology associated with counters Technician Series
Synchronous Sequential Logic A digital system has combinational logic as well as sequential logic. The latter includes storage elements. feedback path.
Chap 5. Registers and Counters
DIGITAL COMPONENTS. MULTIPLEXERS A multiplexer is a combinational circuit that receives binary information from one of 2 n input data lines and directs.
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.
Counters In digital logic and computing, a counter is a device which stores (and sometimes displays) the number of times a particular event or process.
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
EKT 221 : Digital 2 COUNTERS.
Registers and Counters
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
COE 202: Digital Logic Design Sequential Circuits Part 4
29-Nov-18 Counters Chapter 5 (Sections ).
Computer Architecture and Organization: L02: Logic design Review
6. Registers and Counters
FLIP-FLOPS.
Digital Logic Department of CNET Chapter-6
Digital Logic Department of CNET Chapter-6
Counters.
Digital Electronics and Logic Design
Presentation transcript:

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 to a clock signal. Counters are categorized as:  Asynchronous (Ripple) Counters - the flip-flop output serves as a source for triggering other flip-flops.  Synchronous Counters - the input pulses are applied to all CP inputs of all flip-flops. The change of state of a particular flip- flop is dependent CP on the present state of other flip-flops.

Binary Ripple Counter  It consists of a series connection of complementing flip-flops (T or JK type), with the output of each flip-flop connected to the CP input of the next higher-order flip-flop.  The flip-flop holding the LSB receives the incoming count pulses.  All J and K inputs are equal to 1.  The small circle in the CP input indicates that the flip-flop complements during a negative-going transition or when the output to which it is connected goes from 1 to 0.

4-bit Binary Ripple Counter

 The LSB B0 must be complemented with each count pulse.  Every time B0 goes from 1 to 0, it complements B1.  Every time B1 goes from 1 to 0, it complements B2.  Every time B2 goes from 1 to 0, it complements B3 and so on.  A binary counter with a reverse count is called a binary down- counter. In this, the binary count is decremented by 1 with every input count pulse.  This circuit will function as a binary down-counter if the outputs are taken from the complement terminals Q’ of all flip-flops.

BCD Ripple Counter  A decimal counter follows a sequence of ten states and returns to 0 after the count of 9.  Such a counter must have at least four flip-flops to represent each decimal digit, since a decimal digit is represented by a binary code with at least four bits.  This is similar to a binary counter, except that the state after 1001(Decimal 9) is 0000(Decimal 0).

BCD Ripple Counter  The four outputs are designated by the letter symbol Q with a numeric subscript equal to the binary weight of the corresponding bit in the BCD code.  The flip-flop trigger on the negative edge, ie, when the CP signal goes from 1 to 0.  The outputs of Q1 is applied to the CP inputs of both Q2 and Q8 and the output of Q2 is applied to the CP input of Q4.

BCD Ripple Counter

 It is known as decade counter, since it counts from 0 to 9.  To count in decimal from 0 to 99, we need a two- decade counter.  To count in decimal from 0 to 999, we need a three- decade counter.  Multiple-decade counters can be constructed by connecting BCD counters in cascade, one for each decade.

3-decade Decimal BCD Counter

SYNCHRONOUS COUNTERS  In synchronous binary counter, clock pulses are applied to the CP inputs of all flip-flops and triggered simultaneously.  If J = K = 0, the flip-flop remains unchanged. If J = K = 1, the flip-flop complements.  For example, the first flip-flop A0 is always complemented. A1 is complemented when the present state of A0 is 1. A2 is complemented when present state of A1A0=11. A3 is complemented when present state of A2A1A0=111.

4-bit Synchronous binary counter

 The CP terminals of all flip-flops are connected to a common clock-pulse source.  The first stage A0 has its J and K equal to 1 if the counter is enabled.

Binary Up-Down Counter  A synchronous count down binary counter goes through the binary states in the reverse order from 1111 down to 0000 and back to 1111  The least significant bit is always complemented. Each bit is complemented if all the lower bits are equal to 0  The two operations can be combined in one circuit to form a counter capable of counting either up or down  When up and down inputs are 0, the circuit does not change state and when there are both 1, the circuit counts up.

Binary Up-Down Counter

 When the up input control is 1, the circuit counts up, since the T inputs are determined from the previous values of the normal outputs in Q.  When the down input control is 1, the circuit counts down, since the complement outputs Q’ determine the states of the T inputs.  When both the up and down signal are 0’s, the register does not change state but remains in the same count.